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
f0fe3503
Commit
f0fe3503
authored
Sep 12, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql优化
parent
2691febe
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
349 additions
and
790 deletions
+349
-790
OrderQueryVO.java
.../cn/iocoder/yudao/module/order/vo/order/OrderQueryVO.java
+72
-25
OrderMapper.xml
...rder-core/src/main/resources/mapper/order/OrderMapper.xml
+277
-765
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/order/OrderQueryVO.java
View file @
f0fe3503
...
...
@@ -775,8 +775,12 @@ public class OrderQueryVO {
if
(
Objects
.
isNull
(
this
.
shipmentStateList
)){
this
.
shipmentStateList
=
new
ArrayList
<>();
}
this
.
statusList
.
add
(
12
);
this
.
shipmentStateList
.
add
(
325
);
if
(!
this
.
statusList
.
contains
(
12
))
{
this
.
statusList
.
add
(
12
);
}
if
(!
this
.
shipmentStateList
.
contains
(
325
))
{
this
.
shipmentStateList
.
add
(
325
);
}
break
;
case
10501
:
// 空运待出
...
...
@@ -789,10 +793,18 @@ public class OrderQueryVO {
if
(
Objects
.
isNull
(
this
.
abnormalStateList
)){
this
.
abnormalStateList
=
new
ArrayList
<>();
}
this
.
statusList
.
add
(
5
);
this
.
airShipmentList
.
add
(
1
);
this
.
auditTypeList
.
add
(
0
);
this
.
abnormalStateList
.
add
(
0
);
if
(!
this
.
statusList
.
contains
(
5
))
{
this
.
statusList
.
add
(
5
);
}
if
(!
this
.
airShipmentList
.
contains
(
1
))
{
this
.
airShipmentList
.
add
(
1
);
}
if
(!
this
.
auditTypeList
.
contains
(
0
))
{
this
.
auditTypeList
.
add
(
0
);
}
if
(!
this
.
abnormalStateList
.
contains
(
0
))
{
this
.
abnormalStateList
.
add
(
0
);
}
// this.transportId = 3; // 空运待出查询,只查空运的订单
break
;
case
10502
:
...
...
@@ -800,8 +812,12 @@ public class OrderQueryVO {
if
(
Objects
.
isNull
(
this
.
airShipmentList
)){
this
.
airShipmentList
=
new
ArrayList
<>();
}
this
.
statusList
.
add
(
5
);
this
.
airShipmentList
.
add
(
12
);
if
(!
this
.
statusList
.
contains
(
5
))
{
this
.
statusList
.
add
(
5
);
}
if
(!
this
.
airShipmentList
.
contains
(
12
))
{
this
.
airShipmentList
.
add
(
12
);
}
// this.transportId = 3; // 空运待出查询,只查空运的订单
break
;
case
10503
:
...
...
@@ -809,8 +825,12 @@ public class OrderQueryVO {
if
(
Objects
.
isNull
(
this
.
airShipmentList
)){
this
.
airShipmentList
=
new
ArrayList
<>();
}
this
.
statusList
.
add
(
5
);
this
.
airShipmentList
.
add
(
4
);
if
(!
this
.
statusList
.
contains
(
5
))
{
this
.
statusList
.
add
(
5
);
}
if
(!
this
.
airShipmentList
.
contains
(
4
))
{
this
.
airShipmentList
.
add
(
4
);
}
// this.transportId = 3; // 空运待出查询,只查空运的订单
break
;
case
10504
:
...
...
@@ -824,16 +844,25 @@ public class OrderQueryVO {
if
(
Objects
.
isNull
(
this
.
abnormalStateList
)){
this
.
abnormalStateList
=
new
ArrayList
<>();
}
this
.
statusList
.
add
(
5
);
this
.
auditTypeList
.
add
(
0
);
this
.
abnormalStateList
.
add
(
0
);
if
(!
this
.
statusList
.
contains
(
5
))
{
this
.
statusList
.
add
(
5
);
}
if
(!
this
.
auditTypeList
.
contains
(
0
))
{
this
.
auditTypeList
.
add
(
0
);
}
if
(!
this
.
abnormalStateList
.
contains
(
0
))
{
this
.
abnormalStateList
.
add
(
0
);
}
if
(
Objects
.
nonNull
(
transportId
)
&&
transportId
==
3
)
{
// 空运无需判断备货状态 可出、备货中、已备货
this
.
airShipmentList
.
add
(
10
);
if
(!
this
.
airShipmentList
.
contains
(
10
))
{
this
.
airShipmentList
.
add
(
10
);
}
}
else
{
// 兼容空运已入仓的可出、备货中、已备货,且无异常无审批,海运的已入仓无异常无审批
this
.
airShipmentList
.
add
(
20
);
if
(!
this
.
airShipmentList
.
contains
(
20
))
{
this
.
airShipmentList
.
add
(
20
);
}
}
break
;
case
132411
:
...
...
@@ -841,8 +870,12 @@ public class OrderQueryVO {
if
(
Objects
.
isNull
(
this
.
shipmentStateList
)){
this
.
shipmentStateList
=
new
ArrayList
<>();
}
this
.
statusList
.
add
(
32
);
this
.
shipmentStateList
.
add
(
411
);
if
(!
this
.
statusList
.
contains
(
32
))
{
this
.
statusList
.
add
(
32
);
}
if
(!
this
.
shipmentStateList
.
contains
(
411
))
{
this
.
shipmentStateList
.
add
(
411
);
}
// this.transportId = 3; // 空运待出查询,只查空运的订单
break
;
case
132412
:
...
...
@@ -850,8 +883,12 @@ public class OrderQueryVO {
if
(
Objects
.
isNull
(
this
.
shipmentStateList
)){
this
.
shipmentStateList
=
new
ArrayList
<>();
}
this
.
statusList
.
add
(
32
);
this
.
shipmentStateList
.
add
(
412
);
if
(!
this
.
statusList
.
contains
(
32
))
{
this
.
statusList
.
add
(
32
);
}
if
(!
this
.
shipmentStateList
.
contains
(
412
))
{
this
.
shipmentStateList
.
add
(
412
);
}
// this.transportId = 3; // 空运待出查询,只查空运的订单
break
;
case
132409
:
...
...
@@ -859,8 +896,12 @@ public class OrderQueryVO {
if
(
Objects
.
isNull
(
this
.
shipmentStateList
)){
this
.
shipmentStateList
=
new
ArrayList
<>();
}
this
.
statusList
.
add
(
32
);
this
.
shipmentStateList
.
add
(
409
);
if
(!
this
.
statusList
.
contains
(
32
))
{
this
.
statusList
.
add
(
32
);
}
if
(!
this
.
shipmentStateList
.
contains
(
409
))
{
this
.
shipmentStateList
.
add
(
409
);
}
// this.transportId = 3; // 空运待出查询,只查空运的订单
break
;
case
118428
:
...
...
@@ -868,12 +909,18 @@ public class OrderQueryVO {
if
(
Objects
.
isNull
(
this
.
shipmentStateList
)){
this
.
shipmentStateList
=
new
ArrayList
<>();
}
this
.
statusList
.
add
(
32
);
this
.
shipmentStateList
.
add
(
428
);
if
(!
this
.
statusList
.
contains
(
32
))
{
this
.
statusList
.
add
(
32
);
}
if
(!
this
.
shipmentStateList
.
contains
(
428
))
{
this
.
shipmentStateList
.
add
(
428
);
}
// this.transportId = 3; // 空运待出查询,只查空运的订单
break
;
default
:
this
.
statusList
.
add
(
asStatus
);
if
(!
this
.
statusList
.
contains
(
asStatus
))
{
this
.
statusList
.
add
(
asStatus
);
}
}
}
...
...
yudao-module-order/yudao-module-order-core/src/main/resources/mapper/order/OrderMapper.xml
View file @
f0fe3503
This diff is collapsed.
Click to expand it.
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