From 7600d793d9e912dd99d850bdb074cf46fa17db0a Mon Sep 17 00:00:00 2001 From: liuchuang <123456> Date: Fri, 3 Dec 2021 13:34:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E6=8E=A8=E9=80=81=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=20=E8=A1=97=E9=81=93=E3=80=81=E7=A4=BE=E5=8C=BA?= =?UTF-8?q?=E3=80=81=E5=8C=BA=E7=9B=B4=E9=83=A8=E9=97=A8=E6=8C=87=E6=A0=87?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1=E9=94=99=E8=AF=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/mapper/screen/ScreenIndexDataDao.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenIndexDataDao.xml b/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenIndexDataDao.xml index cf887ffc..b548236c 100644 --- a/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenIndexDataDao.xml +++ b/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenIndexDataDao.xml @@ -497,9 +497,9 @@ IFNULL(round((t1.respProject / t1.transferedCount),2), 0.00) respProjectRatio, IFNULL(t1.respProject, 0) respProjectRatioFz, IFNULL(t1.transferedCount, 0) respProjectRatioFm, - IFNULL(round((t.closedProjectCount / (t1.transferedCount - t.closedProjectCount)),4)*100, 0.00) AS closedProjectRatio, + CASE WHEN t.closedProjectCount > t1.transferedCount THEN 100.00 ELSE IFNULL(round((t.closedProjectCount / t1.transferedCount),4)*100, 0.00) END AS closedProjectRatio, + IFNULL(CASE WHEN t.closedProjectCount > t1.transferedCount THEN t.closedProjectCount ELSE t1.transferedCount END, 0) AS closedProjectRatioFm, IFNULL(t.closedProjectCount, 0) closedProjectRatioFz, - IFNULL((t1.transferedCount - t.closedProjectCount), 0) closedProjectRatioFm, IFNULL(t.satisfactionRatio, 0.00) AS satisfactionRatio, IFNULL(t.satisfactionRatioFz, 0) AS satisfactionRatioFz, IFNULL(t.satisfactionRatioFm, 0) AS satisfactionRatioFm, @@ -578,9 +578,9 @@ IFNULL(round((t1.respProject / t1.transferedCount),2), 0.00) respProjectRatio, IFNULL(t1.respProject, 0) respProjectRatioFz, IFNULL(t1.transferedCount, 0) respProjectRatioFm, - IFNULL(round((t.closedProjectCount / (t1.transferedCount - t.closedProjectCount)),4)*100, 0.00) AS closedProjectRatio, + CASE WHEN t.closedProjectCount > t1.transferedCount THEN 100.00 ELSE IFNULL(round((t.closedProjectCount / t1.transferedCount),4)*100, 0.00) END AS closedProjectRatio, + IFNULL(CASE WHEN t.closedProjectCount > t1.transferedCount THEN t.closedProjectCount ELSE t1.transferedCount END, 0) AS closedProjectRatioFm, IFNULL(t.closedProjectCount, 0) closedProjectRatioFz, - IFNULL((t1.transferedCount - t.closedProjectCount), 0) closedProjectRatioFm, IFNULL(t.satisfactionRatio, 0.00) AS satisfactionRatio, IFNULL(t.satisfactionRatioFz, 0) AS satisfactionRatioFz, IFNULL(t.satisfactionRatioFm, 0) AS satisfactionRatioFm,