Commit 53431536 authored by zhaoyuan's avatar zhaoyuan

根据客户查询商品列表中新增orderNo字段

parent f76576e6
...@@ -5,6 +5,7 @@ import java.math.BigDecimal; ...@@ -5,6 +5,7 @@ import java.math.BigDecimal;
@Data @Data
public class CustomerProductSummaryVo { public class CustomerProductSummaryVo {
private String orderNo;
private String itemCode; // 商品编码 private String itemCode; // 商品编码
private String itemName; // 商品名称 private String itemName; // 商品名称
private String unit; // 单位 private String unit; // 单位
......
...@@ -66,6 +66,7 @@ ...@@ -66,6 +66,7 @@
d.batch_no AS batchNo, d.batch_no AS batchNo,
d.line_no AS lineNo, d.line_no AS lineNo,
d.barcode, d.barcode,
h.order_no AS orderNo,
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
......
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