Browse Source

status状态修改

wwl 4 years ago
parent
commit
5d3d2caa0e

+ 1 - 1
zzjs-service/src/main/resources/mapper/carousel/CarouselChartInfoMapper.xml

@@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <where>
         <where>
             <if test="pictureName != null  and pictureName != ''"> and picture_name like concat('%', #{pictureName}, '%')</if>
             <if test="pictureName != null  and pictureName != ''"> and picture_name like concat('%', #{pictureName}, '%')</if>
             <if test="fileId != null "> and file_id = #{fileId}</if>
             <if test="fileId != null "> and file_id = #{fileId}</if>
-            <if test="status != null "> and status = #{status}</if>
+            <if test="status != null and status != ''"> and status = #{status}</if>
         </where>
         </where>
         ORDER BY ci.weight DESC
         ORDER BY ci.weight DESC
     </select>
     </select>

+ 1 - 1
zzjs-service/src/main/resources/mapper/customer/CustomerInfoMapper.xml

@@ -96,7 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="financePhone != null  and financePhone != ''"> and finance_phone = #{financePhone}</if>
             <if test="financePhone != null  and financePhone != ''"> and finance_phone = #{financePhone}</if>
             <if test="appletAddress != null  and appletAddress != ''"> and applet_address = #{appletAddress}</if>
             <if test="appletAddress != null  and appletAddress != ''"> and applet_address = #{appletAddress}</if>
             <if test="shelfStatus != null "> and shelf_status = #{shelfStatus}</if>
             <if test="shelfStatus != null "> and shelf_status = #{shelfStatus}</if>
-            <if test="status != null "> and status = #{status}</if>
+            <if test="status != null and status != ''"> and status = #{status}</if>
         </where>
         </where>
     </select>
     </select>
 
 

+ 1 - 1
zzjs-service/src/main/resources/mapper/goods/GoodsInfoMapper.xml

@@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="goodsDescribe != null  and goodsDescribe != ''"> and goods_describe = #{goodsDescribe}</if>
             <if test="goodsDescribe != null  and goodsDescribe != ''"> and goods_describe = #{goodsDescribe}</if>
             <if test="goodsPicture != null "> and goods_picture = #{goodsPicture}</if>
             <if test="goodsPicture != null "> and goods_picture = #{goodsPicture}</if>
             <if test="topicId != null "> and topic_id = #{topicId}</if>
             <if test="topicId != null "> and topic_id = #{topicId}</if>
-            <if test="status != null "> and status = #{status}</if>
+            <if test="status != null and status != ''"> and status = #{status}</if>
         </where>
         </where>
     </select>
     </select>
 
 

+ 1 - 1
zzjs-service/src/main/resources/mapper/product/ProductTypeInfoMapper.xml

@@ -36,7 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="productName != null  and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
             <if test="productName != null  and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
             <if test="pid != null "> and pid = #{pid}</if>
             <if test="pid != null "> and pid = #{pid}</if>
             <if test="productDescribe != null  and productDescribe != ''"> and product_describe = #{describe}</if>
             <if test="productDescribe != null  and productDescribe != ''"> and product_describe = #{describe}</if>
-            <if test="status != null "> and status = #{status}</if>
+            <if test="status != null and status != ''"> and status = #{status}</if>
         </where>
         </where>
     </select>
     </select>