From 8842ac25d8d0f9cfbbd638f19e01e40c395cc072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 26 Jan 2023 23:43:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=BA=E9=99=B7=E5=9B=9E=E5=BD=92=E5=88=86?= =?UTF-8?q?=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mybatis/mapper/xm/core/dao/XmQuestionMapper.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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