|
|
@@ -2139,7 +2139,7 @@ left join department d on o.order_dep = d.id left join t_order_mid a on o.orde
|
|
|
select x.aid, x.dates dateTime, count(*)orderCount, sum(if(x.process_status = 3, 1, 0))orderUnauditedCount
|
|
|
from (SELECT b.finance_id aid, a.process_status, DATE_FORMAT(a.create_time , '%Y-%m-%d') dates
|
|
|
from t_order_new a left join department b on a.order_dep = b.id
|
|
|
- where a.delete_sign in (0, 2, 3) and process_status >2
|
|
|
+ where a.delete_sign in (0, 2, 3) and process_status >2 and a.outsource =0
|
|
|
and b.finance_id = #{aid})x
|
|
|
group by x.aid, x.dates;
|
|
|
</select>
|