Commit 43485ee6 by zhiwj

增加提示

parent f4ba7adc
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_store_field_rel from tab_store_field_rel
where delete_flag = 1 where delete_flag = 0
<if test="enterpriseId != null"> <if test="enterpriseId != null">
and enterprise_id = #{enterpriseId,jdbcType=INTEGER} and enterprise_id = #{enterpriseId,jdbcType=INTEGER}
</if> </if>
......
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
</include> </include>
from tab_store_region re, tab_store_region_rel rr from tab_store_region re, tab_store_region_rel rr
where re.region_id = rr.region_id where re.region_id = rr.region_id
and rr.`delete_flag` = 1 and rr.`delete_flag` = 0
and rr.enterprise_id = #{enterpriseId} and rr.enterprise_id = #{enterpriseId}
<if test="search != null and search != '' "> <if test="search != null and search != '' ">
and ( re.region_code like concat('%', #{search}, '%') or re.region_name like concat('%', #{search}, '%') ) and ( re.region_code like concat('%', #{search}, '%') or re.region_name like concat('%', #{search}, '%') )
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
count(1) count(1)
from tab_store_region re, tab_store_region_rel rr from tab_store_region re, tab_store_region_rel rr
where re.region_id = rr.region_id where re.region_id = rr.region_id
and rr.`delete_flag` = 1 and rr.`delete_flag` = 0
and rr.enterprise_id = #{enterpriseId} and rr.enterprise_id = #{enterpriseId}
<if test="regionCode != null and regionCode != '' "> <if test="regionCode != null and regionCode != '' ">
and re.region_code = #{regionCode} and re.region_code = #{regionCode}
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
</include> </include>
from tab_store_region re, tab_store_region_rel rr from tab_store_region re, tab_store_region_rel rr
where re.region_id = rr.region_id where re.region_id = rr.region_id
and rr.`delete_flag` = 1 and rr.`delete_flag` = 0
and rr.enterprise_id = #{enterpriseId} and rr.enterprise_id = #{enterpriseId}
<if test="null != storeRegionIdList and storeRegionIdList.size() &gt; 0"> <if test="null != storeRegionIdList and storeRegionIdList.size() &gt; 0">
and rr.region_id in and rr.region_id in
...@@ -205,8 +205,8 @@ ...@@ -205,8 +205,8 @@
</include> </include>
from tab_store_region re, tab_store_region_rel rr from tab_store_region re, tab_store_region_rel rr
where re.region_id = rr.region_id where re.region_id = rr.region_id
and rr.`delete_flag` = 1 and rr.`delete_flag` = 0
and re.delete_flag = 1 and re.delete_flag = 0
and rr.enterprise_id = #{enterpriseId} and rr.enterprise_id = #{enterpriseId}
and re.region_name = #{regionName} and re.region_name = #{regionName}
limit 1 limit 1
......
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