zhangyuewww 2 年之前
父節點
當前提交
213a0cabb4

+ 10 - 4
winsea-haixin-plugin-wangluohuoyun/src/main/resources/mapper/HyReleaseGoodsInfoMapper.xml

@@ -6,7 +6,7 @@
         SELECT
         COUNT(id)
         FROM hy_release_goods_info
-        WHERE delete_flag = '0'
+        WHERE 1=1
         <if test="commonId != null and commonId != ''">
             AND common_id = #{commonId}
         </if>
@@ -20,8 +20,11 @@
         </if>
         <if test="searchType != null and searchType != ''">
             <if test="searchType == 1">
-                AND status!='已下架'
+                AND status!='已下架' and delete_flag = '0'
             </if>
+             <if test="searchType == 2">
+                AND delete_flag = '0'
+             </if>
             <if test="searchType == 3">
                 AND often_flag = '1'
             </if>
@@ -66,7 +69,7 @@
         create_date as createDate,
         update_date as updateDate
         FROM hy_release_goods_info
-        WHERE delete_flag = '0'
+        WHERE 1=1
         <if test="commonId != null and commonId != ''">
             AND common_id = #{commonId}
         </if>
@@ -80,7 +83,10 @@
         </if>
         <if test="searchType != null and searchType != ''">
             <if test="searchType == 1">
-                AND status!='已下架'
+                AND status!='已下架' and delete_flag = '0'
+            </if>
+            <if test="searchType == 2">
+                AND delete_flag = '0'
             </if>
             <if test="searchType == 3">
                 AND often_flag = '1'