yangdamao 2 سال پیش
والد
کامیت
e082cbaee0

+ 3 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/goods/bo/GoodsQueryBo.java

@@ -228,5 +228,8 @@ public class GoodsQueryBo extends BaseEntity {
 	/** 关联使用类型 1积分商城 2会员卡 */
 	@ApiModelProperty("关联使用类型 1积分商城 2会员卡,多个,拼接")
 	private String useType;
+	/** 类目ID */
+	@ApiModelProperty("类目ID")
+	private Long categoryId;
 
 }

+ 3 - 0
zhongzheng-system/src/main/resources/mapper/modules/goods/GoodsMapper.xml

@@ -962,6 +962,9 @@
         <if test="goodsType != null and goodsType != ''">
             AND g.goods_type = #{goodsType}
         </if>
+        <if test="categoryId != null and categoryId != ''">
+            AND (INSTR(g.category_ids,#{categoryId}) > 0
+        </if>
         <if test="goodsName != null and goodsName != ''">
             AND g.goods_name like concat('%', #{goodsName}, '%')
         </if>