|
@@ -613,7 +613,7 @@ class ScreenController extends BaseController
|
|
$result = DispatchSub::where('del_time',0)
|
|
$result = DispatchSub::where('del_time',0)
|
|
->where('crt_time',">=", $startOfDay)
|
|
->where('crt_time',">=", $startOfDay)
|
|
->where('crt_time',"<=", $endOfDay)
|
|
->where('crt_time',"<=", $endOfDay)
|
|
- ->whereColumn('dispatch_quantity','>=','finished_num')
|
|
|
|
|
|
+ ->whereColumn('dispatch_quantity','>','finished_num')
|
|
->select('dispatch_no','process_id','product_title','technology_name','dispatch_quantity as product_num','finished_num as finish_num','sale_orders_product_id')
|
|
->select('dispatch_no','process_id','product_title','technology_name','dispatch_quantity as product_num','finished_num as finish_num','sale_orders_product_id')
|
|
->get()->toArray();
|
|
->get()->toArray();
|
|
$map = SaleOrdersProduct::whereIn('id',array_unique(array_column($result, 'sale_orders_product_id')))
|
|
$map = SaleOrdersProduct::whereIn('id',array_unique(array_column($result, 'sale_orders_product_id')))
|