he2802 1 год назад
Родитель
Сommit
26adbdf5f1

+ 2 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/goods/bo/GoodsQueryBo.java

@@ -215,5 +215,6 @@ public class GoodsQueryBo extends BaseEntity {
 	private Integer gradeType;
 	@ApiModelProperty("查询标识:1 H5题库列表")
 	private Integer querySign;
-
+	@ApiModelProperty("去掉多规格:1 ")
+	private Integer withNotSpec;
 }

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

@@ -282,6 +282,9 @@
                 #{item}
             </foreach>
         </if>
+        <if test="withNotSpec != null and withNotSpec != ''">
+            AND g.spec_template_id is NULL
+        </if>
         <if test="goodsType != null and goodsType != ''">
             AND g.goods_type = #{goodsType}
         </if>