diff --git a/src/main/resources/mapper/mysql/stats/stats-mapper.xml b/src/main/resources/mapper/mysql/stats/stats-mapper.xml index b5516ae..163a97c 100644 --- a/src/main/resources/mapper/mysql/stats/stats-mapper.xml +++ b/src/main/resources/mapper/mysql/stats/stats-mapper.xml @@ -780,13 +780,13 @@ , 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 , SUM(t2.sndCntS) - , CONCAT(SUM(t2.succCntS), '(', SUM(t2.succRtS), '%)') AS succCntS + , CONCAT(SUM(t2.succCntS), '(', IFNULL(TRUNCATE((SUM(t2.succCntS) / SUM(t2.sndCntS)) * 100, 2), 0), '%)') AS succCntS , SUM(t2.sndCntL) - , CONCAT(SUM(t2.succCntL), '(', SUM(t2.succRtL), '%)') AS succCntL + , CONCAT(SUM(t2.succCntL), '(', IFNULL(TRUNCATE((SUM(t2.succCntL) / SUM(t2.sndCntL)) * 100, 2), 0) , '%)') AS succCntL , SUM(t2.sndCntM) - , CONCAT(SUM(t2.succCntM), '(', SUM(t2.succRtM), '%)') AS succCntM + , CONCAT(SUM(t2.succCntM), '(', IFNULL(TRUNCATE((SUM(t2.succCntM) / SUM(t2.sndCntM)) * 100, 2), 0), '%)') AS succCntM , SUM(t2.sndCntR) - , CONCAT(SUM(t2.succCntR), '(', SUM(t2.succRtR), '%)') AS succCntR + , CONCAT(SUM(t2.succCntR), '(', IFNULL(TRUNCATE((SUM(t2.succCntR) / SUM(t2.sndCntR)) * 100, 2), 0), '%)') AS succCntR from ( select SUM_YM , USER_SEQ @@ -1200,13 +1200,13 @@ , 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 , SUM(t2.sndCntS) as SND_CNT_S - , CONCAT(SUM(t2.succCntS),'(', SUM(t2.succRtS), '%)') as SUCC_CNT_S + , CONCAT(SUM(t2.succCntS), '(', IFNULL(TRUNCATE((SUM(t2.succCntS) / SUM(t2.sndCntS)) * 100, 2), 0), '%)') as SUCC_CNT_S , SUM(t2.sndCntL) as SND_CNT_L - , CONCAT(SUM(t2.succCntL), '(', SUM(t2.succRtL), '%)') as SUCC_CNT_L + , CONCAT(SUM(t2.succCntL), '(', IFNULL(TRUNCATE((SUM(t2.succCntL) / SUM(t2.sndCntL)) * 100, 2), 0) , '%)') as SUCC_CNT_L , SUM(t2.sndCntM) as SND_CNT_M - , CONCAT(SUM(t2.succCntM), '(', SUM(t2.succRtM), '%)') as SUCC_CNT_M + , CONCAT(SUM(t2.succCntM), '(', IFNULL(TRUNCATE((SUM(t2.succCntM) / SUM(t2.sndCntM)) * 100, 2), 0), '%)') as SUCC_CNT_M , SUM(t2.sndCntR) as SND_CNT_R - , CONCAT(SUM(t2.succCntR), '(', SUM(t2.succRtR), '%)') as SUCC_CNT_R + , CONCAT(SUM(t2.succCntR), '(', IFNULL(TRUNCATE((SUM(t2.succCntR) / SUM(t2.sndCntR)) * 100, 2), 0), '%)') as SUCC_CNT_R from ( SELECT