‘linchangsheng’ 8 months ago
parent
commit
b1e1782d29

+ 8 - 0
mall-server-api/src/main/resources/mapper/workorder/IncreMapper.xml

@@ -67,10 +67,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>
         ${ex.query}
         and
         a.city_name IN ( '广州市', '清远市', '韶关市', '佛山市', '肇庆市', '云浮市' )
         AND a.`level` = 4
+        and f.id is null
 
 
     </select>