Bläddra i källkod

submit:12.01需求

yangdamao 2 år sedan
förälder
incheckning
6a52a41394

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

@@ -201,6 +201,8 @@ public class GoodsQueryBo extends BaseEntity {
 	/** 商品服务期校验字段 */
 	@ApiModelProperty("商品服务期校验字段:1,未过期 2,已过期")
 	private Integer serviceCheck;
-
+	/** 商品服务期校验字段 */
+	@ApiModelProperty("显示状态:1,显示 0,不显示")
+	private Integer showStatus;
 
 }

+ 4 - 1
zhongzheng-system/src/main/resources/mapper/modules/goods/GoodsMapper.xml

@@ -240,7 +240,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         </if>
         WHERE
         1 = 1
-        AND g.goods_type != 5 AND g.show_status = 1
+        AND g.goods_type != 5
         <if test="status != null and status.size()!=0 ">
             AND g.status in
             <foreach collection="status" item="item" index="index" open="(" close=")" separator=",">
@@ -262,6 +262,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="goodsType != null and goodsType != ''">
             AND g.goods_type = #{goodsType}
         </if>
+        <if test="showStatus != null and showStatus != ''">
+            AND g.show_status = #{showStatus}
+        </if>
         <if test="code != null and code != ''">
             AND g.code = #{code}
         </if>