Commit f2981b9f by guojuxing

门店域查询修复

parent 9fb0a694
......@@ -156,6 +156,7 @@
from tab_store_region re, tab_store_region_rel rr
where re.region_id = rr.region_id
and re.`delete_flag` = 0
and rr.delete_flag = 0
and rr.enterprise_id = #{enterpriseId}
<if test="search != null and search != '' ">
and ( re.region_code like concat('%', #{search}, '%') or re.region_name like concat('%', #{search}, '%') )
......@@ -171,6 +172,7 @@
from tab_store_region re, tab_store_region_rel rr
where re.region_id = rr.region_id
and re.`delete_flag` = 0
and rr.delete_flag = 0
and rr.enterprise_id = #{enterpriseId}
<if test="regionCode != null and regionCode != '' ">
and re.region_code = #{regionCode}
......@@ -194,6 +196,7 @@
from tab_store_region re, tab_store_region_rel rr
where re.region_id = rr.region_id
and rr.`delete_flag` = 0
and rr.delete_flag = 0
and rr.enterprise_id = #{enterpriseId}
<if test="null != storeRegionIdList and storeRegionIdList.size() &gt; 0">
and rr.region_id in
......
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