修复了项目个人情况查询bug
parent
468fa90184
commit
0a80b2b83c
|
@ -43,14 +43,19 @@
|
||||||
</select>
|
</select>
|
||||||
<select id="selectProjectProcessOfEveryone"
|
<select id="selectProjectProcessOfEveryone"
|
||||||
resultType="cn.edu.hfut.rmdjzz.projectmanagement.entity.dto.TaskNumOfEveryoneDTO">
|
resultType="cn.edu.hfut.rmdjzz.projectmanagement.entity.dto.TaskNumOfEveryoneDTO">
|
||||||
SELECT staff_fullname, completed_num
|
SELECT staff_fullname, IF(completed_num IS NULL, 0, completed_num) AS completed_num
|
||||||
FROM (SELECT task_holder_id, SUM(IF(task_closed_time IS NULL, 0, 1)) AS completed_num
|
FROM (SELECT task_holder_id, SUM(IF(task_closed_time IS NULL, 0, 1)) AS completed_num
|
||||||
FROM task
|
FROM task
|
||||||
WHERE !is_deleted
|
WHERE !is_deleted
|
||||||
AND task_project_id = #{projectId}
|
AND task_project_id = #{projectId}
|
||||||
AND task_id != 0
|
AND task_id != 0
|
||||||
GROUP BY task_holder_id) AS T
|
GROUP BY task_holder_id) AS T1
|
||||||
JOIN staff ON staff_id = T.task_holder_id;
|
RIGHT JOIN (SELECT staff.staff_id, staff_fullname
|
||||||
|
FROM project_group
|
||||||
|
JOIN staff ON staff.staff_id = project_group.staff_id
|
||||||
|
WHERE project_id = #{projectId}) AS T2
|
||||||
|
ON T1.task_holder_id = T2.staff_id
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<select id="selectTaskClosedNum" resultType="cn.edu.hfut.rmdjzz.projectmanagement.entity.dto.TaskTrendDTO">
|
<select id="selectTaskClosedNum" resultType="cn.edu.hfut.rmdjzz.projectmanagement.entity.dto.TaskTrendDTO">
|
||||||
SELECT closed_date AS task_date,
|
SELECT closed_date AS task_date,
|
||||||
|
|
Loading…
Reference in New Issue