From 40c915a0f3e4e097502bc48eb55b507e782afb1f Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Tue, 15 Oct 2024 15:17:03 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=8A=E6=9E=B6=E3=80=81=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=A2=84=E7=BA=A6=E8=AF=A6=E6=83=85BUG=E3=80=81=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=A4=87=E8=B4=A7=E6=89=AB=E6=8F=8F=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/DistributionReservationMapper.xml | 8 +- .../impl/DistributionStockupServiceImpl.java | 2 +- .../WarehouseWarehousingEntryController.java | 1 + .../impl/WarehouseConfigServiceImpl.java | 1 + .../WarehouseWarehousingEntryServiceImpl.java | 107 +++++++++++------- 5 files changed, 77 insertions(+), 42 deletions(-) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.xml index f7f2cf6a7..885b931e4 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.xml @@ -624,7 +624,7 @@ ldsl.sku, ldsl.source_type, ldrs.reservation_num, - count(ldsld.stock_package_code) AS stockupNum, + (SELECT IFNULL(SUM(stock_quantity),0) FROM logpm_distribution_stock WHERE reservation_id = ldrs.reservation_id AND stock_list_id = ldrs.stocklist_id) AS stockupNum, (SELECT lds.stockup_area FROM logpm_distribution_stockup_info AS ldsi INNER JOIN logpm_distribution_stockup AS lds ON ldsi.stockup_id = lds.id WHERE ldsi.reservation_id = ldrs.reservation_id) AS stockupArea FROM @@ -632,7 +632,11 @@ INNER JOIN logpm_distribution_stock_list AS ldsl ON ldrs.stocklist_id = ldsl.id INNER JOIN logpm_dis_stock_list_detail AS ldsld ON ldrs.reservation_id = ldsld.reservation_id and ldrs.stocklist_id = ldsl.id - WHERE ldrs.reservation_id = #{reservationId} + WHERE + ldrs.is_deleted = 0 + AND ldrs.reservation_id = #{reservationId} + + AND ldrs.stock_list_status != 2 GROUP BY ldsl.id select count(*) billCount from - logpm_platform.logpm_warehouse_waybill + logpm_warehouse_waybill where freeze_status = 0 diff --git a/blade-service/logpm-report/src/main/java/com/logpm/report/mapper/IndexCountMapper.xml b/blade-service/logpm-report/src/main/java/com/logpm/report/mapper/IndexCountMapper.xml index b3aa9c612..bd0c57778 100644 --- a/blade-service/logpm-report/src/main/java/com/logpm/report/mapper/IndexCountMapper.xml +++ b/blade-service/logpm-report/src/main/java/com/logpm/report/mapper/IndexCountMapper.xml @@ -5,7 +5,7 @@ select count(*) FROM - logpm_platform.logpm_aftersales_work_order + logpm_aftersales_work_order where create_time > MONTH(CURRENT_DATE()) @@ -24,8 +24,8 @@ - select count(*) count,b.type_service as typeService from logpm_platform.logpm_distribution_parcel_list as a - inner join logpm_platform.logpm_distribution_stock_article as b on a.stock_article_id = b.id + select count(*) count,b.type_service as typeService from logpm_distribution_parcel_list as a + inner join logpm_distribution_stock_article as b on a.stock_article_id = b.id where a.create_time > MONTH(CURRENT_DATE()) diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineBillladingWaybillMapper.xml b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineBillladingWaybillMapper.xml index dd552b2ca..4c424be0a 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineBillladingWaybillMapper.xml +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineBillladingWaybillMapper.xml @@ -51,7 +51,7 @@ left join (select IFNULL(ltad.waybill_no,'————') waybillNo, COUNT(ltbp.id) num from logpm_trunkline_billlading_package ltbp - left join logpm_platform.logpm_trunkline_advance_detail ltad on ltbp.order_package_code = ltad.order_package_code + left join logpm_trunkline_advance_detail ltad on ltbp.order_package_code = ltad.order_package_code where ltbp.billlading_id=#{billladingId} group by IFNULL(ltad.waybill_no,'————')) t on t.waybillNo = ltbw.waybill_no left join logpm_trunkline_billlading ltb on ltb.id = ltbw.billlading_id @@ -140,7 +140,7 @@ left join (select IFNULL(ltad.waybill_no,'————') waybillNo, COUNT(ltbp.id) num from logpm_trunkline_billlading_package ltbp - left join logpm_platform.logpm_trunkline_advance_detail ltad on ltbp.order_package_code = ltad.order_package_code + left join logpm_trunkline_advance_detail ltad on ltbp.order_package_code = ltad.order_package_code where ltbp.billlading_id=#{billladingId} group by IFNULL(ltad.waybill_no,'————')) t on t.waybillNo = ltbw.waybill_no left join logpm_trunkline_billlading ltb on ltb.id = ltbw.billlading_id diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseRetentionRecordMapper.xml b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseRetentionRecordMapper.xml index 819440f90..a93663d94 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseRetentionRecordMapper.xml +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseRetentionRecordMapper.xml @@ -91,7 +91,7 @@ remark, cancel_retention_user_name, cancel_remark - from logpm_platform.logpm_warehouse_retention_record lwrr + from logpm_warehouse_retention_record lwrr lwrr.is_deleted = 0