Commit 36a86f44 by guojuxing

门店域查询修复

parent 6ccba0a1
......@@ -45,6 +45,8 @@
and rr.`delete_flag` = 0
and rr.enterprise_id = #{enterpriseId}
and re.region_id = #{regionId}
group by re.region_id
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_store_region
......@@ -164,6 +166,8 @@
<if test="ownType != null ">
and rr.own_type = #{ownType}
</if>
group by re.region_id
order by re.create_time desc
</select>
<select id="countBySelective" parameterType="com.gic.store.dto.StoreRegionDTO" resultType="java.lang.Integer">
......@@ -183,6 +187,8 @@
<if test="regionId != null and regionId != '' ">
and re.region_id &lt;&gt; #{regionId}
</if>
group by re.region_id
</select>
<select id="listStoreRegionByIds" resultMap="DTOResultMap">
select
......@@ -207,6 +213,8 @@
<if test="ownType != null ">
and own_type = #{ownType}
</if>
group by re.region_id
</select>
<!-- StoreRegionDTO getStoreRegionByRegionName(@Param("enterpriseId") Integer enterpriseId, @Param("regionName") String regionName);-->
<select id="getStoreRegionByRegionName" resultMap="DTOResultMap">
......@@ -224,6 +232,8 @@
and re.delete_flag = 0
and rr.enterprise_id = #{enterpriseId}
and re.region_name = #{regionName}
group by re.region_id
limit 1
</select>
<update id="relationErp" parameterType="com.gic.store.entity.TabStoreRegion">
......
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