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} +