Commit b266b6df authored by zhaoyuan's avatar zhaoyuan

接口人工理货商品接口新增 订单号、拼件标签数、整件数

parent a296fc90
...@@ -5,7 +5,7 @@ import java.math.BigDecimal; ...@@ -5,7 +5,7 @@ import java.math.BigDecimal;
@Data @Data
public class CustomerProductSummaryVo { public class CustomerProductSummaryVo {
private String orderNo; private String orderNo; //订单号
private String itemCode; // 商品编码 private String itemCode; // 商品编码
private String itemName; // 商品名称 private String itemName; // 商品名称
private String unit; // 单位 private String unit; // 单位
...@@ -18,4 +18,6 @@ public class CustomerProductSummaryVo { ...@@ -18,4 +18,6 @@ public class CustomerProductSummaryVo {
private BigDecimal totalOrderQty; // 总应理数量 private BigDecimal totalOrderQty; // 总应理数量
private BigDecimal totalTallyQty; // 总已理数量 private BigDecimal totalTallyQty; // 总已理数量
private Integer orderCount; // 涉及订单数 private Integer orderCount; // 涉及订单数
private Integer tagCount; //拼件标签数
private Integer boxCount; //整件数
} }
\ No newline at end of file
...@@ -67,11 +67,14 @@ ...@@ -67,11 +67,14 @@
d.line_no AS lineNo, d.line_no AS lineNo,
d.barcode, d.barcode,
h.order_no AS orderNo, h.order_no AS orderNo,
COUNT(q.TRACEID) AS tagCount, -- 拼件标签数
COUNT(q.TRACEID) * q.TOTAL_QTY AS boxCount, -- 整件数
SUM(d.order_qty) AS totalOrderQty, -- 聚合求和 SUM(d.order_qty) AS totalOrderQty, -- 聚合求和
SUM(d.tally_qty) AS totalTallyQty, SUM(d.tally_qty) AS totalTallyQty,
COUNT(DISTINCT h.order_no) AS orderCount COUNT(DISTINCT h.order_no) AS orderCount
FROM T_DOC_outbound_scan_HEADER h FROM T_DOC_outbound_scan_HEADER h
JOIN T_DOC_outbound_scan_DETAIL d ON h.order_no = d.order_no JOIN T_DOC_outbound_scan_DETAIL d ON h.order_no = d.order_no
LEFT JOIN T_DOC_OUTBOUND_BOX q ON q.order_no = d.order_no
WHERE 1=1 WHERE 1=1
<if test="statusList != null and statusList.size() > 0"> <if test="statusList != null and statusList.size() > 0">
AND d.status IN AND d.status IN
...@@ -96,7 +99,8 @@ ...@@ -96,7 +99,8 @@
d.batch_no, d.batch_no,
d.line_no, d.line_no,
d.barcode, d.barcode,
h.order_no h.order_no,
q.TOTAL_QTY
ORDER BY d.item_name ORDER BY d.item_name
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment