@@ -71,11 +71,11 @@
ins_orders io on (io.userid like CONCAT(sd.id,'%') or io.operatorid = CONCAT(sd.id,'%')) and orderstatus = 3
LEFT JOIN
ins_area_company iac on iac.orderno = io.orderno and iac.orderstatus = 3
+ WHERE
+ sd.comlevel = 3
<if test="startDate != null and startDate != ''">
and iac.createtime BETWEEN #{startDate} and #{endDate}
</if>
- WHERE
- sd.comlevel = 3
AND
sd.id != 9991401
group by