bug修复

This commit is contained in:
马三炮 2025-10-24 09:39:43 +08:00
parent 733c6b378b
commit 241c070c3c
2 changed files with 5 additions and 3 deletions

View File

@ -286,7 +286,8 @@
bap.team_name,
bwepr.post_name,
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
bm_att_person bap
INNER JOIN pm_worker pw ON pw.id = bap.worker_id

View File

@ -70,7 +70,7 @@
SELECT
sum(tpmtr.actual_money) AS salaryMoneyNum,
count(DISTINCT tpmtr.month_id) as payrollNum,
sum(tpmtr.id) AS payrollWorkerTime
count(tpmtr.id) AS payrollWorkerTime
FROM
tb_pro_month_table_roster tpmtr
WHERE
@ -244,7 +244,8 @@
bap.team_name,
bwepr.post_name,
count( DISTINCT bap.worker_id) AS attNumHis,
sum(DISTINCT IF(bap.is_repair = 1, 1, 0)) AS repairNumHis
sum(DISTINCT IF(bap.is_repair = 1, 1, 0)) AS repairNumHis,
bap.worker_id as workerId
FROM
bm_att_person bap
INNER JOIN pm_worker pw ON pw.id = bap.worker_id