Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TMS_APP
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chew
TMS_APP
Commits
b266b6df
Commit
b266b6df
authored
Jul 01, 2026
by
zhaoyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口人工理货商品接口新增 订单号、拼件标签数、整件数
parent
a296fc90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/vo/CustomerProductSummaryVo.java
...pp/module/cargo/outbound/vo/CustomerProductSummaryVo.java
+3
-1
src/main/resources/mapper/cargo/outbound/OutboundOrderHeaderMapper.xml
...urces/mapper/cargo/outbound/OutboundOrderHeaderMapper.xml
+5
-1
No files found.
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/vo/CustomerProductSummaryVo.java
View file @
b266b6df
...
@@ -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
src/main/resources/mapper/cargo/outbound/OutboundOrderHeaderMapper.xml
View file @
b266b6df
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment