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 (

View File

@ -29,9 +29,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="userReplacementCardRecordListPage" resultType="com.ruoyi.wgz.bo.res.WgzReplacementCardRecordRes">
SELECT
a.*,
b.username,
b.avatar_name,
c.username as userName
b.username as auditorname,
b.avatar_name as auditorHead,
c.username as userName,
c.avatar_name
FROM
wgz_reissueacard a
LEFT JOIN bgt_user b ON (a.auditor_user_id = b.user_id and b.del_flag = 0)