This commit is contained in:
方亮 2025-10-24 10:29:19 +08:00
parent 65a41635e2
commit c50f9d7556
1 changed files with 1 additions and 2 deletions

View File

@ -287,8 +287,7 @@
bap.team_name, bap.team_name,
bwepr.post_name, bwepr.post_name,
count(DISTINCT bap.id) AS attNumHis, count(DISTINCT bap.id) AS attNumHis,
count(DISTINCT IF(bap.is_repair = 1, bap.id, null)) AS repairNumHis, count(DISTINCT IF(bap.is_repair = 1, bap.id, null)) AS repairNumHis
bap.worker_id as workerId
FROM FROM
bm_att_person bap bm_att_person bap
INNER JOIN pm_worker pw ON pw.id = bap.worker_id INNER JOIN pm_worker pw ON pw.id = bap.worker_id