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