|
@@ -39,7 +39,7 @@
|
|
|
e.dict_code as order_source_id
|
|
|
FROM
|
|
|
region a
|
|
|
- join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL'
|
|
|
+ join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL' and b.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND b.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
@@ -60,17 +60,25 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE'
|
|
|
+ join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE' and e.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND e.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ LEFT JOIN websit_dispatch f on a.id = f.street_code and b.dict_code = f.dict_code and c.id = f.order_small_id and d.category_id = f.category_id and e.dict_code = f.order_source_id
|
|
|
+ <if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
+ AND f.company_wechat_id IN
|
|
|
+ <foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
${ex.query}
|
|
|
and
|
|
|
a.city_name IN ( '广州市', '清远市', '韶关市', '佛山市', '肇庆市', '云浮市' )
|
|
|
AND a.`level` = 4
|
|
|
+ and f.id is null
|
|
|
|
|
|
|
|
|
</select>
|
|
@@ -96,7 +104,7 @@
|
|
|
a.province_code as keyId
|
|
|
FROM
|
|
|
region a
|
|
|
- join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL'
|
|
|
+ join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL' and b.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND b.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
@@ -117,29 +125,37 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE'
|
|
|
+ join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE' and e.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND e.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ LEFT JOIN websit_dispatch f on a.id = f.street_code and b.dict_code = f.dict_code and c.id = f.order_small_id and d.category_id = f.category_id and e.dict_code = f.order_source_id
|
|
|
+ <if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
+ AND f.company_wechat_id IN
|
|
|
+ <foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
where 1=1
|
|
|
and
|
|
|
a.city_name IN ( '广州市', '清远市', '韶关市', '佛山市', '肇庆市', '云浮市' )
|
|
|
AND a.`level` = 4
|
|
|
+ and f.id is null
|
|
|
|
|
|
<if test="pId != null and pId !=''">
|
|
|
- AND a.pid == #{pId}
|
|
|
+ AND a.province_code = #{pId}
|
|
|
</if>
|
|
|
<if test="cityCode != null and cityCode !=''">
|
|
|
- AND a.city_code == #{cityCode}
|
|
|
+ AND a.city_code = #{cityCode}
|
|
|
</if>
|
|
|
<if test="areaCode != null and areaCode !=''">
|
|
|
- AND a.area_code == #{areaCode}
|
|
|
+ AND a.area_code = #{areaCode}
|
|
|
</if>
|
|
|
<if test="streetCode != null and streetCode !=''">
|
|
|
- AND a.id == #{streetCode}
|
|
|
+ AND a.id = #{streetCode}
|
|
|
</if>
|
|
|
<if test="dictCode != null and dictCode.size > 0">
|
|
|
AND b.dict_code IN
|
|
@@ -174,7 +190,7 @@
|
|
|
a.city_code as keyId
|
|
|
FROM
|
|
|
region a
|
|
|
- join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL'
|
|
|
+ join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL' and b.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND b.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
@@ -195,29 +211,37 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE'
|
|
|
+ join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE' and e.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND e.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ LEFT JOIN websit_dispatch f on a.id = f.street_code and b.dict_code = f.dict_code and c.id = f.order_small_id and d.category_id = f.category_id and e.dict_code = f.order_source_id
|
|
|
+ <if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
+ AND f.company_wechat_id IN
|
|
|
+ <foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
where 1=1
|
|
|
and
|
|
|
a.city_name IN ( '广州市', '清远市', '韶关市', '佛山市', '肇庆市', '云浮市' )
|
|
|
AND a.`level` = 4
|
|
|
+ and f.id is null
|
|
|
|
|
|
<if test="pId != null and pId !=''">
|
|
|
- AND a.pid == #{pId}
|
|
|
+ AND a.province_code = #{pId}
|
|
|
</if>
|
|
|
<if test="cityCode != null and cityCode !=''">
|
|
|
- AND a.city_code == #{cityCode}
|
|
|
+ AND a.city_code = #{cityCode}
|
|
|
</if>
|
|
|
<if test="areaCode != null and areaCode !=''">
|
|
|
- AND a.area_code == #{areaCode}
|
|
|
+ AND a.area_code = #{areaCode}
|
|
|
</if>
|
|
|
<if test="streetCode != null and streetCode !=''">
|
|
|
- AND a.id == #{streetCode}
|
|
|
+ AND a.id = #{streetCode}
|
|
|
</if>
|
|
|
<if test="dictCode != null and dictCode.size > 0">
|
|
|
AND b.dict_code IN
|
|
@@ -252,7 +276,7 @@
|
|
|
a.area_code as keyId
|
|
|
FROM
|
|
|
region a
|
|
|
- join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL'
|
|
|
+ join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL' and b.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND b.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
@@ -273,29 +297,37 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE'
|
|
|
+ join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE' and e.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND e.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ LEFT JOIN websit_dispatch f on a.id = f.street_code and b.dict_code = f.dict_code and c.id = f.order_small_id and d.category_id = f.category_id and e.dict_code = f.order_source_id
|
|
|
+ <if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
+ AND f.company_wechat_id IN
|
|
|
+ <foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
where 1=1
|
|
|
and
|
|
|
a.city_name IN ( '广州市', '清远市', '韶关市', '佛山市', '肇庆市', '云浮市' )
|
|
|
AND a.`level` = 4
|
|
|
+ and f.id is null
|
|
|
|
|
|
<if test="pId != null and pId !=''">
|
|
|
- AND a.pid == #{pId}
|
|
|
+ AND a.province_code = #{pId}
|
|
|
</if>
|
|
|
<if test="cityCode != null and cityCode !=''">
|
|
|
- AND a.city_code == #{cityCode}
|
|
|
+ AND a.city_code = #{cityCode}
|
|
|
</if>
|
|
|
<if test="areaCode != null and areaCode !=''">
|
|
|
- AND a.area_code == #{areaCode}
|
|
|
+ AND a.area_code = #{areaCode}
|
|
|
</if>
|
|
|
<if test="streetCode != null and streetCode !=''">
|
|
|
- AND a.id == #{streetCode}
|
|
|
+ AND a.id = #{streetCode}
|
|
|
</if>
|
|
|
<if test="dictCode != null and dictCode.size > 0">
|
|
|
AND b.dict_code IN
|
|
@@ -330,7 +362,7 @@
|
|
|
a.id as keyId
|
|
|
FROM
|
|
|
region a
|
|
|
- join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL'
|
|
|
+ join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL' and b.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND b.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
@@ -351,29 +383,37 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE'
|
|
|
+ join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE' and e.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND e.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ LEFT JOIN websit_dispatch f on a.id = f.street_code and b.dict_code = f.dict_code and c.id = f.order_small_id and d.category_id = f.category_id and e.dict_code = f.order_source_id
|
|
|
+ <if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
+ AND f.company_wechat_id IN
|
|
|
+ <foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
where 1=1
|
|
|
and
|
|
|
a.city_name IN ( '广州市', '清远市', '韶关市', '佛山市', '肇庆市', '云浮市' )
|
|
|
AND a.`level` = 4
|
|
|
+ and f.id is null
|
|
|
|
|
|
<if test="pId != null and pId !=''">
|
|
|
- AND a.pid == #{pId}
|
|
|
+ AND a.province_code = #{pId}
|
|
|
</if>
|
|
|
<if test="cityCode != null and cityCode !=''">
|
|
|
- AND a.city_code == #{cityCode}
|
|
|
+ AND a.city_code = #{cityCode}
|
|
|
</if>
|
|
|
<if test="areaCode != null and areaCode !=''">
|
|
|
- AND a.area_code == #{areaCode}
|
|
|
+ AND a.area_code = #{areaCode}
|
|
|
</if>
|
|
|
<if test="streetCode != null and streetCode !=''">
|
|
|
- AND a.id == #{streetCode}
|
|
|
+ AND a.id = #{streetCode}
|
|
|
</if>
|
|
|
<if test="dictCode != null and dictCode.size > 0">
|
|
|
AND b.dict_code IN
|
|
@@ -408,7 +448,7 @@
|
|
|
b.dict_code as keyId
|
|
|
FROM
|
|
|
region a
|
|
|
- join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL'
|
|
|
+ join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL' and b.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND b.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
@@ -429,29 +469,37 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE'
|
|
|
+ join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE' and e.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND e.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ LEFT JOIN websit_dispatch f on a.id = f.street_code and b.dict_code = f.dict_code and c.id = f.order_small_id and d.category_id = f.category_id and e.dict_code = f.order_source_id
|
|
|
+ <if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
+ AND f.company_wechat_id IN
|
|
|
+ <foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
where 1=1
|
|
|
and
|
|
|
a.city_name IN ( '广州市', '清远市', '韶关市', '佛山市', '肇庆市', '云浮市' )
|
|
|
AND a.`level` = 4
|
|
|
+ and f.id is null
|
|
|
|
|
|
<if test="pId != null and pId !=''">
|
|
|
- AND a.pid == #{pId}
|
|
|
+ AND a.province_code = #{pId}
|
|
|
</if>
|
|
|
<if test="cityCode != null and cityCode !=''">
|
|
|
- AND a.city_code == #{cityCode}
|
|
|
+ AND a.city_code = #{cityCode}
|
|
|
</if>
|
|
|
<if test="areaCode != null and areaCode !=''">
|
|
|
- AND a.area_code == #{areaCode}
|
|
|
+ AND a.area_code = #{areaCode}
|
|
|
</if>
|
|
|
<if test="streetCode != null and streetCode !=''">
|
|
|
- AND a.id == #{streetCode}
|
|
|
+ AND a.id = #{streetCode}
|
|
|
</if>
|
|
|
<if test="dictCode != null and dictCode.size > 0">
|
|
|
AND b.dict_code IN
|
|
@@ -486,7 +534,7 @@
|
|
|
c.id as keyId
|
|
|
FROM
|
|
|
region a
|
|
|
- join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL'
|
|
|
+ join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL' and b.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND b.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
@@ -507,29 +555,37 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE'
|
|
|
+ join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE' and e.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND e.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ LEFT JOIN websit_dispatch f on a.id = f.street_code and b.dict_code = f.dict_code and c.id = f.order_small_id and d.category_id = f.category_id and e.dict_code = f.order_source_id
|
|
|
+ <if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
+ AND f.company_wechat_id IN
|
|
|
+ <foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
where 1=1
|
|
|
and
|
|
|
a.city_name IN ( '广州市', '清远市', '韶关市', '佛山市', '肇庆市', '云浮市' )
|
|
|
AND a.`level` = 4
|
|
|
+ and f.id is null
|
|
|
|
|
|
<if test="pId != null and pId !=''">
|
|
|
- AND a.pid == #{pId}
|
|
|
+ AND a.province_code = #{pId}
|
|
|
</if>
|
|
|
<if test="cityCode != null and cityCode !=''">
|
|
|
- AND a.city_code == #{cityCode}
|
|
|
+ AND a.city_code = #{cityCode}
|
|
|
</if>
|
|
|
<if test="areaCode != null and areaCode !=''">
|
|
|
- AND a.area_code == #{areaCode}
|
|
|
+ AND a.area_code = #{areaCode}
|
|
|
</if>
|
|
|
<if test="streetCode != null and streetCode !=''">
|
|
|
- AND a.id == #{streetCode}
|
|
|
+ AND a.id = #{streetCode}
|
|
|
</if>
|
|
|
<if test="dictCode != null and dictCode.size > 0">
|
|
|
AND b.dict_code IN
|
|
@@ -564,7 +620,7 @@
|
|
|
d.category_id as keyId
|
|
|
FROM
|
|
|
region a
|
|
|
- join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL'
|
|
|
+ join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL' and b.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND b.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
@@ -585,29 +641,37 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE'
|
|
|
+ join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE' and e.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND e.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ LEFT JOIN websit_dispatch f on a.id = f.street_code and b.dict_code = f.dict_code and c.id = f.order_small_id and d.category_id = f.category_id and e.dict_code = f.order_source_id
|
|
|
+ <if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
+ AND f.company_wechat_id IN
|
|
|
+ <foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
where 1=1
|
|
|
and
|
|
|
a.city_name IN ( '广州市', '清远市', '韶关市', '佛山市', '肇庆市', '云浮市' )
|
|
|
AND a.`level` = 4
|
|
|
+ and f.id is null
|
|
|
|
|
|
<if test="pId != null and pId !=''">
|
|
|
- AND a.pid == #{pId}
|
|
|
+ AND a.province_code = #{pId}
|
|
|
</if>
|
|
|
<if test="cityCode != null and cityCode !=''">
|
|
|
- AND a.city_code == #{cityCode}
|
|
|
+ AND a.city_code = #{cityCode}
|
|
|
</if>
|
|
|
<if test="areaCode != null and areaCode !=''">
|
|
|
- AND a.area_code == #{areaCode}
|
|
|
+ AND a.area_code = #{areaCode}
|
|
|
</if>
|
|
|
<if test="streetCode != null and streetCode !=''">
|
|
|
- AND a.id == #{streetCode}
|
|
|
+ AND a.id = #{streetCode}
|
|
|
</if>
|
|
|
<if test="dictCode != null and dictCode.size > 0">
|
|
|
AND b.dict_code IN
|
|
@@ -642,7 +706,7 @@
|
|
|
e.dict_code as keyId
|
|
|
FROM
|
|
|
region a
|
|
|
- join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL'
|
|
|
+ join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL' and b.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND b.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
@@ -663,29 +727,37 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE'
|
|
|
+ join sys_dict_company e on e.dict_type = 'WORKER_ORDER_SOURCE' and e.del = 0
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND e.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ LEFT JOIN websit_dispatch f on a.id = f.street_code and b.dict_code = f.dict_code and c.id = f.order_small_id and d.category_id = f.category_id and e.dict_code = f.order_source_id
|
|
|
+ <if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
+ AND f.company_wechat_id IN
|
|
|
+ <foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
where 1=1
|
|
|
and
|
|
|
a.city_name IN ( '广州市', '清远市', '韶关市', '佛山市', '肇庆市', '云浮市' )
|
|
|
AND a.`level` = 4
|
|
|
+ and f.id is null
|
|
|
|
|
|
<if test="pId != null and pId !=''">
|
|
|
- AND a.pid == #{pId}
|
|
|
+ AND a.province_code = #{pId}
|
|
|
</if>
|
|
|
<if test="cityCode != null and cityCode !=''">
|
|
|
- AND a.city_code == #{cityCode}
|
|
|
+ AND a.city_code = #{cityCode}
|
|
|
</if>
|
|
|
<if test="areaCode != null and areaCode !=''">
|
|
|
- AND a.area_code == #{areaCode}
|
|
|
+ AND a.area_code = #{areaCode}
|
|
|
</if>
|
|
|
<if test="streetCode != null and streetCode !=''">
|
|
|
- AND a.id == #{streetCode}
|
|
|
+ AND a.id = #{streetCode}
|
|
|
</if>
|
|
|
<if test="dictCode != null and dictCode.size > 0">
|
|
|
AND b.dict_code IN
|