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
3a36da36
Commit
3a36da36
authored
Oct 23, 2026
by
chew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加 AND ( (p.CUSTOMER_CODE IS NOT NULL AND h.CUSTOMERID LIKE p.CUSTOMER_CODE)
parent
b8871d02
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
src/main/resources/mapper/cargo/outbound/OutboundOrderHeaderMapper.xml
...urces/mapper/cargo/outbound/OutboundOrderHeaderMapper.xml
+5
-5
src/main/resources/mapper/cargo/outbound/OutboundTracecodeMapper.xml
...sources/mapper/cargo/outbound/OutboundTracecodeMapper.xml
+2
-2
src/main/resources/mapper/cargo/outbound/ScanMapper.xml
src/main/resources/mapper/cargo/outbound/ScanMapper.xml
+2
-2
No files found.
src/main/resources/mapper/cargo/outbound/OutboundOrderHeaderMapper.xml
View file @
3a36da36
...
...
@@ -80,7 +80,7 @@
SELECT 1 FROM T_DOC_ORDER_HEADER o
WHERE o.ORGANIZATIONID = h.ORGANIZATIONID
AND o.ORDERNO = h.ORDER_NO
AND o.ROUTENO = p.ROUTE_NO))) )
AND o.ROUTENO = p.ROUTE_NO))
OR (p.CUSTOMER_CODE IS NOT NULL AND h.CUSTOMER_CODE = p.CUSTOMER_CODE)
) )
ORDER BY h.customer_name,h.create_time DESC
</select>
...
...
@@ -147,7 +147,7 @@
SELECT 1 FROM T_DOC_ORDER_HEADER o
WHERE o.ORGANIZATIONID = h.ORGANIZATIONID
AND o.ORDERNO = h.ORDER_NO
AND o.ROUTENO = p.ROUTE_NO)) ) )
AND o.ROUTENO = p.ROUTE_NO))
OR (p.CUSTOMER_CODE IS NOT NULL AND h.CUSTOMER_CODE = p.CUSTOMER_CODE)
) )
</select>
<!-- 人工理货_根据customerAddr查询商品SQL /customer/products-->
<select
id=
"selectCustomerProductSummary"
...
...
@@ -226,7 +226,7 @@
SELECT 1 FROM T_DOC_ORDER_HEADER o
WHERE o.ORGANIZATIONID = h.ORGANIZATIONID
AND o.ORDERNO = h.ORDER_NO
AND o.ROUTENO = p.ROUTE_NO))) )
AND o.ROUTENO = p.ROUTE_NO))
OR (p.CUSTOMER_CODE IS NOT NULL AND h.CUSTOMER_CODE = p.CUSTOMER_CODE)
) )
ORDER BY ol.is_odd_lot, ol.line_no
</select>
...
...
@@ -331,7 +331,7 @@
SELECT 1 FROM T_DOC_ORDER_HEADER o
WHERE o.ORGANIZATIONID = h.ORGANIZATIONID
AND o.ORDERNO = h.ORDER_NO
AND o.ROUTENO = p.ROUTE_NO))) )
AND o.ROUTENO = p.ROUTE_NO))
OR (p.CUSTOMER_CODE IS NOT NULL AND h.CUSTOMER_CODE = p.CUSTOMER_CODE)
) )
AND h.status != 'DONE'
ORDER BY h.status, h.create_time DESC
...
...
@@ -374,6 +374,6 @@
SELECT 1 FROM T_DOC_ORDER_HEADER o
WHERE o.ORGANIZATIONID = h.ORGANIZATIONID
AND o.ORDERNO = h.ORDER_NO
AND o.ROUTENO = p.ROUTE_NO))) )
AND o.ROUTENO = p.ROUTE_NO))
OR (p.CUSTOMER_CODE IS NOT NULL AND h.CUSTOMER_CODE = p.CUSTOMER_CODE)
) )
</select>
</mapper>
\ No newline at end of file
src/main/resources/mapper/cargo/outbound/OutboundTracecodeMapper.xml
View file @
3a36da36
...
...
@@ -107,7 +107,7 @@
SELECT 1 FROM T_DOC_ORDER_HEADER o
WHERE o.ORGANIZATIONID = h.ORGANIZATIONID
AND o.ORDERNO = h.ORDER_NO
AND o.ROUTENO = p.ROUTE_NO))) )
AND o.ROUTENO = p.ROUTE_NO))
OR (p.CUSTOMER_CODE IS NOT NULL AND h.CUSTOMER_CODE = p.CUSTOMER_CODE)
) )
</select>
<select
id=
"selectCustomerItem"
resultType=
"com.ekingwin.tms_app.module.cargo.outbound.entity.CustomerItem"
>
SELECT
...
...
@@ -151,7 +151,7 @@
SELECT 1 FROM T_DOC_ORDER_HEADER o
WHERE o.ORGANIZATIONID = h.ORGANIZATIONID
AND o.ORDERNO = h.ORDER_NO
AND o.ROUTENO = p.ROUTE_NO)) ) )
AND o.ROUTENO = p.ROUTE_NO))
OR (p.CUSTOMER_CODE IS NOT NULL AND h.CUSTOMER_CODE = p.CUSTOMER_CODE)
) )
</select>
</mapper>
\ No newline at end of file
src/main/resources/mapper/cargo/outbound/ScanMapper.xml
View file @
3a36da36
...
...
@@ -94,7 +94,7 @@
SELECT 1 FROM T_DOC_ORDER_HEADER o
WHERE o.ORGANIZATIONID = h.ORGANIZATIONID
AND o.ORDERNO = h.ORDER_NO
AND o.ROUTENO = p.ROUTE_NO)) ) )
AND o.ROUTENO = p.ROUTE_NO))
OR (p.CUSTOMER_CODE IS NOT NULL AND h.CUSTOMER_CODE = p.CUSTOMER_CODE)
) )
AND NVL(d.TALLY_QTY, 0)
<![CDATA[ < ]]>
NVL(d.ORDER_QTY, 0)
ORDER BY h.ORDER_NO, d.LINE_NO
</select>
...
...
@@ -215,7 +215,7 @@
SELECT 1 FROM T_DOC_ORDER_HEADER o
WHERE o.ORGANIZATIONID = h.ORGANIZATIONID
AND o.ORDERNO = h.ORDER_NO
AND o.ROUTENO = p.ROUTE_NO)) ) )
AND o.ROUTENO = p.ROUTE_NO))
OR (p.CUSTOMER_CODE IS NOT NULL AND h.CUSTOMER_CODE = p.CUSTOMER_CODE)
) )
ORDER BY h.customer_name, h.create_time DESC
</select>
...
...
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