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
de94d9f1
Commit
de94d9f1
authored
Nov 03, 2024
by
xiamw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
价格列表查询条件优化
parent
3a30d135
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
9 deletions
+25
-9
ProductPricePageReqVO.java
...module/product/vo/productPrice/ProductPricePageReqVO.java
+7
-3
ProductPriceMapper.xml
.../src/main/resources/mapper/product/ProductPriceMapper.xml
+18
-6
No files found.
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/vo/productPrice/ProductPricePageReqVO.java
View file @
de94d9f1
...
@@ -95,16 +95,18 @@ public class ProductPricePageReqVO extends PageParam {
...
@@ -95,16 +95,18 @@ public class ProductPricePageReqVO extends PageParam {
@ApiModelProperty
(
value
=
"始发地城市id"
)
@ApiModelProperty
(
value
=
"始发地城市id"
)
private
Long
startCityId
;
private
Long
startCityId
;
@ApiModelProperty
(
value
=
"目的地城市id"
)
@ApiModelProperty
(
value
=
"目的地城市id"
)
private
Long
destCityId
;
private
List
<
Long
>
destCityId
;
@ApiModelProperty
(
value
=
"运输方式"
)
@ApiModelProperty
(
value
=
"运输方式"
)
private
String
transportType
;
private
String
transportType
;
@ApiModelProperty
(
value
=
"国家"
)
@ApiModelProperty
(
value
=
"国家"
)
private
L
ong
destCountryId
;
private
L
ist
<
Long
>
destCountryId
;
@ApiModelProperty
(
value
=
"目的仓"
)
@ApiModelProperty
(
value
=
"目的仓"
)
private
L
ong
destWarehouseId
;
private
L
ist
<
Long
>
destWarehouseId
;
@ApiModelProperty
(
value
=
"商品编码"
)
@ApiModelProperty
(
value
=
"商品编码"
)
private
String
productCode
;
private
String
productCode
;
...
@@ -119,4 +121,6 @@ public class ProductPricePageReqVO extends PageParam {
...
@@ -119,4 +121,6 @@ public class ProductPricePageReqVO extends PageParam {
private
List
<
String
>
existTypeList
;
private
List
<
String
>
existTypeList
;
}
}
yudao-module-product/yudao-module-product-core/src/main/resources/mapper/product/ProductPriceMapper.xml
View file @
de94d9f1
...
@@ -109,17 +109,29 @@
...
@@ -109,17 +109,29 @@
<if
test=
"params.startCityId != null"
>
<if
test=
"params.startCityId != null"
>
and ew_start.shi = #{params.startCityId}
and ew_start.shi = #{params.startCityId}
</if>
</if>
<if
test=
"params.destCityId != null"
>
and ew_dest.shi = #{params.destCityId}
<!--目的地-->
<if
test=
"params.destCityId != null and params.destCityId.size()>0 "
>
and ew_dest.`shi` in
<foreach
item=
'destCity'
index=
'index'
collection=
'params.destCityId'
open=
'('
separator=
','
close=
')'
>
#{destCity}
</foreach>
</if>
</if>
<!--目的国-->
<!--目的国-->
<if
test=
"params.destCountryId != null"
>
<if
test=
"params.destCountryId != null and params.destCountryId.size()>0 "
>
and ew_dest.guojia=#{params.destCountryId}
and ew_dest.`guojia` in
<foreach
item=
'destCountry'
index=
'index'
collection=
'params.destCountryId'
open=
'('
separator=
','
close=
')'
>
#{destCountry}
</foreach>
</if>
</if>
<!--目的仓-->
<!--目的仓-->
<if
test=
"params.destWarehouseId != null"
>
<if
test=
"params.destWarehouseId != null and params.destWarehouseId.size()>0 "
>
and ew_dest.id=#{params.destWarehouseId}
and ew_dest.`id` in
<foreach
item=
'destWarehouse'
index=
'index'
collection=
'params.destWarehouseId'
open=
'('
separator=
','
close=
')'
>
#{destWarehouse}
</foreach>
</if>
</if>
<if
test=
"params.blacklist != null"
>
<if
test=
"params.blacklist != 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