From 33ab46a7339ac1ca433b1c8dad55dbe341294461 Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Fri, 19 Jul 2024 19:26:09 +0800 Subject: [PATCH] =?UTF-8?q?1.bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/TrunklineCarsLoadScanEntity.java | 8 ++ .../logpm/trunkline/vo/OrderDetailInfoVO.java | 1 + .../trunkline/api/CarsLoadApiController.java | 4 +- .../mapper/TrunklineAdvanceDetailMapper.xml | 6 +- .../mapper/TrunklineCarsLoadMapper.xml | 6 ++ .../service/ITrunklineCarsLoadService.java | 4 +- .../service/impl/InComingServiceImpl.java | 12 +++ .../service/impl/OpenOrderServiceImpl.java | 63 +++++++++++++- .../impl/TrunklineCarsLoadServiceImpl.java | 60 +++++++++---- .../IWarehousePackageTrackLogService.java | 4 + .../WarehousePackageTrackLogServiceImpl.java | 17 ++++ .../impl/WarehouseTrayTypeServiceImpl.java | 84 ++++++++++++++++++- .../impl/WarehouseUpdownTypeServiceImpl.java | 64 ++++++++++++++ 13 files changed, 305 insertions(+), 28 deletions(-) diff --git a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/entity/TrunklineCarsLoadScanEntity.java b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/entity/TrunklineCarsLoadScanEntity.java index cf011241f..ec1eb3a9f 100644 --- a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/entity/TrunklineCarsLoadScanEntity.java +++ b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/entity/TrunklineCarsLoadScanEntity.java @@ -134,4 +134,12 @@ public class TrunklineCarsLoadScanEntity extends TenantEntity { @ApiModelProperty(name = "卸车时间",notes = "") private Date unloadTime; + /** 卸车托盘名称 */ + @ApiModelProperty(name = "卸车托盘名称",notes = "") + private String unloadTrayName; + + /** 卸车托盘编码 */ + @ApiModelProperty(name = "卸车托盘编码",notes = "") + private String unloadTrayCode; + } diff --git a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/vo/OrderDetailInfoVO.java b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/vo/OrderDetailInfoVO.java index 8f39ae94a..152d0eaed 100644 --- a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/vo/OrderDetailInfoVO.java +++ b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/vo/OrderDetailInfoVO.java @@ -27,6 +27,7 @@ public class OrderDetailInfoVO implements Serializable { private Integer quantity; private String trayCode; private String trayName; + private String goodsAllocation; private BigDecimal weight; private BigDecimal volume; private String sendDateStr; diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/api/CarsLoadApiController.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/api/CarsLoadApiController.java index 5054165c1..9a6395ad7 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/api/CarsLoadApiController.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/api/CarsLoadApiController.java @@ -555,7 +555,7 @@ public class CarsLoadApiController { return R.fail(405,"入库类型为空"); } - return carsLoadService.unloadPackage(loadId,orderPackageCode,myCurrentWarehouse.getId(),1,"正常卸车",incomingType); + return carsLoadService.unloadPackage(loadId,orderPackageCode,myCurrentWarehouse.getId(),1,"正常卸车",incomingType,null,null); }catch (CustomerException e){ log.error(e.message,e); return R.fail(e.code,e.message); @@ -601,7 +601,7 @@ public class CarsLoadApiController { return R.fail(405,"订单号为空"); } - return carsLoadService.unloadZero(loadId,waybillNo,enterNum,myCurrentWarehouse.getId(),1,trayCode,orderCode,"零担正常卸车"); + return carsLoadService.unloadZero(loadId,waybillNo,enterNum,myCurrentWarehouse.getId(),1,trayCode,orderCode,"零担正常卸车",null,null); }catch (CustomerException e){ log.error(e.message,e); return R.fail(e.code,e.message); diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineAdvanceDetailMapper.xml b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineAdvanceDetailMapper.xml index 734206167..cbd9bd697 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineAdvanceDetailMapper.xml +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineAdvanceDetailMapper.xml @@ -240,7 +240,8 @@ lta.service_num serviceNumber, ltad.quantity quantity, lwtg.tray_code trayCode, - lwt.pallet_name trayName, + ldpl.pallet trayName, + ldpl.goods_allocation goodsAllocation, ltad.weight weight, ltad.volume volume, ltad.send_date_str sendDateStr, @@ -256,8 +257,7 @@ lta.create_time createTime from logpm_trunkline_advance_detail ltad left join logpm_trunkline_advance lta on lta.id = ltad.advance_id - left join logpm_warehouse_tray_goods lwtg on lwtg.association_value = ltad.order_package_code and lwtg.warehouse_id = ltad.now_warehouse_id - left join logpm_warehouse_tray lwt on lwtg.tray_id = lwt.id + left join logpm_distribution_parcel_list ldpl on ldpl.order_package_code = ltad.order_package_code and ldpl.warehouse_id = ltad.now_warehouse_id left join (select ltcls.* from logpm_trunkline_cars_load_scan ltcls join ( select cls.scan_code, 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 e7d0126cb..b1bdda593 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 @@ -51,6 +51,9 @@ and ltcl.load_status = #{param.loadStatus} + + and (Locate(#{param.warehouseName},ltcl.start_warehouse_name) > 0 or Locate(#{param.warehouseName},ltcl.end_warehouse_name) > 0) + group by ltcl.id,ltcl.cars_no, ltcl.plan_loading_number, ltcl.real_loading_number, @@ -469,6 +472,9 @@ and ltcl.start_time <= #{param.endTime} + + and (Locate(#{param.warehouseName},ltcl.start_warehouse_name) > 0 or Locate(#{param.warehouseName},ltcl.end_warehouse_name) > 0) +