|
@@ -39,7 +39,9 @@
|
|
|
e.dict_code as order_source_id
|
|
|
FROM
|
|
|
region a
|
|
|
- join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL' and b.del = 0
|
|
|
+ join sys_dict_company b on b.dict_type = 'ORDER_CHANNEL' and b.del = 0 and
|
|
|
+ a.city_name IN ( '广州市', '清远市', '韶关市', '佛山市', '肇庆市', '云浮市' )
|
|
|
+ AND a.`level` = 4
|
|
|
<if test="adminCompanyIds != null and adminCompanyIds.size > 0">
|
|
|
AND b.company_wechat_id IN
|
|
|
<foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
|
|
@@ -67,19 +69,14 @@
|
|
|
#{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=")">
|
|
|
+ ${ex.query}
|
|
|
+
|
|
|
+ <if test="codeList != null and codeList.size > 0">
|
|
|
+ AND CONCAT(a.id,b.dict_code,c.id,d.category_id,e.dict_code) not In
|
|
|
+ <foreach item="item" index="index" collection="codeList" open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- ${ex.query}
|
|
|
- and
|
|
|
- a.city_name IN ( '广州市', '清远市', '韶关市', '佛山市', '肇庆市', '云浮市' )
|
|
|
- AND a.`level` = 4
|
|
|
- and f.id is null
|
|
|
-
|
|
|
|
|
|
</select>
|
|
|
<select id="listDispatchWebsit" resultType="com.gree.mall.manager.bean.workorder.WebsitDispatchVO">
|