diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionBillOrderVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionBillOrderVO.java
index 7f7b541e8..bb71ea973 100644
--- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionBillOrderVO.java
+++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionBillOrderVO.java
@@ -44,11 +44,15 @@ public class DistributionBillOrderVO {
/**
* 提货件数
*/
- private String pickUpQuantity;
+ private Integer pickUpQuantity;
/**
* 提货状态
*/
private String conditions;
+ /**
+ * 提货状态
+ */
+ private String conditionsName;
/**
* 签收时间
*/
diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionBillOrderExcel.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionBillOrderExcel.java
index 595f8db81..87fc8b29b 100644
--- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionBillOrderExcel.java
+++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionBillOrderExcel.java
@@ -20,49 +20,93 @@ public class DistributionBillOrderExcel {
@ColumnWidth(20)
@ExcelProperty("服务号")
private String serviceNumber;
+
+ @ColumnWidth(20)
@ExcelProperty("运单号")
private String waybillNumber; //运单号
-// @ColumnWidth(20)
-// @ExcelProperty("客户车次号")
-// private String trainNumber; //客户车次号
+
+
+ @ColumnWidth(20)
+ @ExcelProperty("订单自编号")
+ private String orderCode; //客户车次号
+
+
@ColumnWidth(20)
@ExcelProperty("始发仓")
private String sendWarehouseName; //始发仓
- @ColumnWidth(20)
- @ExcelProperty("订单总数")
- private String totalNumber;
- @ColumnWidth(20)
- @ExcelProperty("应提货件数")
- private String handQuantity;
- @ColumnWidth(20)
- @ExcelProperty("提货件数")
- private String pickUpQuantity;
- @ColumnWidth(20)
- @ExcelProperty("提货状态")
- private String conditions;
- @ColumnWidth(20)
- @ExcelProperty("提货状态")
- private String conditionsName;
+
+
@ColumnWidth(20)
@ExcelProperty("货物名称")
private String descriptionGoods;
+
+
@ColumnWidth(20)
@ExcelProperty("物料名称")
private String materialName;
+
+
+ @ColumnWidth(20)
+ @ExcelProperty("订单总数")
+ private Integer totalNumber;
+
+
+ @ColumnWidth(20)
+ @ExcelProperty("计划件数")
+ private Integer handQuantity;
+
+
+
+
@ColumnWidth(20)
- @ExcelProperty("备货件数") //TODO 和应提货件数 值一样后期可能要改
- private String stockUpQuantity;
+ @ExcelProperty("备货件数")
+ private Integer preparedQuantity;
+
@ColumnWidth(20)
- @ExcelProperty("已备数量")
- private String preparedQuantity;
+ @ExcelProperty("实提件数")
+ private Integer pickUpQuantity;
+
+
+
+
@ColumnWidth(20)
@ExcelProperty("备货状态")
private String stockupStatusName;
+
+
+ @ColumnWidth(20)
+ @ExcelProperty("提货状态")
+ private String conditionsName;
+
+
+//
+// @ColumnWidth(20)
+// @ExcelProperty("备货件数")
+// private String stockUpQuantity;
+
+
+// @ColumnWidth(20)
+// @ExcelProperty("已备数量")
+// private String preparedQuantity;
+
+//
+// @ColumnWidth(20)
+// @ExcelProperty("备货状态")
+// private String stockupStatusName;
+
+
@ExcelIgnore
private String stockupStatus;
+
+ @ExcelIgnore
+ private String conditions;
+
+
@ColumnWidth(20)
@ExcelProperty("托盘码")
private String pallet;
+
+
@ColumnWidth(20)
@ExcelProperty("货位信息")
private String goodsAllocation;
diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml
index 0325a9237..2babcf5ce 100644
--- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml
+++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml
@@ -96,13 +96,17 @@
IF(c.scan_user is not null,c.scan_user,IF(b.scan_user is not null,b.scan_user,a.scan_user)) AS scanUser,
IF(c.signing_user is not null,c.signing_user,IF(b.signing_user is not null,b.signing_user,a.signing_user)) AS signingUser,
IF(c.scan_time is not null,c.scan_time,IF(b.scan_time is not null,b.scan_time,a.scan_time)) AS loadingTime,
- IF(c.signing_time is not null,c.signing_time,IF(b.signing_time is not null,b.signing_time,a.signing_time)) AS signingTime
+ IF(c.signing_time is not null,c.signing_time,IF(b.signing_time is not null,b.signing_time,a.signing_time)) AS signingTime,
+ m.qr_code AS goodsAllocation,
+ n.pallet_name AS pallet
FROM
logpm_distribution_parcel_list AS ldpl
LEFT JOIN logpm_warehouse_updown_goods lwug ON ldpl.id = lwug.association_id
LEFT JOIN logpm_warehouse_tray_goods lwtg ON ldpl.id = lwtg.association_id
LEFT join logpm_distribution_stock_article ldsa on ldsa.id = ldpl.stock_article_id
LEFT join logpm_warehouse_warehouse lww on lww.id = ldpl.warehouse_id
+ LEFT JOIN (SELECT lwug.association_id,lwga.qr_code,lwug.is_deleted FROM logpm_warehouse_updown_goods AS lwug LEFT JOIN logpm_warehouse_goods_allocation AS lwga ON lwug.allocation_id = lwga.id ) AS m ON m.association_id = ldpl.id
+ LEFT JOIN (SELECT lwtg.association_id,lwt.pallet_name,lwtg.is_deleted FROM logpm_warehouse_tray_goods AS lwtg LEFT JOIN logpm_warehouse_tray AS lwt ON lwtg.tray_id = lwt.id) AS n ON n.association_id = ldpl.id
LEFT JOIN
(SELECT
ldrp.parce_list_id,
@@ -211,14 +215,18 @@
LEFT JOIN logpm_distribution_delivery_list lddl on lds.delivery_id =lddl.id
LEFT JOIN logpm_distrilbution_bill_lading ldbl ON ldrzp.reservation_id = ldbl.id
LEFT JOIN logpm_distribution_bill_lading_scan ldbls ON ldbls.parcel_list_id = ldrzp.parcel_list_id
-
-
) AS c ON c.parcel_list_id = ldpl.id
- ldpl.is_deleted = 0
+ ldpl.is_deleted = 0 AND m.is_deleted = 0 AND n.is_deleted = 0
and lww.name like concat('%',#{param.warehouse},'%')
+
+ and n.pallet_name like concat('%',#{param.warehouse},'%')
+
+
+ and m.qr_code like concat('%',#{param.warehouse},'%')
+
and ldpl.order_package_grounding_status = #{param.orderPackageGroundingStatus}
diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillStockMapper.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillStockMapper.java
index 94b8fd26d..d36fbe8dc 100644
--- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillStockMapper.java
+++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillStockMapper.java
@@ -70,7 +70,7 @@ public interface DistrilbutionBillStockMapper extends BaseMapper listPackageSelf(@Param("reservationId")Long reservationId);
- List distrilbutionBillStock(@Param("param")DistrilbutionBillStockEntity distrilbutionBillStock);
+ List getBillStockExcel(@Param("param")DistrilbutionBillStockEntity distrilbutionBillStock);
List billOrderPackExcel(@Param("param")DistrilbutionBillStockEntity billStock);
}
diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillStockMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillStockMapper.xml
index d47383bf6..2cf138e8e 100644
--- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillStockMapper.xml
+++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillStockMapper.xml
@@ -115,42 +115,48 @@
-