|
@@ -132,10 +132,18 @@
|
|
|
#{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.province_code = #{pId}
|
|
@@ -210,10 +218,18 @@
|
|
|
#{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.province_code = #{pId}
|
|
@@ -288,10 +304,18 @@
|
|
|
#{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.province_code = #{pId}
|
|
@@ -366,10 +390,18 @@
|
|
|
#{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.province_code = #{pId}
|
|
@@ -444,10 +476,18 @@
|
|
|
#{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.province_code = #{pId}
|
|
@@ -522,10 +562,18 @@
|
|
|
#{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.province_code = #{pId}
|
|
@@ -600,10 +648,18 @@
|
|
|
#{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.province_code = #{pId}
|
|
@@ -678,10 +734,18 @@
|
|
|
#{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.province_code = #{pId}
|