| | |
| | | <select id="selectEvaluateTaskSetPage" resultMap="evaluateTaskSetVOMap"> |
| | | select *, |
| | | CASE type |
| | | WHEN 0 THEN ( select count(*) from yw_evaluate_result b where b.evaluate_task_id = a.evaluate_task_id and a.user_id = b.be_id ) |
| | | WHEN 1 THEN ( select count(*) from yw_evaluate_result b where b.evaluate_task_id = a.evaluate_task_id and a.dept_id = b.be_id ) |
| | | WHEN 0 THEN ( select count(*) from yw_evaluate_result b where b.evaluate_task_id = a.evaluate_task_id and a.user_id = b.be_id and b.type = 0) |
| | | WHEN 1 THEN ( select count(*) from yw_evaluate_result b where b.evaluate_task_id = a.evaluate_task_id and a.dept_id = b.be_id and b.type = 1) |
| | | END as vote_num |
| | | from yw_evaluate_task_set a where is_deleted = 0 |
| | | <if test="evaluateTaskSet.type !=null"> |