From 549d93a73de475988c0527a6e4d19a27b5535962 Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" Date: Tue, 9 Jul 2024 19:01:01 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0=E8=A3=85=E8=BD=A6=E6=97=B6?= =?UTF-8?q?=E9=97=B4=202.=E5=A2=9E=E5=8A=A0=E6=94=B9=E5=8D=95=E7=9A=84?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8E=9F=E6=8E=A8=E9=80=81=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=203.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../feign/IWarehouseWaybillClient.java | 2 + .../feign/IWarehouseWaybillDetailClient.java | 2 + .../impl/BusinessPreOrderServiceImpl.java | 94 ++++--- .../BusinessPreOrderDataQueueHandler.java | 1 + .../mapper/TrunklineAdvanceDetailMapper.java | 1 + .../mapper/TrunklineAdvanceDetailMapper.xml | 4 + .../mapper/TrunklineAdvanceMapper.java | 2 + .../mapper/TrunklineAdvanceMapper.xml | 4 + .../mapper/TrunklineWaybillOrderMapper.java | 2 + .../mapper/TrunklineWaybillOrderMapper.xml | 4 + .../mapper/TrunklineWaybillPacakgeMapper.xml | 3 + .../mapper/TrunklineWaybillPackageMapper.java | 3 +- .../mapper/TrunklineWaybillTrackMapper.java | 1 + .../mapper/TrunklineWaybillTrackMapper.xml | 3 + .../mq/OpenWaybillToBusinessListener.java | 52 ++-- .../trunkline/service/IAsyncService.java | 14 +- .../ITrunklineAdvanceDetailService.java | 1 + .../service/ITrunklineAdvanceService.java | 2 + .../ITrunklineWaybillOrderService.java | 2 + .../ITrunklineWaybillPackageService.java | 2 + .../ITrunklineWaybillTrackService.java | 2 + .../service/impl/AsyncServiceImpl.java | 237 ++++++++++-------- .../impl/OpenOrderAsyncServiceImpl.java | 7 + .../service/impl/OpenOrderServiceImpl.java | 23 ++ .../TrunklineAdvanceDetailServiceImpl.java | 5 + .../impl/TrunklineAdvanceServiceImpl.java | 4 + .../TrunklineWaybillOrderServiceImpl.java | 5 + .../TrunklineWaybillPackageServiceImpl.java | 5 + .../TrunklineWaybillTrackServiceImpl.java | 5 + .../feign/WarehouseWaybillClient.java | 5 + .../feign/WarehouseWaybillDetailClient.java | 5 + .../mapper/WarehouseWayBillDetailMapper.java | 3 + .../mapper/WarehouseWaybillDetailMapper.xml | 5 + .../mapper/WarehouseWaybillMapper.java | 1 + .../mapper/WarehouseWaybillMapper.xml | 3 + .../IWarehouseWayBillDetailService.java | 2 + .../service/IWarehouseWaybillService.java | 2 + .../WarehouseWayBillDetailServiceImpl.java | 18 +- .../impl/WarehouseWaybillServiceImpl.java | 5 +- 39 files changed, 360 insertions(+), 181 deletions(-) diff --git a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/feign/IWarehouseWaybillClient.java b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/feign/IWarehouseWaybillClient.java index 57dfcdc3b..40de17732 100644 --- a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/feign/IWarehouseWaybillClient.java +++ b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/feign/IWarehouseWaybillClient.java @@ -92,5 +92,7 @@ public interface IWarehouseWaybillClient { @GetMapping(API_PREFIX+"/findWaybillEntityByOrderPackageCode") WarehouseWaybillEntity findWaybillEntityByOrderPackageCode(@RequestParam String orderPackageCode); + @GetMapping(API_PREFIX+"/deleteByWaybillNo") + void deleteByWaybillNo(String waybillNo); } diff --git a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/feign/IWarehouseWaybillDetailClient.java b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/feign/IWarehouseWaybillDetailClient.java index 060201366..02f463493 100644 --- a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/feign/IWarehouseWaybillDetailClient.java +++ b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/feign/IWarehouseWaybillDetailClient.java @@ -67,4 +67,6 @@ public interface IWarehouseWaybillDetailClient { void addEntity(@RequestBody WarehouseWayBillDetail warehouseWayBillDetail); @PostMapping(API_PREFIX+"/findByWaybillIds") List findByWaybillIds(@RequestBody List waybillIds); + @PostMapping(API_PREFIX+"/deleteByWaybillNo") + void deleteByWaybillNo(String waybillNo); } diff --git a/blade-service/logpm-business/src/main/java/com/logpm/business/service/impl/BusinessPreOrderServiceImpl.java b/blade-service/logpm-business/src/main/java/com/logpm/business/service/impl/BusinessPreOrderServiceImpl.java index 7180e6b59..c485bf9b1 100644 --- a/blade-service/logpm-business/src/main/java/com/logpm/business/service/impl/BusinessPreOrderServiceImpl.java +++ b/blade-service/logpm-business/src/main/java/com/logpm/business/service/impl/BusinessPreOrderServiceImpl.java @@ -58,19 +58,17 @@ public class BusinessPreOrderServiceImpl extends BaseServiceImpl idArray = Arrays.asList(ids.split(",")); QueryWrapper wrapper = new QueryWrapper(); @@ -99,13 +97,13 @@ public class BusinessPreOrderServiceImpl extends BaseServiceImpl list1 = baseMapper.selectList(queryWrapper1); - BusinessPreOrderEntity data =null; + BusinessPreOrderEntity data = null; if (list1.isEmpty()) { // 新增改车次的预入库信息 TrunklineAdvanceDetailEntity entityByOrderPackageCode = trunklineAdvanceDetailClient.findEntityByOrderPackageCode(orderPackageCode); @@ -605,19 +599,19 @@ public class BusinessPreOrderServiceImpl extends BaseServiceImpl + + delete from logpm_trunkline_advance_detail + where waybill_no = #{waybillNo} + select sum(ltwo.total_number) diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineWaybillPacakgeMapper.xml b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineWaybillPacakgeMapper.xml index 353a36403..22a75b0ba 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineWaybillPacakgeMapper.xml +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineWaybillPacakgeMapper.xml @@ -1,6 +1,9 @@ + + delete from logpm_trunkline_waybill_package where waybill_no = #{waybillNo} + diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineWaybillPackageMapper.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineWaybillPackageMapper.java index 15d532d02..66dcec4e4 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineWaybillPackageMapper.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineWaybillPackageMapper.java @@ -3,10 +3,11 @@ package com.logpm.trunkline.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.logpm.trunkline.entity.TrunklineWaybillPackageEntity; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; @Mapper public interface TrunklineWaybillPackageMapper extends BaseMapper { - + void deleteByWaybillNo(@Param("waybillNo") String waybillNo); } diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineWaybillTrackMapper.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineWaybillTrackMapper.java index d0039a219..241f40e9e 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineWaybillTrackMapper.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineWaybillTrackMapper.java @@ -17,4 +17,5 @@ public interface TrunklineWaybillTrackMapper extends BaseMapper findUpdateWaybillList(IPage page, @Param("param") OpenOrderDTO openOrderDTO); + void deleteByWaybillNo(@Param("waybillNo") String waybillNo); } diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineWaybillTrackMapper.xml b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineWaybillTrackMapper.xml index d19bb733f..2a710a662 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineWaybillTrackMapper.xml +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineWaybillTrackMapper.xml @@ -1,6 +1,9 @@ + + delete from logpm_trunkline_waybill_track where waybill_no = #{waybillNo} + select * diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseWaybillMapper.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseWaybillMapper.java index 5dea917ab..859a96646 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseWaybillMapper.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseWaybillMapper.java @@ -69,4 +69,5 @@ public interface WarehouseWaybillMapper extends BaseMapper exportWaybillList(@Param("param") WarehouseWaybillDTO waybillDTO); + void deleteByWaybillNo(@Param("waybillNo") String waybillNo); } diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseWaybillMapper.xml b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseWaybillMapper.xml index 8af4d07c8..2915965be 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseWaybillMapper.xml +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseWaybillMapper.xml @@ -55,6 +55,9 @@ + + delete from logpm_warehouse_waybill where waybill_no = #{waybillNo} +