|
@@ -1362,6 +1362,7 @@
|
|
|
su.name as "userName",
|
|
su.name as "userName",
|
|
|
io.userid as "userId",
|
|
io.userid as "userId",
|
|
|
sd.id as "deptId",
|
|
sd.id as "deptId",
|
|
|
|
|
+ suLeader.name as "leaderName",
|
|
|
COUNT( CASE WHEN iac.orderstatus = 0 THEN 1 END ) AS qutationCount,
|
|
COUNT( CASE WHEN iac.orderstatus = 0 THEN 1 END ) AS qutationCount,
|
|
|
COUNT( CASE WHEN iac.orderstatus = 2 THEN 1 END ) AS underwritingCount,
|
|
COUNT( CASE WHEN iac.orderstatus = 2 THEN 1 END ) AS underwritingCount,
|
|
|
COUNT( CASE WHEN iac.orderstatus = 3 THEN 1 END ) AS qutationInsureCount,
|
|
COUNT( CASE WHEN iac.orderstatus = 3 THEN 1 END ) AS qutationInsureCount,
|
|
@@ -1373,9 +1374,10 @@
|
|
|
COUNT( CASE WHEN iac.orderstatus = 1 THEN 1 END ) as "auditOrder"
|
|
COUNT( CASE WHEN iac.orderstatus = 1 THEN 1 END ) as "auditOrder"
|
|
|
FROM
|
|
FROM
|
|
|
ins_area_company iac
|
|
ins_area_company iac
|
|
|
- left join ins_orders io on io.orderno = iac.orderno
|
|
|
|
|
- left join sys_dept sd on sd.id=io.deptid
|
|
|
|
|
- left join sys_user su on su.id=io.userid
|
|
|
|
|
|
|
+ left join ins_orders io on io.orderno = iac.orderno
|
|
|
|
|
+ left join sys_dept sd on sd.id=io.deptid
|
|
|
|
|
+ left join sys_user su on su.id=io.userid
|
|
|
|
|
+ left join sys_user suLeader on suLeader.id =su.leader_id
|
|
|
<where>
|
|
<where>
|
|
|
sd.management_source = '2'
|
|
sd.management_source = '2'
|
|
|
<if test="taskStatisticsVo.provinceId != null and taskStatisticsVo.provinceId != ''">
|
|
<if test="taskStatisticsVo.provinceId != null and taskStatisticsVo.provinceId != ''">
|