Commit d1eb3376 by guojuxing

门店查询调整:查询tab_store 状态为1的数据。

parent b258d1b1
......@@ -327,6 +327,7 @@
<if test="storeDTO.storeInfoId != null">
and t1.store_info_id &lt;&gt; #{storeDTO.storeInfoId}
</if>
and t2.status = 1
</select>
<select id="countByBrandId" resultType="java.lang.Integer">
......@@ -424,6 +425,7 @@
#{id}
</foreach>
</if>
and t2.status = 1
order by distance asc
</select>
......@@ -477,14 +479,19 @@
and t1.region_id = #{regionId}
and t1.store_name = #{storeName}
and t1.store_code = #{storeCode}
and t2.status = 1
</select>
<select id="listAllstoreInfoId" resultType="Integer">
select t1.store_info_id from tab_store_info t1,tab_store t2 where t2.enterprise_id=#{enterpriseId}
and t1.store_info_id=t2.store_info_id and t1.overflow_status=0
and t2.status = 1
</select>
<select id="listAllstoreId" resultType="Integer">
select t2.store_id from tab_store_info t1,tab_store t2 where t2.enterprise_id=#{enterpriseId}
and t1.store_info_id=t2.store_info_id and t1.overflow_status=0
and t2.status = 1
</select>
<select id="getByStore" resultMap="BaseResultMap" parameterType="com.gic.store.dto.StoreDTO">
select
......@@ -510,6 +517,8 @@
<if test="store.storeId != null ">
and t2.store_id &lt;&gt; #{store.storeId}
</if>
and t2.status = 1
</select>
<select id="getDtoByStore" resultMap="DTOResultMap" parameterType="com.gic.store.dto.StoreDTO">
......@@ -536,6 +545,8 @@
<if test="store.storeId != null ">
and t2.store_id &lt;&gt; #{store.storeId}
</if>
and t2.status = 1
limit 1
</select>
<select id="getStoreOwnerByStoreInfoId" resultType="java.lang.Integer">
......@@ -544,6 +555,8 @@
from tab_store_info t1,tab_store t2 where t1.store_info_id = t2.store_info_id
and t1.store_info_id = #{storeInfoId}
and t2.enterprise_id = #{enterpriseId}
and t2.status = 1
</select>
<select id="getStoreIdByStoreInfoId" resultType="java.lang.Integer">
......@@ -552,6 +565,8 @@
from tab_store_info t1,tab_store t2 where t1.store_info_id = t2.store_info_id
and t1.store_info_id = #{storeInfoId}
and t2.enterprise_id = #{enterpriseId}
and t2.status = 1
</select>
<select id="hasUnCompleteStatusStore" resultType="java.lang.Integer">
select
......@@ -561,6 +576,8 @@
and t2.own_type = 0
and t1.status = 2
and t1.complete_status = 0
and t2.status = 1
limit 1
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment