fix(mapper): 修正项目任务完成数统计逻辑

master
zhaokai 2026-03-16 17:57:55 +08:00
parent eecef70989
commit f6c3ef2cf3
1 changed files with 1 additions and 1 deletions

View File

@ -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'