|
|
@@ -1095,7 +1095,8 @@
|
|
|
where a.id= #{aid}
|
|
|
</select>
|
|
|
<select id="adminStatisticsInfo" resultType="com.goafanti.admin.bo.AdminStatisticsBo">
|
|
|
- select x.id aid,y.projectCheckSum,y.projectStopSum,z.rejectSum,t.receivables
|
|
|
+ select x.id aid,y.projectCheckSum,y.projectStopSum,g.orderSum,g.changeSum,
|
|
|
+ z.rejectSum,t.receivables
|
|
|
from admin x
|
|
|
left join(select a.salesman_id aid , sum(if( b.project_status =29,1,0))projectStopSum ,
|
|
|
sum(if(b.check_status=1,1,0))projectCheckSum from t_order_new a left join t_order_task b
|
|
|
@@ -1110,6 +1111,7 @@
|
|
|
from new_order_dun a left join t_order_new b on a.order_no =b.order_no
|
|
|
where a.status =1 and b.delete_sign in (0,2,3)
|
|
|
and b.salesman_id = #{aid})t on x.id=t.aid
|
|
|
+ where x.id= #{aid}
|
|
|
</select>
|
|
|
|
|
|
<select id="adminStatisticsInfoByTime" resultType="com.goafanti.admin.bo.AdminStatisticsBo">
|