优化
This commit is contained in:
@ -50,17 +50,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
COALESCE(wage.taskReceiveAmount, 0) as taskReceiveAmount
|
COALESCE(wage.taskReceiveAmount, 0) as taskReceiveAmount
|
||||||
FROM fbs_project_task fpt
|
FROM fbs_project_task fpt
|
||||||
LEFT JOIN zbf_project zp ON fpt.project_id = zp.id
|
LEFT JOIN zbf_project zp ON fpt.project_id = zp.id
|
||||||
LEFT JOIN (
|
LEFT JOIN
|
||||||
SELECT task_id, COUNT(*) as applyNum
|
(SELECT task_id, COUNT(*) as applyNum
|
||||||
FROM fbs_project_task_apply
|
FROM fbs_project_task_apply
|
||||||
GROUP BY task_id
|
GROUP BY task_id)
|
||||||
) apply ON fpt.id = apply.task_id
|
apply ON fpt.id = apply.task_id
|
||||||
LEFT JOIN (
|
LEFT JOIN
|
||||||
SELECT task_id, SUM(applicant_amount) as taskReceiveAmount
|
(SELECT task_id, SUM(applicant_amount) as taskReceiveAmount
|
||||||
FROM bgt_wage_application
|
FROM bgt_wage_application
|
||||||
WHERE audit_status = '2'
|
WHERE audit_status = '2'
|
||||||
GROUP BY task_id
|
GROUP BY task_id)
|
||||||
) wage ON fpt.id = wage.task_id
|
wage ON fpt.id = wage.task_id
|
||||||
<where>
|
<where>
|
||||||
<if test='!dto.myTask and dto.status != null and dto.status == "0"'>
|
<if test='!dto.myTask and dto.status != null and dto.status == "0"'>
|
||||||
AND NOT EXISTS (
|
AND NOT EXISTS (
|
||||||
|
@ -29,9 +29,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="userReplacementCardRecordListPage" resultType="com.ruoyi.wgz.bo.res.WgzReplacementCardRecordRes">
|
<select id="userReplacementCardRecordListPage" resultType="com.ruoyi.wgz.bo.res.WgzReplacementCardRecordRes">
|
||||||
SELECT
|
SELECT
|
||||||
a.*,
|
a.*,
|
||||||
b.username,
|
b.username as auditorname,
|
||||||
b.avatar_name,
|
b.avatar_name as auditorHead,
|
||||||
c.username as userName
|
c.username as userName,
|
||||||
|
c.avatar_name
|
||||||
FROM
|
FROM
|
||||||
wgz_reissueacard a
|
wgz_reissueacard a
|
||||||
LEFT JOIN bgt_user b ON (a.auditor_user_id = b.user_id and b.del_flag = 0)
|
LEFT JOIN bgt_user b ON (a.auditor_user_id = b.user_id and b.del_flag = 0)
|
||||||
|
Reference in New Issue
Block a user