Bladeren bron

供应商搜索仅展示普通供应商,之前的协销替二手发布商品供应商下架

zhijiezhao 1 jaar geleden
bovenliggende
commit
0047818160
1 gewijzigde bestanden met toevoegingen van 12 en 7 verwijderingen
  1. 12 7
      src/main/resources/mapper/SearchMapper.xml

+ 12 - 7
src/main/resources/mapper/SearchMapper.xml

@@ -97,27 +97,31 @@
     <select id="findSupplierCount" resultType="java.lang.Integer">
         select count(*)
         from shop
-        where (status = 90 or status = 9)
+        where shopType = 1
+          and (status = 90 or status = 9)
           and shopID != 1252
     </select>
     <select id="findSupplierInvalidCount" resultType="java.lang.Integer">
         select count(*)
         from shop
-        where status not in (90, 9)
-           or shopID = 1252
+        where shopType = 1
+        and (status not in (90, 9)
+           or shopID = 1252)
     </select>
     <select id="findSupplierInvalidIds" resultType="java.lang.Integer">
         select shopID
         from shop
-        where status not in (90, 9)
-           or shopID = 1252
+        where  shopType = 1
+        and (status not in (90, 9)
+           or shopID = 1252)
     </select>
     <select id="searchSupplierList" resultType="com.caimei365.commodity.model.search.SupplierDO">
         select
         <include refid="Search_Supplier_List"/>
         from shop as s
         <include refid="Supplier_Joins"/>
-        where (status = 90 or status = 9)
+        where shopType = 1
+        and (status = 90 or status = 9)
         and shopID != 1252
     </select>
     <select id="searchSupplierById" resultType="com.caimei365.commodity.model.search.SupplierDO">
@@ -125,7 +129,8 @@
         <include refid="Search_Supplier_List"/>
         from shop as s
         <include refid="Supplier_Joins"/>
-        where (status = 90 or status = 9)
+        where  shopType = 1
+        and (status = 90 or status = 9)
         and shopID != 1252
         and s.shopID = #{shopId}
     </select>