|
@@ -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>
|