From a6402b1d191cebace1a6b41512dfa402fdf9dfe3 Mon Sep 17 00:00:00 2001 From: kimjhjjang Date: Thu, 8 Dec 2022 17:57:48 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=97=85=EC=9E=90=EB=B3=84=20?= =?UTF-8?q?=ED=86=B5=EA=B3=84=20=ED=8D=BC=EC=84=BC=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/mysql/stats/stats-mapper.xml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/resources/mapper/mysql/stats/stats-mapper.xml b/src/main/resources/mapper/mysql/stats/stats-mapper.xml index 8b0a43f..b5516ae 100644 --- a/src/main/resources/mapper/mysql/stats/stats-mapper.xml +++ b/src/main/resources/mapper/mysql/stats/stats-mapper.xml @@ -586,19 +586,19 @@ , t1.BIZRNO AS bizrno , SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) AS sndCnt , SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) AS succCnt - , TRUNCATE(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2) as succRt + , IFNULL(TRUNCATE(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2),0) as succRt , SUM(t2.sndCntS) AS sndCntS , SUM(t2.succCntS) AS succCntS - , SUM(t2.succRtS) AS succRtS + , IFNULL(TRUNCATE((SUM(t2.succCntS) / SUM(t2.sndCntS)) * 100, 2), 0) AS succRtS , SUM(t2.sndCntL) AS sndCntL , SUM(t2.succCntL) AS succCntL - , SUM(t2.succRtL) AS succRtL + , IFNULL(TRUNCATE((SUM(t2.succCntL) / SUM(t2.sndCntL)) * 100, 2), 0) AS succRtL , SUM(t2.sndCntM) AS sndCntM , SUM(t2.succCntM) AS succCntM - , SUM(t2.succRtM) AS succRtM + , IFNULL(TRUNCATE((SUM(t2.succCntM) / SUM(t2.sndCntM)) * 100, 2), 0) AS succRtM , SUM(t2.sndCntR) AS sndCntR , SUM(t2.succCntR) AS succCntR - , SUM(t2.succRtR) AS succRtR + , IFNULL(TRUNCATE((SUM(t2.succCntR) / SUM(t2.sndCntR)) * 100, 2), 0) AS succRtR from ( SELECT @@ -1006,19 +1006,19 @@ , t1.BIZRNO AS BIZRNO , SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) AS SND_CNT , SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) AS SUCC_CNT - , TRUNCATE(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2) as SUCC_RT + , IFNULL(TRUNCATE(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2),0) as SUCC_RT , SUM(t2.sndCntS) as SND_CNT_S , SUM(t2.succCntS) as SUCC_CNT_S - , SUM(t2.succRtS) as SUCC_RT_S + , IFNULL(TRUNCATE((SUM(t2.succCntS) / SUM(t2.sndCntS)) * 100, 2), 0) as SUCC_RT_S , SUM(t2.sndCntL) as SND_CNT_L , SUM(t2.succCntL) as SUCC_CNT_L - , SUM(t2.succRtL) as SUCC_RT_L + , IFNULL(TRUNCATE((SUM(t2.succCntL) / SUM(t2.sndCntL)) * 100, 2), 0) as SUCC_RT_L , SUM(t2.sndCntM) as SND_CNT_M , SUM(t2.succCntM) as SUCC_CNT_M - , SUM(t2.succRtM) as SUCC_RT_M + , IFNULL(TRUNCATE((SUM(t2.succCntM) / SUM(t2.sndCntM)) * 100, 2), 0) as SUCC_RT_M , SUM(t2.sndCntR) as SND_CNT_R , SUM(t2.succCntR) as SUCC_CNT_R - , SUM(t2.succRtR) as SUCC_RT_R + , IFNULL(TRUNCATE((SUM(t2.succCntR) / SUM(t2.sndCntR)) * 100, 2), 0) as SUCC_RT_R from ( SELECT