diff --git a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmQuestionMapper.xml b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmQuestionMapper.xml index 9379f731..0a6e67e7 100644 --- a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmQuestionMapper.xml +++ b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmQuestionMapper.xml @@ -75,14 +75,15 @@ select count(*) as bugs_num,retimes from ( - SELECT count(*) as retimes,res.question_id FROM xm_question_handle res + SELECT count(*) as retimes,h.question_id FROM xm_question_handle h inner join xm_question res + on res.id=h.question_id - and handle_status='9' + and h.handle_status='9' - group by res.question_id ) as ret + group by h.question_id ) as ret group by ret.retimes order by retimes desc