Commit 7f7433d2 by 黄超华

实现一二三级分类编码查询

1 parent 1db444ae
......@@ -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 categoryCode;
private String lastCategoryCode;
@Schema(description = "价格排序:1降序,2升序")
private Integer priceOrderType;
......
......@@ -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 &gt;= #{startSellPrice}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!