From 358cc69d28320e8e335dcc2edd6617692964acdc Mon Sep 17 00:00:00 2001 From: wxc <191104855@qq.com> Date: Wed, 20 Mar 2024 18:57:08 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/DataScreenMapper.xml | 26 +++++-------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/mailbox-lan/src/main/resources/mapper/DataScreenMapper.xml b/mailbox-lan/src/main/resources/mapper/DataScreenMapper.xml index ede2e4b..391351c 100644 --- a/mailbox-lan/src/main/resources/mapper/DataScreenMapper.xml +++ b/mailbox-lan/src/main/resources/mapper/DataScreenMapper.xml @@ -28,8 +28,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" group by a.name order by rateNumber desc + + select - CONCAT(ROUND(SUM(COALESCE(b.resolved, 0))*100 / NULLIF(COUNT(1), 0),0),'%') AS completedRate, - SUM(COALESCE(b.resolved, 0)) AS completed, + CONCAT(ROUND(SUM(COALESCE(b.completed, 0))*100 / NULLIF(COUNT(1), 0),0),'%') AS completedRate, + SUM(COALESCE(b.completed, 0)) AS completed, COUNT(1) AS completedSum from mail_mark b left join dept a on a.id=b.second_dept_id where 1=1 @@ -182,24 +184,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" GROUP BY month order by month - - - - - - - - - - - - - - - - - +