fix(mapper): 修正项目任务完成数统计逻辑
parent
eecef70989
commit
f6c3ef2cf3
|
|
@ -10,7 +10,7 @@
|
||||||
d.name as teamdepartmentname,
|
d.name as teamdepartmentname,
|
||||||
u.name as teamusername,
|
u.name as teamusername,
|
||||||
count(distinct ptg.id) as projectTaskCount,
|
count(distinct ptg.id) as projectTaskCount,
|
||||||
sum(if(ptg.execute_status = 4, 1, 0)) as projectTaskFinishedCount
|
sum(if(ptg.score_status = 2)) as projectTaskFinishedCount
|
||||||
from domain_group dg
|
from domain_group dg
|
||||||
left join corp_info c on dg.corpinfo_id = c.id and c.delete_enum = 'false'
|
left join corp_info c on dg.corpinfo_id = c.id and c.delete_enum = 'false'
|
||||||
left join department d on dg.team_department_id = d.id and d.delete_enum = 'false'
|
left join department d on dg.team_department_id = d.id and d.delete_enum = 'false'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue