From 05a3db45612c6718b977c38eb0ad15dd339fda11 Mon Sep 17 00:00:00 2001 From: laishajiang <12977614+laishajiang@user.noreply.gitee.com> Date: Mon, 1 Apr 2024 18:47:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=A1=E4=BB=B6=E4=B8=89=E7=8E=87=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mailbox-lan/src/main/resources/mapper/DataMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailbox-lan/src/main/resources/mapper/DataMapper.xml b/mailbox-lan/src/main/resources/mapper/DataMapper.xml index ecacc94..dbb1cdc 100644 --- a/mailbox-lan/src/main/resources/mapper/DataMapper.xml +++ b/mailbox-lan/src/main/resources/mapper/DataMapper.xml @@ -99,7 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ( select - CONCAT(COALESCE(ROUND(sum(COALESCE(b.resolved, 0))*100/SUM(CASE WHEN b.completed = '1' THEN 1 ELSE 0 END),0),0),'%') Rate, + CONCAT(COALESCE(ROUND(sum(COALESCE(b.resolved, 0))*100/NULLIF(SUM(CASE WHEN b.completed = '1' THEN 1 ELSE 0 END),0),0),0),'%') Rate, COALESCE(SUM(COALESCE(b.resolved, 0)),0) resolved,COALESCE(SUM(CASE WHEN b.completed = '1' THEN 1 ELSE 0 END),0) rSum, count(b.mail_id) AS total2