From 60f0b4ebcf3bb7bf6deeddd1cd6c7de77a8f1e51 Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Wed, 16 Oct 2024 20:38:06 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=B9=B2=E7=BA=BFbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/logpm/trunkline/dto/LoadCarsDTO.java | 2 ++ .../entity/TrunklineCarsLoadEntity.java | 3 +++ .../mapper/TrunklineCarsLoadMapper.xml | 2 ++ .../mapper/TrunklineCarsLoadScanMapper.java | 2 ++ .../mapper/TrunklineCarsLoadScanMapper.xml | 13 +++++++++++ .../ITrunklineCarsLoadScanService.java | 2 ++ .../TrunklineCarsLoadScanServiceImpl.java | 5 +++++ .../impl/TrunklineCarsLoadServiceImpl.java | 22 +++++++++++-------- 8 files changed, 42 insertions(+), 9 deletions(-) diff --git a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/LoadCarsDTO.java b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/LoadCarsDTO.java index 0bf40421e..76dda93a3 100644 --- a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/LoadCarsDTO.java +++ b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/LoadCarsDTO.java @@ -71,6 +71,8 @@ public class LoadCarsDTO implements Serializable { private String trayCode; private String trayName; + private String unloadTrayName; + private String unloadTrayCode; private String trayType; private Integer isZero; private String scanCode; diff --git a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/entity/TrunklineCarsLoadEntity.java b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/entity/TrunklineCarsLoadEntity.java index a3ac3b560..e0eac6929 100644 --- a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/entity/TrunklineCarsLoadEntity.java +++ b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/entity/TrunklineCarsLoadEntity.java @@ -130,6 +130,9 @@ public class TrunklineCarsLoadEntity extends TenantEntity { /** 卸车件数 */ @ApiModelProperty(name = "卸车件数",notes = "") private Integer unloadNumber ; + /** 卸车件数 */ + @ApiModelProperty(name = "在车件数",notes = "") + private Integer stockNumber ; /** 异常件数 */ @ApiModelProperty(name = "异常件数",notes = "") private Integer abnormalNum ; diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.xml b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.xml index 047a58c1c..ce9c6e976 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.xml +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.xml @@ -8,6 +8,7 @@ ltcl.cars_line_name carsLineName, ltcl.plan_loading_number planLoadingNumber, ltcl.real_loading_number realLoadingNumber, + ltcl.stock_number stockCarsNum, ltcl.unload_number unloadNumber, ltcl.loading_type loadingType, ltcl.full_load_rate fullLoadRate, @@ -107,6 +108,7 @@ ltcl.cars_no carsNo, ltcl.plan_loading_number planLoadingNumber, ltcl.real_loading_number realLoadingNumber, + ltcl.stock_number stockCarsNum, ltcl.unload_number unloadNumber, ltcl.full_load_rate fullLoadRate, ltcl.is_customer isCustomer, diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadScanMapper.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadScanMapper.java index dda64ed39..1c837c4a4 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadScanMapper.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadScanMapper.java @@ -185,4 +185,6 @@ public interface TrunklineCarsLoadScanMapper extends BaseMapper findAllIdListByLoadIdAndScanStatus(@Param("loadId") Long loadId, @Param("scanStatus") String scanStatus); CustmoerUnloadNumVO findCarsLoadCustomeNumByLoadIdAndUnloadWarehouseId(@Param("loadId") Long loadId, @Param("warehouseId") Long warehouseId); + + Integer findStockNumByLoadId(@Param("loadId") Long loadId); } diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadScanMapper.xml b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadScanMapper.xml index fbc939a8e..897cd4113 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadScanMapper.xml +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadScanMapper.xml @@ -115,6 +115,12 @@ and Locate(#{param.trayCode},cls.tray_code) > 0 + + and Locate(#{param.unloadTrayName},cls.unload_tray_name) > 0 + + + and Locate(#{param.unloadTrayCode},cls.unload_tray_code) > 0 + and Locate(#{param.unloadNodeName},cls.unload_node_name) > 0 @@ -995,5 +1001,12 @@ and sign_order_id is not null + + diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/ITrunklineCarsLoadScanService.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/ITrunklineCarsLoadScanService.java index bd2a2600d..4cf654b4a 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/ITrunklineCarsLoadScanService.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/ITrunklineCarsLoadScanService.java @@ -181,4 +181,6 @@ public interface ITrunklineCarsLoadScanService extends BaseService findAllIdListByLoadIdAndScanStatus(Long loadId, String scanStatus); CustmoerUnloadNumVO findCarsLoadCustomeNumByLoadIdAndUnloadWarehouseId(Long loadId, Long warehouseId); + + Integer findStockNumByLoadId(Long loadId); } diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadScanServiceImpl.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadScanServiceImpl.java index 3607d9f0c..4c242ea94 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadScanServiceImpl.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadScanServiceImpl.java @@ -464,4 +464,9 @@ public class TrunklineCarsLoadScanServiceImpl extends BaseServiceImpl