Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
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
lanbaoming
jiedao-api-boot-master
Commits
2691febe
Commit
2691febe
authored
Sep 12, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充部分sql的空运备货状态查询值
parent
769d94cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
416 additions
and
0 deletions
+416
-0
OrderMapper.xml
...rder-core/src/main/resources/mapper/order/OrderMapper.xml
+416
-0
No files found.
yudao-module-order/yudao-module-order-core/src/main/resources/mapper/order/OrderMapper.xml
View file @
2691febe
...
...
@@ -513,6 +513,94 @@
<if
test=
"query.isNeat == false "
>
AND o.sum_num
<![CDATA[ < ]]>
o.cost->>'$.totalNum'
</if>
<if
test=
"query.airShipmentList != null and query.airShipmentList.size() > 0"
>
<if
test=
"query.airShipmentList.size() == 0"
>
<foreach
item=
'airShipment'
index=
"index"
collection=
'query.airShipmentList'
>
<choose>
<when
test=
"airShipment == 1"
>
AND o.`status` = 5 AND o.air_shipment = 1 and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 2"
>
AND o.`status` = 5 AND o.air_shipment = 2
</when>
<when
test=
"airShipment == 3"
>
AND o.`status` = 5 AND o.air_shipment = 3
</when>
<when
test=
"airShipment == 4"
>
AND o.`status` = 5 AND o.air_shipment = 4
</when>
<when
test=
"airShipment == 10"
>
AND o.`status` = 5 AND o.air_shipment in(2,3,4)
</when>
<when
test=
"airShipment == 11"
>
AND o.`status` = 5 AND o.air_shipment in(1,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 12"
>
AND o.`status` = 5 AND o.air_shipment in(2,3) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 20"
>
AND o.`status` = 5 AND o.air_shipment in(0,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
</choose>
</foreach>
</if>
<if
test=
"query.airShipmentList.size() > 1"
>
AND (1!=1
<foreach
item=
'airShipment'
index=
"index"
collection=
'query.airShipmentList'
>
<choose>
<when
test=
"airShipment == 1"
>
or o.`status` = 5 AND o.air_shipment = 1 and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 2"
>
or o.`status` = 5 AND o.air_shipment = 2
</when>
<when
test=
"airShipment == 3"
>
or o.`status` = 5 AND o.air_shipment = 3
</when>
<when
test=
"airShipment == 4"
>
or o.`status` = 5 AND o.air_shipment = 4
</when>
<when
test=
"airShipment == 10"
>
or o.`status` = 5 AND o.air_shipment in(2,3,4)
</when>
<when
test=
"airShipment == 11"
>
or o.`status` = 5 AND o.air_shipment in(1,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 12"
>
or o.`status` = 5 AND o.air_shipment in(2,3) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 20"
>
or o.`status` = 5 AND o.air_shipment in(0,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
</choose>
</foreach>
)
</if>
</if>
<if
test=
"query.airShipment != null and query.airShipment == 1"
>
AND o.`status` = 5 AND o.air_shipment = 1 and abnormal_state = 0 and audit_type = 0
</if>
<if
test=
"query.airShipment != null and query.airShipment == 2"
>
AND o.`status` = 5 AND o.air_shipment = 2
</if>
<if
test=
"query.airShipment != null and query.airShipment == 3"
>
AND o.`status` = 5 AND o.air_shipment = 3
</if>
<if
test=
"query.airShipment != null and query.airShipment == 4"
>
AND o.`status` = 5 AND o.air_shipment = 4
</if>
<if
test=
"query.airShipment != null and query.airShipment == 10"
>
AND o.`status` = 5 AND o.air_shipment in(2,3,4)
</if>
<if
test=
"query.airShipment != null and query.airShipment == 11"
>
AND o.`status` = 5 AND o.air_shipment in(1,2,3,4) and abnormal_state = 0 and audit_type = 0
</if>
<if
test=
"query.airShipment != null and query.airShipment == 12"
>
AND o.`status` = 5 AND o.air_shipment in(2,3) and abnormal_state = 0 and audit_type = 0
</if>
<if
test=
"query.airShipment != null and query.airShipment == 20"
>
AND o.`status` = 5 AND o.air_shipment in(0,2,3,4) and abnormal_state = 0 and audit_type = 0
</if>
<if
test=
"query.isNeat == true "
>
AND o.sum_num = o.cost->>'$.totalNum'
</if>
...
...
@@ -1047,6 +1135,94 @@
<if
test=
"query.isNeat == false "
>
AND o.sum_num
<![CDATA[ < ]]>
o.cost->>'$.totalNum'
</if>
<if
test=
"query.airShipmentList != null and query.airShipmentList.size() > 0"
>
<if
test=
"query.airShipmentList.size() == 0"
>
<foreach
item=
'airShipment'
index=
"index"
collection=
'query.airShipmentList'
>
<choose>
<when
test=
"airShipment == 1"
>
AND o.`status` = 5 AND o.air_shipment = 1 and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 2"
>
AND o.`status` = 5 AND o.air_shipment = 2
</when>
<when
test=
"airShipment == 3"
>
AND o.`status` = 5 AND o.air_shipment = 3
</when>
<when
test=
"airShipment == 4"
>
AND o.`status` = 5 AND o.air_shipment = 4
</when>
<when
test=
"airShipment == 10"
>
AND o.`status` = 5 AND o.air_shipment in(2,3,4)
</when>
<when
test=
"airShipment == 11"
>
AND o.`status` = 5 AND o.air_shipment in(1,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 12"
>
AND o.`status` = 5 AND o.air_shipment in(2,3) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 20"
>
AND o.`status` = 5 AND o.air_shipment in(0,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
</choose>
</foreach>
</if>
<if
test=
"query.airShipmentList.size() > 1"
>
AND (1!=1
<foreach
item=
'airShipment'
index=
"index"
collection=
'query.airShipmentList'
>
<choose>
<when
test=
"airShipment == 1"
>
or o.`status` = 5 AND o.air_shipment = 1 and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 2"
>
or o.`status` = 5 AND o.air_shipment = 2
</when>
<when
test=
"airShipment == 3"
>
or o.`status` = 5 AND o.air_shipment = 3
</when>
<when
test=
"airShipment == 4"
>
or o.`status` = 5 AND o.air_shipment = 4
</when>
<when
test=
"airShipment == 10"
>
or o.`status` = 5 AND o.air_shipment in(2,3,4)
</when>
<when
test=
"airShipment == 11"
>
or o.`status` = 5 AND o.air_shipment in(1,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 12"
>
or o.`status` = 5 AND o.air_shipment in(2,3) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 20"
>
or o.`status` = 5 AND o.air_shipment in(0,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
</choose>
</foreach>
)
</if>
</if>
<if
test=
"query.airShipment != null and query.airShipment == 1"
>
AND o.`status` = 5 AND o.air_shipment = 1 and abnormal_state = 0 and audit_type = 0
</if>
<if
test=
"query.airShipment != null and query.airShipment == 2"
>
AND o.`status` = 5 AND o.air_shipment = 2
</if>
<if
test=
"query.airShipment != null and query.airShipment == 3"
>
AND o.`status` = 5 AND o.air_shipment = 3
</if>
<if
test=
"query.airShipment != null and query.airShipment == 4"
>
AND o.`status` = 5 AND o.air_shipment = 4
</if>
<if
test=
"query.airShipment != null and query.airShipment == 10"
>
AND o.`status` = 5 AND o.air_shipment in(2,3,4)
</if>
<if
test=
"query.airShipment != null and query.airShipment == 11"
>
AND o.`status` = 5 AND o.air_shipment in(1,2,3,4) and abnormal_state = 0 and audit_type = 0
</if>
<if
test=
"query.airShipment != null and query.airShipment == 12"
>
AND o.`status` = 5 AND o.air_shipment in(2,3) and abnormal_state = 0 and audit_type = 0
</if>
<if
test=
"query.airShipment != null and query.airShipment == 20"
>
AND o.`status` = 5 AND o.air_shipment in(0,2,3,4) and abnormal_state = 0 and audit_type = 0
</if>
<if
test=
"query.isNeat == true "
>
AND o.sum_num = o.cost->>'$.totalNum'
</if>
...
...
@@ -1438,6 +1614,94 @@
<if
test=
"query.isNeat == false "
>
AND o.sum_num
<![CDATA[ < ]]>
o.cost->>'$.totalNum'
</if>
<if
test=
"query.airShipmentList != null and query.airShipmentList.size() > 0"
>
<if
test=
"query.airShipmentList.size() == 0"
>
<foreach
item=
'airShipment'
index=
"index"
collection=
'query.airShipmentList'
>
<choose>
<when
test=
"airShipment == 1"
>
AND o.`status` = 5 AND o.air_shipment = 1 and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 2"
>
AND o.`status` = 5 AND o.air_shipment = 2
</when>
<when
test=
"airShipment == 3"
>
AND o.`status` = 5 AND o.air_shipment = 3
</when>
<when
test=
"airShipment == 4"
>
AND o.`status` = 5 AND o.air_shipment = 4
</when>
<when
test=
"airShipment == 10"
>
AND o.`status` = 5 AND o.air_shipment in(2,3,4)
</when>
<when
test=
"airShipment == 11"
>
AND o.`status` = 5 AND o.air_shipment in(1,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 12"
>
AND o.`status` = 5 AND o.air_shipment in(2,3) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 20"
>
AND o.`status` = 5 AND o.air_shipment in(0,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
</choose>
</foreach>
</if>
<if
test=
"query.airShipmentList.size() > 1"
>
AND (1!=1
<foreach
item=
'airShipment'
index=
"index"
collection=
'query.airShipmentList'
>
<choose>
<when
test=
"airShipment == 1"
>
or o.`status` = 5 AND o.air_shipment = 1 and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 2"
>
or o.`status` = 5 AND o.air_shipment = 2
</when>
<when
test=
"airShipment == 3"
>
or o.`status` = 5 AND o.air_shipment = 3
</when>
<when
test=
"airShipment == 4"
>
or o.`status` = 5 AND o.air_shipment = 4
</when>
<when
test=
"airShipment == 10"
>
or o.`status` = 5 AND o.air_shipment in(2,3,4)
</when>
<when
test=
"airShipment == 11"
>
or o.`status` = 5 AND o.air_shipment in(1,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 12"
>
or o.`status` = 5 AND o.air_shipment in(2,3) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 20"
>
or o.`status` = 5 AND o.air_shipment in(0,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
</choose>
</foreach>
)
</if>
</if>
<if
test=
"query.airShipment != null and query.airShipment == 1"
>
AND o.`status` = 5 AND o.air_shipment = 1 and abnormal_state = 0 and audit_type = 0
</if>
<if
test=
"query.airShipment != null and query.airShipment == 2"
>
AND o.`status` = 5 AND o.air_shipment = 2
</if>
<if
test=
"query.airShipment != null and query.airShipment == 3"
>
AND o.`status` = 5 AND o.air_shipment = 3
</if>
<if
test=
"query.airShipment != null and query.airShipment == 4"
>
AND o.`status` = 5 AND o.air_shipment = 4
</if>
<if
test=
"query.airShipment != null and query.airShipment == 10"
>
AND o.`status` = 5 AND o.air_shipment in(2,3,4)
</if>
<if
test=
"query.airShipment != null and query.airShipment == 11"
>
AND o.`status` = 5 AND o.air_shipment in(1,2,3,4) and abnormal_state = 0 and audit_type = 0
</if>
<if
test=
"query.airShipment != null and query.airShipment == 12"
>
AND o.`status` = 5 AND o.air_shipment in(2,3) and abnormal_state = 0 and audit_type = 0
</if>
<if
test=
"query.airShipment != null and query.airShipment == 20"
>
AND o.`status` = 5 AND o.air_shipment in(0,2,3,4) and abnormal_state = 0 and audit_type = 0
</if>
<if
test=
"query.isNeat == true "
>
AND o.sum_num = o.cost->>'$.totalNum'
</if>
...
...
@@ -4419,6 +4683,70 @@
<if
test=
"query.isNeat == false "
>
AND o.sum_num
<![CDATA[ < ]]>
o.cost->>'$.totalNum'
</if>
<if
test=
"query.airShipmentList != null and query.airShipmentList.size() > 0"
>
<if
test=
"query.airShipmentList.size() == 0"
>
<foreach
item=
'airShipment'
index=
"index"
collection=
'query.airShipmentList'
>
<choose>
<when
test=
"airShipment == 1"
>
AND o.`status` = 5 AND o.air_shipment = 1 and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 2"
>
AND o.`status` = 5 AND o.air_shipment = 2
</when>
<when
test=
"airShipment == 3"
>
AND o.`status` = 5 AND o.air_shipment = 3
</when>
<when
test=
"airShipment == 4"
>
AND o.`status` = 5 AND o.air_shipment = 4
</when>
<when
test=
"airShipment == 10"
>
AND o.`status` = 5 AND o.air_shipment in(2,3,4)
</when>
<when
test=
"airShipment == 11"
>
AND o.`status` = 5 AND o.air_shipment in(1,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 12"
>
AND o.`status` = 5 AND o.air_shipment in(2,3) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 20"
>
AND o.`status` = 5 AND o.air_shipment in(0,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
</choose>
</foreach>
</if>
<if
test=
"query.airShipmentList.size() > 1"
>
AND (1!=1
<foreach
item=
'airShipment'
index=
"index"
collection=
'query.airShipmentList'
>
<choose>
<when
test=
"airShipment == 1"
>
or o.`status` = 5 AND o.air_shipment = 1 and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 2"
>
or o.`status` = 5 AND o.air_shipment = 2
</when>
<when
test=
"airShipment == 3"
>
or o.`status` = 5 AND o.air_shipment = 3
</when>
<when
test=
"airShipment == 4"
>
or o.`status` = 5 AND o.air_shipment = 4
</when>
<when
test=
"airShipment == 10"
>
or o.`status` = 5 AND o.air_shipment in(2,3,4)
</when>
<when
test=
"airShipment == 11"
>
or o.`status` = 5 AND o.air_shipment in(1,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 12"
>
or o.`status` = 5 AND o.air_shipment in(2,3) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 20"
>
or o.`status` = 5 AND o.air_shipment in(0,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
</choose>
</foreach>
)
</if>
</if>
<if
test=
"query.airShipment != null and query.airShipment == 1"
>
AND o.`status` = 5 AND o.air_shipment = 1 and abnormal_state = 0 and audit_type = 0
</if>
...
...
@@ -5931,6 +6259,94 @@
<if
test=
"query.isNeat == false "
>
AND o.sum_num
<![CDATA[ < ]]>
o.cost->>'$.totalNum'
</if>
<if
test=
"query.airShipmentList != null and query.airShipmentList.size() > 0"
>
<if
test=
"query.airShipmentList.size() == 0"
>
<foreach
item=
'airShipment'
index=
"index"
collection=
'query.airShipmentList'
>
<choose>
<when
test=
"airShipment == 1"
>
AND o.`status` = 5 AND o.air_shipment = 1 and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 2"
>
AND o.`status` = 5 AND o.air_shipment = 2
</when>
<when
test=
"airShipment == 3"
>
AND o.`status` = 5 AND o.air_shipment = 3
</when>
<when
test=
"airShipment == 4"
>
AND o.`status` = 5 AND o.air_shipment = 4
</when>
<when
test=
"airShipment == 10"
>
AND o.`status` = 5 AND o.air_shipment in(2,3,4)
</when>
<when
test=
"airShipment == 11"
>
AND o.`status` = 5 AND o.air_shipment in(1,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 12"
>
AND o.`status` = 5 AND o.air_shipment in(2,3) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 20"
>
AND o.`status` = 5 AND o.air_shipment in(0,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
</choose>
</foreach>
</if>
<if
test=
"query.airShipmentList.size() > 1"
>
AND (1!=1
<foreach
item=
'airShipment'
index=
"index"
collection=
'query.airShipmentList'
>
<choose>
<when
test=
"airShipment == 1"
>
or o.`status` = 5 AND o.air_shipment = 1 and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 2"
>
or o.`status` = 5 AND o.air_shipment = 2
</when>
<when
test=
"airShipment == 3"
>
or o.`status` = 5 AND o.air_shipment = 3
</when>
<when
test=
"airShipment == 4"
>
or o.`status` = 5 AND o.air_shipment = 4
</when>
<when
test=
"airShipment == 10"
>
or o.`status` = 5 AND o.air_shipment in(2,3,4)
</when>
<when
test=
"airShipment == 11"
>
or o.`status` = 5 AND o.air_shipment in(1,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 12"
>
or o.`status` = 5 AND o.air_shipment in(2,3) and abnormal_state = 0 and audit_type = 0
</when>
<when
test=
"airShipment == 20"
>
or o.`status` = 5 AND o.air_shipment in(0,2,3,4) and abnormal_state = 0 and audit_type = 0
</when>
</choose>
</foreach>
)
</if>
</if>
<if
test=
"query.airShipment != null and query.airShipment == 1"
>
AND o.`status` = 5 AND o.air_shipment = 1 and abnormal_state = 0 and audit_type = 0
</if>
<if
test=
"query.airShipment != null and query.airShipment == 2"
>
AND o.`status` = 5 AND o.air_shipment = 2
</if>
<if
test=
"query.airShipment != null and query.airShipment == 3"
>
AND o.`status` = 5 AND o.air_shipment = 3
</if>
<if
test=
"query.airShipment != null and query.airShipment == 4"
>
AND o.`status` = 5 AND o.air_shipment = 4
</if>
<if
test=
"query.airShipment != null and query.airShipment == 10"
>
AND o.`status` = 5 AND o.air_shipment in(2,3,4)
</if>
<if
test=
"query.airShipment != null and query.airShipment == 11"
>
AND o.`status` = 5 AND o.air_shipment in(1,2,3,4) and abnormal_state = 0 and audit_type = 0
</if>
<if
test=
"query.airShipment != null and query.airShipment == 12"
>
AND o.`status` = 5 AND o.air_shipment in(2,3) and abnormal_state = 0 and audit_type = 0
</if>
<if
test=
"query.airShipment != null and query.airShipment == 20"
>
AND o.`status` = 5 AND o.air_shipment in(0,2,3,4) and abnormal_state = 0 and audit_type = 0
</if>
<if
test=
"query.type != null and query.type != '' and query.type == 0 "
>
AND (o.type is null or o.type = '' or o.type = '0')
</if>
...
...
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