From 9dc9aa7f7af06b7c10710898ca718473277f584a Mon Sep 17 00:00:00 2001 From: kimjhjjang Date: Thu, 8 Dec 2022 14:07:05 +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-=20=EC=9D=BC=EB=B3=84/=EC=9B=94=EB=B3=84?= =?UTF-8?q?=20=ED=86=B5=EA=B3=84=20=EB=8D=B0=EC=9D=B4=ED=84=B0=20sum=20?= =?UTF-8?q?=ED=95=AD=EB=AA=A9=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/mysql/stats/stats-mapper.xml | 84 +++++++++---------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/src/main/resources/mapper/mysql/stats/stats-mapper.xml b/src/main/resources/mapper/mysql/stats/stats-mapper.xml index 0232243..8b0a43f 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((t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / (t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2) as succRt - , t2.sndCntS - , t2.succCntS - , t2.succRtS - , t2.sndCntL - , t2.succCntL - , t2.succRtL - , t2.sndCntM - , t2.succCntM - , t2.succRtM - , t2.sndCntR - , t2.succCntR - , t2.succRtR + , TRUNCATE(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2) as succRt + , SUM(t2.sndCntS) AS sndCntS + , SUM(t2.succCntS) AS succCntS + , SUM(t2.succRtS) AS succRtS + , SUM(t2.sndCntL) AS sndCntL + , SUM(t2.succCntL) AS succCntL + , SUM(t2.succRtL) AS succRtL + , SUM(t2.sndCntM) AS sndCntM + , SUM(t2.succCntM) AS succCntM + , SUM(t2.succRtM) AS succRtM + , SUM(t2.sndCntR) AS sndCntR + , SUM(t2.succCntR) AS succCntR + , SUM(t2.succRtR) AS succRtR from ( SELECT @@ -779,14 +779,14 @@ , t1.BIZRNO AS bizrno , SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) AS sndCnt , CONCAT(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR),'(',(TRUNCATE(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2)),'%)') AS succCnt - , t2.sndCntS - , CONCAT(t2.succCntS, '(', t2.succRtS, '%)') AS succCntS - , t2.sndCntL - , CONCAT(t2.succCntL, '(', t2.succRtL, '%)') AS succCntL - , t2.sndCntM - , CONCAT(t2.succCntM, '(', t2.succRtM, '%)') AS succCntM - , t2.sndCntR - , CONCAT(t2.succCntR, '(', t2.succRtR, '%)') AS succCntR + , SUM(t2.sndCntS) + , CONCAT(SUM(t2.succCntS), '(', SUM(t2.succRtS), '%)') AS succCntS + , SUM(t2.sndCntL) + , CONCAT(SUM(t2.succCntL), '(', SUM(t2.succRtL), '%)') AS succCntL + , SUM(t2.sndCntM) + , CONCAT(SUM(t2.succCntM), '(', SUM(t2.succRtM), '%)') AS succCntM + , SUM(t2.sndCntR) + , CONCAT(SUM(t2.succCntR), '(', SUM(t2.succRtR), '%)') AS succCntR from ( select SUM_YM , USER_SEQ @@ -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((t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / (t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2) as SUCC_RT - , t2.sndCntS as SND_CNT_S - , t2.succCntS as SUCC_CNT_S - , t2.succRtS as SUCC_RT_S - , t2.sndCntL as SND_CNT_L - , t2.succCntL as SUCC_CNT_L - , t2.succRtL as SUCC_RT_L - , t2.sndCntM as SND_CNT_M - , t2.succCntM as SUCC_CNT_M - , t2.succRtM as SUCC_RT_M - , t2.sndCntR as SND_CNT_R - , t2.succCntR as SUCC_CNT_R - , t2.succRtR as SUCC_RT_R + , TRUNCATE(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2) as SUCC_RT + , SUM(t2.sndCntS) as SND_CNT_S + , SUM(t2.succCntS) as SUCC_CNT_S + , SUM(t2.succRtS) 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 + , SUM(t2.sndCntM) as SND_CNT_M + , SUM(t2.succCntM) as SUCC_CNT_M + , SUM(t2.succRtM) 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 from ( SELECT @@ -1199,14 +1199,14 @@ , t1.BIZRNO AS BIZRNO , SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) AS SND_CNT , CONCAT(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR),'(',(TRUNCATE(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2)) , '%)') AS SUCC_CNT - , t2.sndCntS as SND_CNT_S - , CONCAT(t2.succCntS,'(', t2.succRtS, '%)') as SUCC_CNT_S - , t2.sndCntL as SND_CNT_L - , CONCAT(t2.succCntL, '(', t2.succRtL, '%)') as SUCC_CNT_L - , t2.sndCntM as SND_CNT_M - , CONCAT(t2.succCntM, '(', t2.succRtM, '%)') as SUCC_CNT_M - , t2.sndCntR as SND_CNT_R - , CONCAT(t2.succCntR, '(', t2.succRtR, '%)') as SUCC_CNT_R + , SUM(t2.sndCntS) as SND_CNT_S + , CONCAT(SUM(t2.succCntS),'(', SUM(t2.succRtS), '%)') as SUCC_CNT_S + , SUM(t2.sndCntL) as SND_CNT_L + , CONCAT(SUM(t2.succCntL), '(', SUM(t2.succRtL), '%)') as SUCC_CNT_L + , SUM(t2.sndCntM) as SND_CNT_M + , CONCAT(SUM(t2.succCntM), '(', SUM(t2.succRtM), '%)') as SUCC_CNT_M + , SUM(t2.sndCntR) as SND_CNT_R + , CONCAT(SUM(t2.succCntR), '(', SUM(t2.succRtR), '%)') as SUCC_CNT_R from ( SELECT