This commit is contained in:
zt
2025-03-13 18:55:03 +08:00
parent 324771bada
commit bbd5f4980c
2 changed files with 12 additions and 11 deletions

View File

@ -50,17 +50,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
COALESCE(wage.taskReceiveAmount, 0) as taskReceiveAmount
FROM fbs_project_task fpt
LEFT JOIN zbf_project zp ON fpt.project_id = zp.id
LEFT JOIN (
SELECT task_id, COUNT(*) as applyNum
LEFT JOIN
(SELECT task_id, COUNT(*) as applyNum
FROM fbs_project_task_apply
GROUP BY task_id
) apply ON fpt.id = apply.task_id
LEFT JOIN (
SELECT task_id, SUM(applicant_amount) as taskReceiveAmount
GROUP BY task_id)
apply ON fpt.id = apply.task_id
LEFT JOIN
(SELECT task_id, SUM(applicant_amount) as taskReceiveAmount
FROM bgt_wage_application
WHERE audit_status = '2'
GROUP BY task_id
) wage ON fpt.id = wage.task_id
GROUP BY task_id)
wage ON fpt.id = wage.task_id
<where>
<if test='!dto.myTask and dto.status != null and dto.status == "0"'>
AND NOT EXISTS (