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
b7ee1d20
Commit
b7ee1d20
authored
Nov 03, 2024
by
xiamw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
价格列表查询条件优化
parent
46abc3bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
5 deletions
+31
-5
WarehouseLineQueryVO.java
...ule/depository/vo/warehouseLine/WarehouseLineQueryVO.java
+7
-1
WarehouseLineMapper.xml
...c/main/resources/mapper/warehouse/WarehouseLineMapper.xml
+24
-4
No files found.
yudao-module-depository/yudao-module-depository-core/src/main/java/cn/iocoder/yudao/module/depository/vo/warehouseLine/WarehouseLineQueryVO.java
View file @
b7ee1d20
...
@@ -21,8 +21,14 @@ public class WarehouseLineQueryVO {
...
@@ -21,8 +21,14 @@ public class WarehouseLineQueryVO {
@ApiModelProperty
(
value
=
"运输方式"
)
@ApiModelProperty
(
value
=
"运输方式"
)
private
Integer
transportType
;
private
Integer
transportType
;
@ApiModelProperty
(
value
=
"目的地城市id"
)
private
List
<
Long
>
destCityId
;
@ApiModelProperty
(
value
=
"目的国家id"
)
@ApiModelProperty
(
value
=
"目的国家id"
)
private
Long
destCountryId
;
private
List
<
Long
>
destCountryId
;
@ApiModelProperty
(
value
=
"目的仓"
)
private
List
<
Long
>
destWarehouseId
;
@ApiModelProperty
(
value
=
"出货渠道ID,空运才有,海运可以为空"
)
@ApiModelProperty
(
value
=
"出货渠道ID,空运才有,海运可以为空"
)
private
Long
channelId
;
private
Long
channelId
;
...
...
yudao-module-depository/yudao-module-depository-core/src/main/resources/mapper/warehouse/WarehouseLineMapper.xml
View file @
b7ee1d20
...
@@ -123,12 +123,32 @@
...
@@ -123,12 +123,32 @@
</foreach>
</foreach>
</if>
</if>
<if
test=
"query.transportType != null"
>
<!--目的地-->
AND line.transport_type = #{query.transportType}
<if
test=
"query.destCityId != null and query.destCityId.size()>0 "
>
and destwarehouse.`shi` in
<foreach
item=
'destCity'
index=
'index'
collection=
'query.destCityId'
open=
'('
separator=
','
close=
')'
>
#{destCity}
</foreach>
</if>
<!--目的国-->
<if
test=
"query.destCountryId != null and query.destCountryId.size()>0 "
>
and destwarehouse.`guojia` in
<foreach
item=
'destCountry'
index=
'index'
collection=
'query.destCountryId'
open=
'('
separator=
','
close=
')'
>
#{destCountry}
</foreach>
</if>
</if>
<if
test=
"query.destCountryId != null"
>
<!--目的仓-->
AND destwarehouse.guojia = #{query.destCountryId}
<if
test=
"query.destWarehouseId != null and query.destWarehouseId.size()>0 "
>
AND line.dest_warehouse_id IN
<foreach
item=
'destWarehouse'
index=
'index'
collection=
'query.destWarehouseId'
open=
'('
separator=
','
close=
')'
>
#{destWarehouse}
</foreach>
</if>
<if
test=
"query.transportType != null"
>
AND line.transport_type = #{query.transportType}
</if>
</if>
<if
test=
"query.channelId != null"
>
<if
test=
"query.channelId != null"
>
...
...
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