diff --git a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/vo/TrunklineCarsLoadScanVO.java b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/vo/TrunklineCarsLoadScanVO.java index b4cb3e094..a9bee5e6d 100644 --- a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/vo/TrunklineCarsLoadScanVO.java +++ b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/vo/TrunklineCarsLoadScanVO.java @@ -8,4 +8,7 @@ public class TrunklineCarsLoadScanVO extends TrunklineCarsLoadScanEntity { private Long signOrderId; + private String destinationWarehouseName; + + } diff --git a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseWaybillEntity.java b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseWaybillEntity.java index e50c2211a..d9f93f9f6 100644 --- a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseWaybillEntity.java +++ b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseWaybillEntity.java @@ -18,6 +18,7 @@ package com.logpm.warehouse.entity; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -373,21 +374,25 @@ public class WarehouseWaybillEntity extends TenantEntity { * 现付金额 */ @ApiModelProperty(value = "现付金额") + @JsonProperty("xPay") private BigDecimal xPay;//现付金额 /** * 到付 */ @ApiModelProperty(value = "到付") + @JsonProperty("dPay") private BigDecimal dPay;//到付 /** * 月结 */ @ApiModelProperty(value = "月结") + @JsonProperty("yPay") private BigDecimal yPay;//月结 /** * 回付 */ @ApiModelProperty(value = "回付") + @JsonProperty("hPay") private BigDecimal hPay;//回付 /** * 三方操作费 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 47a2426a3..d945081a5 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 @@ -220,7 +220,7 @@ select ltad.waybill_id waybillId, ltad.waybill_no waybillNo, - ldpl.warehouse nowWarehouseName, + t.warehouse nowWarehouseName, ltad.train_number trainNumber, ltad.package_status packageStatus, lta.is_gcp isGcp, @@ -251,40 +251,39 @@ 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_distribution_parcel_list ldpl on ltad.order_package_code = ldpl.order_package_code - left join ( + left join (select ldpl.* from logpm_distribution_parcel_list ldpl + join ( select pl.order_package_code, max(pl.update_time) updateTime from logpm_distribution_parcel_list pl - left join logpm_trunkline_advance_detail ad on ad.order_package_code = pl.order_package_code where 1=1 and LOCATE(#{param.orderCode}, pl.order_code) > 0 - and ad.waybill_no = #{param.waybillNo} + and pl.waybill_no = #{param.waybillNo} - and ad.train_number = #{param.trainNumber} + and pl.train_number = #{param.trainNumber} - and ad.service_num = #{param.serviceNumber} + and pl.service_number = #{param.serviceNumber} - and LOCATE(#{param.orderPackageCode},ad.order_package_code) > 0 + and LOCATE(#{param.orderPackageCode},pl.order_package_code) > 0 group by pl.order_package_code - ) tmax on tmax.order_package_code = ldpl.order_package_code and ldpl.update_time = tmax.updateTime - left join logpm_warehouse_tray_goods lwtg on lwtg.association_value = ldpl.order_package_code and lwtg.warehouse_id = ldpl.warehouse_id + ) tmax on tmax.order_package_code = ldpl.order_package_code and ldpl.update_time = tmax.updateTime) t on t.order_package_code = ltad.order_package_code + left join logpm_warehouse_tray_goods lwtg on lwtg.association_value = t.order_package_code and lwtg.warehouse_id = t.warehouse_id left join logpm_warehouse_tray lwt on lwtg.tray_id = lwt.id - left join logpm_trunkline_cars_load_scan ltcls on ltcls.scan_code = ldpl.order_package_code - left join ( - select cls.scan_code, - max(cls.update_time) cupdateTime - from logpm_trunkline_cars_load_scan cls - group by cls.scan_code - ) cmax on cmax.scan_code = ldpl.order_package_code and cmax.cupdateTime = ltcls.update_time - left join logpm_distribution_loadscan ldl on ldl.order_package_code = ldpl.order_package_code and ldl.scan_status != 1 and ldl.is_deleted = 0 + left join (select ltcls.* from logpm_trunkline_cars_load_scan ltcls + join ( + select cls.scan_code, + max(cls.update_time) cupdateTime + from logpm_trunkline_cars_load_scan cls + group by cls.scan_code + ) cmax on cmax.scan_code = ltcls.scan_code and cmax.cupdateTime = ltcls.update_time) m on m.scan_code = t.order_package_code + left join logpm_distribution_loadscan ldl on ldl.order_package_code = t.order_package_code and ldl.scan_status != 1 and ldl.is_deleted = 0 left join logpm_distribution_delivery_list lddl on lddl.id = ldl.delivery_id where 1=1 @@ -312,7 +311,7 @@ and ltad.brand = #{param.brand} - and ltcls.load_code = #{param.trunklineCarsNo} + and m.load_code = #{param.trunklineCarsNo} and lddl.train_number = #{param.deliveryTrainNumber} 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 a432b9d9f..0b5cd45bd 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 @@ -38,7 +38,7 @@ public interface TrunklineCarsLoadScanMapper extends BaseMapper findProductInfoList(@Param("loadId") Long loadId, @Param("trayCode") String trayCode, @Param("waybillNo") String waybillNo); - IPage loadingDetail(IPage page, @Param("param") LoadCarsDTO loadCarsDTO); + IPage loadingDetail(IPage page, @Param("param") LoadCarsDTO loadCarsDTO); List findCarsLoadingOrderDetail(@Param("loadId") Long loadId, @Param("orderCode") String orderCode, @Param("warehouseId") Long warehouseId); 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 e1635eb5c..439f3e60c 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 @@ -79,72 +79,77 @@ and waybill_no = #{waybillNo} - + select cls.*, + lww.destination_warehouse_name + from logpm_trunkline_cars_load_scan cls + left join logpm_warehouse_waybill lww on cls.waybill_id = lww.id + where cls.load_id = #{param.loadId} - and Locate(#{param.waybillNo},waybill_no) > 0 + and Locate(#{param.waybillNo},cls.waybill_no) > 0 - and Locate(#{param.orderCode},order_code) > 0 + and Locate(#{param.orderCode},cls.order_code) > 0 - and Locate(#{param.scanCode},scan_code) > 0 + and Locate(#{param.scanCode},cls.scan_code) > 0 - and Locate(#{param.loadingUserName},loading_user_name) > 0 + and Locate(#{param.loadingUserName},cls.loading_user_name) > 0 - and Locate(#{param.warehouseName},warehouse_name) > 0 + and Locate(#{param.warehouseName},cls.warehouse_name) > 0 - and Locate(#{param.finalNodeName},final_node_name) > 0 + and Locate(#{param.finalNodeName},cls.final_node_name) > 0 - and Locate(#{param.finalNodeName},final_node_name) > 0 + and Locate(#{param.finalNodeName},cls.final_node_name) > 0 - and scan_status = #{param.scanStatus} + and cls.scan_status = #{param.scanStatus} - and Locate(#{param.trayName},tray_name) > 0 + and Locate(#{param.trayName},cls.tray_name) > 0 - and Locate(#{param.trayCode},tray_code) > 0 + and Locate(#{param.trayCode},cls.tray_code) > 0 - and Locate(#{param.unloadNodeName},unload_node_name) > 0 + and Locate(#{param.unloadNodeName},cls.unload_node_name) > 0 - and Locate(#{param.unloadUserName},unload_user_name) > 0 + and Locate(#{param.unloadUserName},cls.unload_user_name) > 0 - and `type` = #{param.type} + and cls.`type` = #{param.type} - and is_data = #{param.isData} + and cls.is_data = #{param.isData} - and loading_abnormal = #{param.loadingAbnormal} + and cls.loading_abnormal = #{param.loadingAbnormal} - and unload_abnormal = #{param.unloadAbnormal} + and cls.unload_abnormal = #{param.unloadAbnormal} - and is_supple = #{param.isSupple} + and cls.is_supple = #{param.isSupple} - and create_time >= #{param.createTimeStart} + and cls.create_time >= #{param.createTimeStart} - and create_time <= #{param.createTimeEnd} + and cls.create_time <= #{param.createTimeEnd} - and unload_time >= #{param.unloadTimeStart} + and cls.unload_time >= #{param.unloadTimeStart} - and unload_time <= #{param.unloadTimeEnd} + and cls.unload_time <= #{param.unloadTimeEnd} + + + and Locate(#{param.destinationWarehouseName},lww.destination_warehouse_name) > 0 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 dd53635e0..48dc07409 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 @@ -34,7 +34,7 @@ public interface ITrunklineCarsLoadScanService extends BaseService findProductInfoList(Long loadId, String trayCode, String waybillNo); - IPage loadingDetail(IPage page, LoadCarsDTO loadCarsDTO); + IPage loadingDetail(IPage page, LoadCarsDTO loadCarsDTO); List findCarsLoadingOrderDetail(Long loadId, String orderCode, Long warehouseId); 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 118f20aa7..e80793a1d 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 @@ -70,7 +70,7 @@ public class TrunklineCarsLoadScanServiceImpl extends BaseServiceImpl loadingDetail(IPage page, LoadCarsDTO loadCarsDTO) { + public IPage loadingDetail(IPage page, LoadCarsDTO loadCarsDTO) { return baseMapper.loadingDetail(page,loadCarsDTO); } diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java index 833be0b25..419caa9b5 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java @@ -2081,7 +2081,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl pageList = trunklineCarsLoadScanService.loadingDetail(page, loadCarsDTO); + IPage pageList = trunklineCarsLoadScanService.loadingDetail(page, loadCarsDTO); return R.data(pageList); } 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 f282851cf..8af4d07c8 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 @@ -238,10 +238,10 @@ and lww.create_time <= #{param.createTimeEndDate} - and lww.Locate(#{param.agent},agent) > 0 + and Locate(#{param.agent},lww.agent) > 0 - and lww.Locate(#{param.goodsName},goods_name) > 0 + and Locate(#{param.goodsName},lww.goods_name) > 0 and lww.freeze_status = #{param.freezeStatus} @@ -249,7 +249,7 @@ and lww.abolish_status = #{param.abolishStatus} - + and Locate(#{param.remark},lww.remark) > 0