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
c2cefe0d
Commit
c2cefe0d
authored
Sep 04, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release-fix' into dev
parents
147d29bd
1edc3b18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
182 additions
and
19 deletions
+182
-19
OrderMapper.xml
...rder-core/src/main/resources/mapper/order/OrderMapper.xml
+182
-19
No files found.
yudao-module-order/yudao-module-order-core/src/main/resources/mapper/order/OrderMapper.xml
View file @
c2cefe0d
...
...
@@ -226,6 +226,15 @@
<if
test=
"query.beginCreateTime != null and query.endCreateTime != null "
>
AND o.`create_time` between #{query.beginCreateTime} and #{query.endCreateTime}
</if>
<if
test=
"query.lePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ <= ]]>
#{query.lePickRatio}
</if>
<if
test=
"query.gePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ >= ]]>
#{query.gePickRatio}
</if>
<if
test=
"query.eqPickRatio != null "
>
AND o.pick_ratio = #{query.eqPickRatio}
</if>
<if
test=
"query.searchKey != null and query.searchKey != '' "
>
AND concat(IFNULL(o.`order_no`,''),IFNULL(o.`parent_number`,''),IFNULL(o.`initial_parent_order_no`,''),
IFNULL(o.`old_numbers`,''),IFNULL(o.`marks`,''),IFNULL(nee.`name`,''),IFNULL(nee.`phone`,'')) like
...
...
@@ -367,7 +376,7 @@
<if
test=
"query.objectiveId != null and query.objectiveId.size() != 0"
>
<if
test=
"query.objectiveIds != null and query.objectiveIds.size()==1 "
>
AND ob.`objective_id` =
<foreach
item=
'objectiveId'
index=
'index'
collection=
'query.objectiveId'
open=
'('
separator=
','
close=
')'
>
<foreach
item=
'objectiveId'
index=
'index'
collection=
'query.objectiveId'
>
#{objectiveId}
</foreach>
</if>
...
...
@@ -542,6 +551,15 @@
<if
test=
"query.beginCreateTime != null and query.endCreateTime != null "
>
AND o.`create_time` between #{query.beginCreateTime} and #{query.endCreateTime}
</if>
<if
test=
"query.lePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ <= ]]>
#{query.lePickRatio}
</if>
<if
test=
"query.gePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ >= ]]>
#{query.gePickRatio}
</if>
<if
test=
"query.eqPickRatio != null "
>
AND o.pick_ratio = #{query.eqPickRatio}
</if>
<if
test=
"query.searchKey != null and query.searchKey != '' "
>
AND concat(IFNULL(o.`order_no`,''),IFNULL(o.`parent_number`,''),IFNULL(o.`initial_parent_order_no`,''),
IFNULL(o.`old_numbers`,''),IFNULL(o.`marks`,''),IFNULL(nee.`name`,''),IFNULL(nee.`phone`,'')) like
...
...
@@ -622,19 +640,39 @@
</sql>
<sql
id=
"myOrderQuerySql"
>
<!-- <if test="query.status != null">-->
<!-- AND o.`status` = #{query.status}-->
<!-- </if>-->
<if
test=
"query.pickState != null"
>
AND o.`pick_state` = #{query.pickState}
</if>
<if
test=
"query.pickStateList != null and query.pickStateList.size()>0"
>
<if
test=
"query.pickStateList != null and query.pickStateList.size()==1 "
>
AND o.`pick_state` =
<foreach
item=
'pickState'
index=
"index"
collection=
'query.pickStateList'
>
#{pickState}
</foreach>
</if>
<if
test=
"query.pickStateList != null and query.pickStateList.size()>1 "
>
AND o.`pick_state` in
<foreach
item=
'pickState'
index=
"index"
collection=
'query.pickStateList'
open=
'('
separator=
','
close=
')'
>
#{pickState}
</foreach>
</if>
</if>
<if
test=
"query.status != null"
>
AND o.`status` = #{query.status}
</if>
<if
test=
"query.statusList != null and query.statusList.size()>0"
>
<if
test=
"query.statusList != null and query.statusList
!= '' and query.statusList
.size()==1 "
>
<if
test=
"query.statusList != null and query.statusList.size()==1 "
>
AND o.`status` =
<foreach
item=
'status'
index=
"index"
collection=
'query.statusList'
>
#{status}
</foreach>
</if>
<if
test=
"query.statusList != null and query.statusList
!= '' and query.statusList
.size()>1 "
>
<if
test=
"query.statusList != null and query.statusList.size()>1 "
>
AND o.`status` in
<foreach
item=
'status'
index=
"index"
collection=
'query.statusList'
open=
'('
separator=
','
close=
')'
>
#{status}
...
...
@@ -725,7 +763,7 @@
<if
test=
"query.salesmanIds != null and query.salesmanIds.size()==1 "
>
AND (o.`salesman_id` =
<foreach
item=
'salesmanId'
index=
"index"
collection=
'query.salesmanIds'
open=
'('
separator=
','
close=
')'
>
<foreach
item=
'salesmanId'
index=
"index"
collection=
'query.salesmanIds'
>
#{salesmanId}
</foreach>
or
...
...
@@ -838,6 +876,15 @@
<if
test=
"query.beginCreateTime != null and query.endCreateTime != null "
>
AND o.`create_time` between #{query.beginCreateTime} and #{query.endCreateTime}
</if>
<if
test=
"query.lePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ <= ]]>
#{query.lePickRatio}
</if>
<if
test=
"query.gePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ >= ]]>
#{query.gePickRatio}
</if>
<if
test=
"query.eqPickRatio != null "
>
AND o.pick_ratio = #{query.eqPickRatio}
</if>
<if
test=
"query.searchKey != null and query.searchKey != '' "
>
AND concat(IFNULL(o.`order_no`,''),IFNULL(o.`parent_number`,''),IFNULL(o.`initial_parent_order_no`,''),
IFNULL(o.`old_numbers`,''),IFNULL(o.`marks`,''),IFNULL(nee.`name`,''),IFNULL(nee.`phone`,'')) like
...
...
@@ -1155,6 +1202,9 @@
o.is_cargo_control,
o.cargo_control_status,
o.cost ->> '$.totalNum' as total_num,
o.pick_state,
o.pick_ratio,
o.pick_num,
o.sum_num,
o.sum_volume,
o.sum_weight,
...
...
@@ -1295,6 +1345,9 @@
o.is_cargo_control,
o.cargo_control_status,
o.cost ->> '$.totalNum' as total_num,
o.pick_state,
o.pick_ratio,
o.pick_num,
o.sum_num,
o.sum_volume,
o.sum_weight,
...
...
@@ -1472,33 +1525,53 @@
<if
test=
"query.isExternalWarehouse != null and query.isExternalWarehouse.size()>0"
>
<if
test=
"query.isExternalWarehouse != null and query.isExternalWarehouse
!= '' and query.isExternalWarehouse
.size()==1 "
>
<if
test=
"query.isExternalWarehouse != null and query.isExternalWarehouse.size()==1 "
>
AND o.`is_external_warehouse` =
<foreach
item=
'isExternalWarehouse'
index=
"index"
collection=
'query.isExternalWarehouse'
>
#{isExternalWarehouse}
</foreach>
</if>
<if
test=
"query.isExternalWarehouse != null
and query.isExternalWarehouse != ''
and query.isExternalWarehouse.size()>1 "
>
<if
test=
"query.isExternalWarehouse != null and query.isExternalWarehouse.size()>1 "
>
AND o.`is_external_warehouse` in
<foreach
item=
'isExternalWarehouse'
index=
"index"
collection=
'query.isExternalWarehouse'
open=
'('
separator=
','
close=
')'
>
#{isExternalWarehouse}
</foreach>
</if>
</if>
<if
test=
"query.pickState != null"
>
AND o.`pick_state` = #{query.pickState}
</if>
<if
test=
"query.pickStateList != null and query.pickStateList.size()>0"
>
<if
test=
"query.pickStateList != null and query.pickStateList.size()==1 "
>
AND o.`pick_state` =
<foreach
item=
'pickState'
index=
"index"
collection=
'query.pickStateList'
>
#{pickState}
</foreach>
</if>
<if
test=
"query.pickStateList != null and query.pickStateList.size()>1 "
>
AND o.`pick_state` in
<foreach
item=
'pickState'
index=
"index"
collection=
'query.pickStateList'
open=
'('
separator=
','
close=
')'
>
#{pickState}
</foreach>
</if>
</if>
<if
test=
"query.status != null"
>
AND o.`status` = #{query.status}
</if>
<if
test=
"query.statusList != null and query.statusList.size()>0"
>
<if
test=
"query.statusList != null and query.statusList
!= '' and query.statusList
.size()==1 "
>
<if
test=
"query.statusList != null and query.statusList.size()==1 "
>
AND o.`status` =
<foreach
item=
'status'
index=
"index"
collection=
'query.statusList'
>
#{status}
</foreach>
</if>
<if
test=
"query.statusList != null and query.statusList
!= '' and query.statusList
.size()>1 "
>
<if
test=
"query.statusList != null and query.statusList.size()>1 "
>
AND o.`status` in
<foreach
item=
'status'
index=
"index"
collection=
'query.statusList'
open=
'('
separator=
','
close=
')'
>
#{status}
...
...
@@ -1747,7 +1820,7 @@
<if
test=
"query.salesmanIds != null and query.salesmanIds.size()==1 "
>
AND (o.`salesman_id` =
<foreach
item=
'salesmanId'
index=
"index"
collection=
'query.salesmanIds'
open=
'('
separator=
','
close=
')'
>
<foreach
item=
'salesmanId'
index=
"index"
collection=
'query.salesmanIds'
>
#{salesmanId}
</foreach>
or
...
...
@@ -1819,7 +1892,7 @@
<if
test=
"query.objectiveId != null and query.objectiveId.size() != 0"
>
<if
test=
"query.objectiveIds != null and query.objectiveIds.size()==1 "
>
AND ob.`objective_id` =
<foreach
item=
'objectiveId'
index=
'index'
collection=
'query.objectiveId'
open=
'('
separator=
','
close=
')'
>
<foreach
item=
'objectiveId'
index=
'index'
collection=
'query.objectiveId'
>
#{objectiveId}
</foreach>
</if>
...
...
@@ -1965,6 +2038,15 @@
<if
test =
'query.cargoControlStatus != null and query.cargoControlStatus == 3'
>
AND o.`cargo_control_status` = 1 AND (select count(1) from ecw_order_cargo_control_pick ccp2 where ccp2.order_id = o.order_id and ccp2.status = 1) > 0
</if>
<if
test=
"query.lePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ <= ]]>
#{query.lePickRatio}
</if>
<if
test=
"query.gePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ >= ]]>
#{query.gePickRatio}
</if>
<if
test=
"query.eqPickRatio != null "
>
AND o.pick_ratio = #{query.eqPickRatio}
</if>
<if
test=
"query.searchKey != null and query.searchKey != '' "
>
AND concat(IFNULL(o.`order_no`,''), IFNULL(o.`old_numbers`,'')
,IFNULL(o.`marks`,''),IFNULL(o.`tidan_no`,''),IFNULL(o.`container_number`,''),IFNULL(nee.`name`,''),IFNULL(nee.`phone`,'')) like
...
...
@@ -2384,7 +2466,7 @@
<if
test=
"query.objectiveId != null and query.objectiveId.size() != 0"
>
<if
test=
"query.objectiveIds != null and query.objectiveIds.size()==1 "
>
AND ob.`objective_id` =
<foreach
item=
'objectiveId'
index=
'index'
collection=
'query.objectiveId'
open=
'('
separator=
','
close=
')'
>
<foreach
item=
'objectiveId'
index=
'index'
collection=
'query.objectiveId'
>
#{objectiveId}
</foreach>
</if>
...
...
@@ -2501,7 +2583,7 @@
<if
test=
"query.salesmanIds != null and query.salesmanIds.size()==1 "
>
AND (o.`salesman_id` =
<foreach
item=
'salesmanId'
index=
"index"
collection=
'query.salesmanIds'
open=
'('
separator=
','
close=
')'
>
<foreach
item=
'salesmanId'
index=
"index"
collection=
'query.salesmanIds'
>
#{salesmanId}
</foreach>
or
...
...
@@ -2668,6 +2750,15 @@
</foreach>
)
</if>
<if
test=
"query.lePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ <= ]]>
#{query.lePickRatio}
</if>
<if
test=
"query.gePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ >= ]]>
#{query.gePickRatio}
</if>
<if
test=
"query.eqPickRatio != null "
>
AND o.pick_ratio = #{query.eqPickRatio}
</if>
<if
test=
"query.searchKey != null and query.searchKey != '' "
>
AND concat(IFNULL(o.`order_no`,''), IFNULL(o.`old_numbers`,'')
,IFNULL(o.`marks`,''),IFNULL(o.`tidan_no`,''),IFNULL(o.`container_number`,''),IFNULL(nee.`name`,''),IFNULL(nee.`phone`,'')) like
...
...
@@ -2935,10 +3026,28 @@
</if>
<if
test=
"query.status != null"
>
AND o.`status` = #{query.status}
</if>
<if
test=
"query.pickState != null"
>
AND o.`pick_state` = #{query.pickState}
</if>
<if
test=
"query.pickStateList != null and query.pickStateList.size()>0"
>
<if
test=
"query.pickStateList != null and query.pickStateList.size()==1 "
>
AND o.`pick_state` =
<foreach
item=
'pickState'
index=
"index"
collection=
'query.pickStateList'
>
#{pickState}
</foreach>
</if>
<if
test=
"query.pickStateList != null and query.pickStateList.size()>1 "
>
AND o.`pick_state` in
<foreach
item=
'pickState'
index=
"index"
collection=
'query.pickStateList'
open=
'('
separator=
','
close=
')'
>
#{pickState}
</foreach>
</if>
</if>
<if
test=
"query.statusList != null and query.statusList.size()>0"
>
<if
test=
"query.statusList != null and query.statusList
!= '' and query.statusList
.size()==1 "
>
<if
test=
"query.statusList != null and query.statusList.size()==1 "
>
AND o.`status` =
<foreach
item=
'status'
index=
"index"
collection=
'query.statusList'
>
#{status}
...
...
@@ -3072,7 +3181,7 @@
<if
test=
"query.objectiveId != null and query.objectiveId.size() != 0"
>
<if
test=
"query.objectiveIds != null and query.objectiveIds.size()==1 "
>
AND ob.`objective_id` =
<foreach
item=
'objectiveId'
index=
'index'
collection=
'query.objectiveId'
open=
'('
separator=
','
close=
')'
>
<foreach
item=
'objectiveId'
index=
'index'
collection=
'query.objectiveId'
>
#{objectiveId}
</foreach>
</if>
...
...
@@ -3189,7 +3298,7 @@
<if
test=
"query.salesmanIds != null and query.salesmanIds.size()==1 "
>
AND (o.`salesman_id` =
<foreach
item=
'salesmanId'
index=
"index"
collection=
'query.salesmanIds'
open=
'('
separator=
','
close=
')'
>
<foreach
item=
'salesmanId'
index=
"index"
collection=
'query.salesmanIds'
>
#{salesmanId}
</foreach>
or
...
...
@@ -3329,6 +3438,15 @@
<if
test =
'query.cargoControlStatus != null and query.cargoControlStatus == 3'
>
AND o.`cargo_control_status` = 1 AND (select count(1) from ecw_order_cargo_control_pick ccp2 where ccp2.order_id = o.order_id and ccp2.status = 1) > 0
</if>
<if
test=
"query.lePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ <= ]]>
#{query.lePickRatio}
</if>
<if
test=
"query.gePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ >= ]]>
#{query.gePickRatio}
</if>
<if
test=
"query.eqPickRatio != null "
>
AND o.pick_ratio = #{query.eqPickRatio}
</if>
<if
test=
"query.searchKey != null and query.searchKey != '' "
>
AND concat(IFNULL(o.`order_no`,''), IFNULL(o.`old_numbers`,'')
,IFNULL(o.`marks`,''),IFNULL(o.`tidan_no`,''),IFNULL(o.`container_number`,''),IFNULL(nee.`name`,''),IFNULL(nee.`phone`,'')) like
...
...
@@ -3570,6 +3688,9 @@
o.is_cargo_control,
o.cargo_control_status,
o.cost ->> '$.totalNum' as total_num,
o.pick_state,
o.pick_ratio,
o.pick_num,
o.sum_num,
o.sum_volume,
o.sum_weight,
...
...
@@ -3691,6 +3812,9 @@
o.is_cargo_control,
o.cargo_control_status,
o.cost ->> '$.totalNum' as total_num,
o.pick_state,
o.pick_ratio,
o.pick_num,
o.sum_num,
o.sum_volume,
o.sum_weight,
...
...
@@ -3838,6 +3962,9 @@
o.is_cargo_control,
o.cargo_control_status,
o.cost ->> '$.totalNum' as total_num,
o.pick_state,
o.pick_ratio,
o.pick_num,
o.sum_num,
o.sum_volume,
o.sum_weight,
...
...
@@ -3967,6 +4094,9 @@
o.is_cargo_control,
o.cargo_control_status,
o.cost ->> '$.totalNum' as total_num,
o.pick_state,
o.pick_ratio,
o.pick_num,
o.sum_num,
o.sum_volume,
o.sum_weight,
...
...
@@ -4070,6 +4200,9 @@
o.is_cargo_control,
o.cargo_control_status,
o.cost ->> '$.totalNum' as total_num,
o.pick_state,
o.pick_ratio,
o.pick_num,
o.sum_num,
o.sum_volume,
o.sum_weight,
...
...
@@ -4193,6 +4326,9 @@
o.is_cargo_control,
o.cargo_control_status,
o.cost ->> '$.totalNum' as total_num,
o.pick_state,
o.pick_ratio,
o.pick_num,
o.sum_num,
o.sum_volume,
o.sum_weight,
...
...
@@ -4396,7 +4532,7 @@
<if
test=
"query.salesmanIds != null and query.salesmanIds.size()==1 "
>
AND (o.`salesman_id` =
<foreach
item=
'salesmanId'
index=
"index"
collection=
'query.salesmanIds'
open=
'('
separator=
','
close=
')'
>
<foreach
item=
'salesmanId'
index=
"index"
collection=
'query.salesmanIds'
>
#{salesmanId}
</foreach>
or
...
...
@@ -4548,6 +4684,15 @@
<if
test =
'query.cargoControlStatus != null and query.cargoControlStatus == 3'
>
AND o.`cargo_control_status` = 1 AND (select count(1) from ecw_order_cargo_control_pick ccp2 where ccp2.order_id = o.order_id and ccp2.status = 1) > 0
</if>
<if
test=
"query.lePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ <= ]]>
#{query.lePickRatio}
</if>
<if
test=
"query.gePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ >= ]]>
#{query.gePickRatio}
</if>
<if
test=
"query.eqPickRatio != null "
>
AND o.pick_ratio = #{query.eqPickRatio}
</if>
<if
test=
"query.searchKey != null and query.searchKey != '' "
>
AND concat(IFNULL(o.`order_no`,''), IFNULL(o.`old_numbers`,'')
,IFNULL(o.`marks`,''),IFNULL(o.`tidan_no`,''),IFNULL(o.`container_number`,''),IFNULL(nee.`name`,''),IFNULL(nee.`phone`,'')) like
...
...
@@ -4882,6 +5027,15 @@
<if
test=
"query.marks != null and query.marks != '' "
>
AND o.`marks` like concat("%",concat(#{query.marks},"%"))
</if>
<if
test=
"query.lePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ <= ]]>
#{query.lePickRatio}
</if>
<if
test=
"query.gePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ >= ]]>
#{query.gePickRatio}
</if>
<if
test=
"query.eqPickRatio != null "
>
AND o.pick_ratio = #{query.eqPickRatio}
</if>
<if
test=
"query.searchKey != null and query.searchKey != '' "
>
AND concat(IFNULL(o.`order_no`,''), IFNULL(o.`old_numbers`,'')
,IFNULL(o.`marks`,''),IFNULL(o.`tidan_no`,''),IFNULL(o.`container_number`,''),IFNULL(nee.`name`,''),IFNULL(nee.`phone`,'')) like
...
...
@@ -5065,6 +5219,15 @@
<if
test=
"query.marks != null and query.marks != '' "
>
AND o.`marks` like concat("%",concat(#{query.marks},"%"))
</if>
<if
test=
"query.lePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ <= ]]>
#{query.lePickRatio}
</if>
<if
test=
"query.gePickRatio != null "
>
AND o.pick_ratio
<![CDATA[ >= ]]>
#{query.gePickRatio}
</if>
<if
test=
"query.eqPickRatio != null "
>
AND o.pick_ratio = #{query.eqPickRatio}
</if>
<if
test=
"query.searchKey != null and query.searchKey != '' "
>
AND concat(IFNULL(o.`order_no`,''), IFNULL(o.`old_numbers`,'')
,IFNULL(o.`marks`,''),IFNULL(o.`tidan_no`,''),IFNULL(o.`container_number`,''),IFNULL(nee.`name`,''),IFNULL(nee.`phone`,'')) like
...
...
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