xieb
2024-01-02 d2cf8a7f7bcf49ace058d9eec587d75c4f764a2e
src/main/java/org/springblade/modules/evaluate/mapper/EvaluateTaskSetMapper.xml
@@ -28,8 +28,8 @@
    <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">