diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsOrderMapper.xml b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsOrderMapper.xml index cb82e1b8f..e52d5d9c2 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsOrderMapper.xml +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsOrderMapper.xml @@ -175,7 +175,7 @@ select ltco.order_code orderCode, ltco.waybill_no waybillNo, ltco.plan_num planNum, - sum(IF(ltcls.loading_abnormal is null or ltcls.loading_abnormal = '1',0,ltcls.num)) as loadingNum, + sum(IF(ltcls.loading_abnormal is null or ltcls.scan_status = '2',0,ltcls.num)) as loadingNum, lww.check_user_name checkUserName, IFNULL(sum(ltcls.unload_num),0) unloadNum, IFNULL(lww.total_freight/lww.total_count*ltwo.total_number,0) orderFreight,