From 7a6f3d21c17a36bbb4a34428ac998aa8bb010ace Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Wed, 8 Jan 2025 10:14:28 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=AE=A2=E5=8D=95=E6=95=B4=E4=BD=93=E6=97=B6?= =?UTF-8?q?=E6=95=88=E9=80=BB=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../logpm/report/mapper/ReportTimeMapper.xml | 55 ++++++++----------- .../impl/TrunklineCarsLoadServiceImpl.java | 18 ++++-- 2 files changed, 36 insertions(+), 37 deletions(-) diff --git a/blade-service/logpm-report/src/main/java/com/logpm/report/mapper/ReportTimeMapper.xml b/blade-service/logpm-report/src/main/java/com/logpm/report/mapper/ReportTimeMapper.xml index fe4101e4f..fe6929ba0 100644 --- a/blade-service/logpm-report/src/main/java/com/logpm/report/mapper/ReportTimeMapper.xml +++ b/blade-service/logpm-report/src/main/java/com/logpm/report/mapper/ReportTimeMapper.xml @@ -1391,6 +1391,18 @@ where ltad.waybill_id is not null and ltad.create_time > '2024-10-22 00:00:00' and lww.departure_warehouse_id != lww.destination_warehouse_id + + and ltad.create_time >= #{param.startTime} + + + and ltad.create_time <= #{param.endTime} + + + and lww.create_time >= #{param.openTimeStart} + + + and lww.create_time <= #{param.openTimeEnd} + and lww.brand in @@ -1445,18 +1457,6 @@ and GROUP_CONCAT(DISTINCT IFNULL(ltcls.load_code,ltclsm.load_code)) like concat('%',#{param.loadCode},'%') - - and min(ltad.create_time) >= #{param.startTime} - - - and min(ltad.create_time) <= #{param.endTime} - - - and min(lww.create_time) >= #{param.openTimeStart} - - - and min(lww.create_time) <= #{param.openTimeEnd} - @@ -1505,6 +1505,18 @@ where ltad.waybill_id is not null and ltad.create_time > '2024-10-22 00:00:00' and lww.departure_warehouse_id != lww.destination_warehouse_id + + and ltad.create_time >= #{param.startTime} + + + and ltad.create_time <= #{param.endTime} + + + and lww.create_time >= #{param.openTimeStart} + + + and lww.create_time <= #{param.openTimeEnd} + and lww.brand in @@ -1544,12 +1556,6 @@ and lww.destination_warehouse_name like concat('%',#{param.destinationWarehouseName},'%') - - and GROUP_CONCAT(DISTINCT ltad.train_number) like concat('%',#{param.trainNumber},'%') - - - and GROUP_CONCAT(DISTINCT IFNULL(ltcls.load_code,ltclsm.load_code)) like concat('%',#{param.loadCode},'%') - group by ltad.order_code, ltad.waybill_no, ltad.brand, @@ -1561,23 +1567,10 @@ and GROUP_CONCAT(DISTINCT ltad.train_number) like concat('%',#{param.trainNumber},'%') - GROUP_CONCAT(DISTINCT IFNULL(ltcls.load_code,ltclsm.load_code)) loadCode, and GROUP_CONCAT(DISTINCT IFNULL(ltcls.load_code,ltclsm.load_code)) like concat('%',#{param.loadCode},'%') - - and min(ltad.create_time) >= #{param.startTime} - - - and min(ltad.create_time) <= #{param.endTime} - - - and min(lww.create_time) >= #{param.openTimeStart} - - - and min(lww.create_time) <= #{param.openTimeEnd} - diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java index 8b36e8e77..687a7fd47 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java @@ -1146,6 +1146,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl listEntityList = distributionParcelListClient.findEntityListByOrderCode(orderCode, warehouseId); //把listEntityList中所有元素的id放入一个集合 @@ -1517,12 +1523,6 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl loadScanIds, Long warehouseId, String warehouseName) { + Date date = new Date(); + List carsLoadScanEntityList = trunklineCarsLoadScanService.findListByIds(loadScanIds); //排除carsLoadScanEntityList中unloadCheck为1的值 carsLoadScanEntityList = carsLoadScanEntityList.stream().filter(carsLoadScanEntity -> !carsLoadScanEntity.getUnloadCheck().equals(1)).collect(Collectors.toList()); @@ -5181,6 +5183,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl listEntityList = distributionParcelListClient.findEntityListByOrderCode(orderCode, warehouseId); //把listEntityList中所有元素的id放入一个集合