Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-shopmall-parent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7f7433d2
authored
May 08, 2023
by
黄超华
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
实现一二三级分类编码查询
1 parent
1db444ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
platform-shopmall-api/src/main/java/cn/com/glsx/admin/modules/model/cloudcrane/request/QueryGoodsListByConditionRequestDTO.java
platform-shopmall/src/main/resources/mapper/GoodsMapper.xml
platform-shopmall-api/src/main/java/cn/com/glsx/admin/modules/model/cloudcrane/request/QueryGoodsListByConditionRequestDTO.java
View file @
7f7433d
...
...
@@ -34,8 +34,14 @@ public class QueryGoodsListByConditionRequestDTO implements Serializable {
@Schema
(
description
=
"商品品牌编码"
)
private
String
brandCode
;
@Schema
(
description
=
"商品一级分类编码"
)
private
String
firstCategoryCode
;
@Schema
(
description
=
"商品二级分类编码"
)
private
String
secondCategoryCode
;
@Schema
(
description
=
"商品三级分类编码"
)
private
String
c
ategoryCode
;
private
String
lastC
ategoryCode
;
@Schema
(
description
=
"价格排序:1降序,2升序"
)
private
Integer
priceOrderType
;
...
...
platform-shopmall/src/main/resources/mapper/GoodsMapper.xml
View file @
7f7433d
...
...
@@ -131,8 +131,14 @@
<if
test=
"brandCode != null and brandCode != ''"
>
and sg.brand_code = #{brandCode}
</if>
<if
test=
"categoryCode != null and categoryCode != ''"
>
and sg.last_category_code = #{categoryCode}
<if
test=
"firstCategoryCode != null and firstCategoryCode != ''"
>
and sg.first_category_code = #{firstCategoryCode}
</if>
<if
test=
"secondCategoryCode != null and secondCategoryCode != ''"
>
and sg.second_category_code = #{secondCategoryCode}
</if>
<if
test=
"lastCategoryCode != null and lastCategoryCode != ''"
>
and sg.last_category_code = #{lastCategoryCode}
</if>
<if
test=
"startSellPrice != null"
>
and sg.sell_price
>
= #{startSellPrice}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment