$subQuery=Db::name('purchase_order_line')->distinct(true)->order('purchase_order_line_id desc')->buildSql();$re=Db::name('purchase_order')->alias('a')->field(['a.company_id','a.purchase_order_id','b.price','b.unit_cost','b.product_id','b.purchase_order_line_id','ifnull(sum(ff.purchase_quantity),0) as ruku_sum','ifnull(sum(f.purchase_quantity),0) as tuihuo_sum'])->join($subQuery.' b','a.purchase_order_id=b.purchase_order_id')->whereTime('a.create_date','>',strtotime('-15 day'))// ->where(['a.status'=>4,'a.order_type_id'=>1])->where('a.order_type_id',1)->where(function($query){$query->where('a.status',4);// ->whereOr('a.is_wms', 1);})->leftjoin('cd_purchase_order_line_ruku ff','ff.purchase_order_id >= b.purchase_order_id and ff.price=b.price and b.product_id=ff.product_id and ff.status=4 and ff.order_type_id=1 and ff.company_id=a.company_id')->leftjoin('cd_purchase_order_line_tuihuo f','f.product_id=b.product_id and f.purchase_order_id > a.purchase_order_id and b.price=f.price and f.status=7 and f.order_type_id=2 and f.company_id=a.company_id')->having('ruku_sum > tuihuo_sum')->group('b.product_id,a.company_id')->select();
大家好,我是微学AI,今天给大家介绍一下深度学习实战65-人脸检测模型LFFD的搭建,LFFD模型的架构与原理的详细介绍。LFFD(Light and Fast Face Detector)模型是一种用于人脸检测的深度学习模型,其设计旨在实现轻量级和快速的人脸检测。本文将详细介绍LFFD模型的定义、优点、原…