|
|
@@ -161,10 +161,11 @@ class WaybillService
|
|
|
->whereNull('waybill_on_tops.deleted_at')
|
|
|
->orderBy('waybill_on_tops.updated_at','desc')
|
|
|
->orderBy('waybills.id','desc')
|
|
|
- ->where('waybills.created_at','like',$param['screenDate'].'%')
|
|
|
+// ->where('waybills.created_at','like',$param['screenDate'].'%')
|
|
|
->where('waybills.type','专线')
|
|
|
- ->whereNotNull('waybills.deliver_at')
|
|
|
+ ->where('waybills.deliver_at','like',$param['screenDate'].'%')
|
|
|
->get();
|
|
|
+ if ($waybills->isEmpty()) return false;
|
|
|
foreach ($waybills as $waybill){
|
|
|
if (!$waybill['carrier_weight_other'] && !$waybill['carrier_weight']) return null;
|
|
|
if (!$waybill['carrier_weight_other']) $waybill['carrier_weight_other']=($waybill['carrier_weight']/0.4);
|