bug修复

This commit is contained in:
马三炮 2025-10-23 17:09:20 +08:00
parent 241ec43730
commit 77c3923827
1 changed files with 2 additions and 2 deletions

View File

@ -243,8 +243,8 @@
bap.team_id,
bap.team_name,
bwepr.post_name,
count(bap.worker_id) AS attNumHis,
sum(IF(bap.is_repair = 1, 1, 0)) AS repairNumHis
count( DISTINCT bap.worker_id) AS attNumHis,
sum(DISTINCT IF(bap.is_repair = 1, 1, 0)) AS repairNumHis
FROM
bm_att_person bap
INNER JOIN pm_worker pw ON pw.id = bap.worker_id