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
1531f3e1
Commit
1531f3e1
authored
Sep 07, 2026
by
chew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加追溯码客户商品信息
parent
1e9f8228
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
src/main/resources/mapper/cargo/outbound/OutboundOrderHeaderMapper.xml
...urces/mapper/cargo/outbound/OutboundOrderHeaderMapper.xml
+20
-7
No files found.
src/main/resources/mapper/cargo/outbound/OutboundOrderHeaderMapper.xml
View file @
1531f3e1
...
@@ -48,28 +48,41 @@
...
@@ -48,28 +48,41 @@
<select
id=
"selectOrderCount"
resultType=
"java.lang.Integer"
>
<select
id=
"selectOrderCount"
resultType=
"java.lang.Integer"
>
SELECT count(0)
SELECT count(0)
FROM T_DOC_outbound_scan_HEADER
FROM T_DOC_outbound_scan_HEADER h
INNER JOIN T_DOC_OUTBOUND_SCAN_ORDERTYPE o
ON o.SCAN_USER = h.SCAN_USER
-- 偏好 (orderType, reference5, temperatureclass) 三元组过滤:每个字段空时不过滤该字段
-- 空场景包括:1) 偏好 o.X 为 NULL/空 2) SCAN_HEADER h.X 为 NULL/空(未分类订单也应匹配任何偏好)
AND (o.ORDERTYPE IS NULL
OR h.ORDERTYPE IS NULL
OR INSTR(',' || o.ORDERTYPE || ',', ',' || h.ORDERTYPE || ',') > 0)
AND (o.REFERENCE5 IS NULL
OR h.REFERENCE5 IS NULL
OR INSTR(',' || o.REFERENCE5 || ',', ',' || h.REFERENCE5 || ',') > 0)
AND (o.TEMPERATURECLASS IS NULL
OR h.TEMPERATURECLASS IS NULL
OR INSTR(',' || o.TEMPERATURECLASS || ',', ',' || h.TEMPERATURECLASS || ',') > 0)
WHERE 1=1
WHERE 1=1
<if
test=
"customerName != null and customerName != ''"
>
<if
test=
"customerName != null and customerName != ''"
>
AND customer_name LIKE CONCAT(CONCAT('%', #{customerName}), '%')
AND
h.
customer_name LIKE CONCAT(CONCAT('%', #{customerName}), '%')
</if>
</if>
<if
test=
"orderNo != null and orderNo != ''"
>
<if
test=
"orderNo != null and orderNo != ''"
>
AND order_no = #{orderNo}
AND
h.
order_no = #{orderNo}
</if>
</if>
<if
test=
"statusList != null and statusList != ''"
>
<if
test=
"statusList != null and statusList != ''"
>
AND status in
AND
h.
status in
<foreach
collection=
"statusList"
item=
"status"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"statusList"
item=
"status"
open=
"("
separator=
","
close=
")"
>
#{status}
#{status}
</foreach>
</foreach>
</if>
</if>
<if
test=
"scanUser != null and scanUser != ''"
>
<if
test=
"scanUser != null and scanUser != ''"
>
and scan_user= #{scanUser}
and
h.
scan_user= #{scanUser}
</if>
</if>
<if
test=
"startTime != null"
>
<if
test=
"startTime != null"
>
AND create_time >= #{startTime}
AND
h.
create_time >= #{startTime}
</if>
</if>
<if
test=
"endTime != null"
>
<if
test=
"endTime != null"
>
AND create_time
<![CDATA[ <= ]]>
#{endTime}
AND
h.
create_time
<![CDATA[ <= ]]>
#{endTime}
</if>
</if>
</select>
</select>
<select
id=
"selectCustomerProductSummary"
<select
id=
"selectCustomerProductSummary"
...
...
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