diff --git a/src/main/resources/mybatis-mapper/biz/ctgy/residentanddisabled-mapper.xml b/src/main/resources/mybatis-mapper/biz/ctgy/residentanddisabled-mapper.xml index a0eccf5..f889f49 100644 --- a/src/main/resources/mybatis-mapper/biz/ctgy/residentanddisabled-mapper.xml +++ b/src/main/resources/mybatis-mapper/biz/ctgy/residentanddisabled-mapper.xml @@ -40,14 +40,15 @@ where sc_code = #{scCode} - /* residentanddisabled-mapper|selectTotByJudgeTeamAndChasu|julim */ SELECT MSV.msu_team - , '결과' as name , NVL(SUM(DECODE(MSS.ms_result, '2', 1, 0)), 0) bu + , 0 as seo , NVL(SUM(DECODE(MSS.ms_result, '1', 1, 0)), 0) mibu , NVL(SUM(DECODE(MSS.ms_result, '1', 1, '2', 1, 0)), 0) tot - FROM min_simsa680_sc MSS, + , '결과' as name + FROM min_simsa680_sc MSS, msu680_sc_view MSV WHERE MSS.ms_maincode = MSV.msu_maincode @@ -60,13 +61,13 @@ GROUP BY MSV.msu_team, MSS.ms_chasu - /* residentanddisabled-mapper|selectTotJudgeUsersByJudgeTeamAndChasu|julim */ - SELECT MSU.msu_userid - , MU.name - , SUM(DECODE(MSU_RESULT, '2', 1, 0)) bu + SELECT SUM(DECODE(MSU_RESULT, '2', 1, 0)) bu + , 0 as seo , SUM(DECODE(MSU_RESULT, '1', 1, 0)) mibu , SUM(DECODE(MSU_RESULT, '1', 1, '2', 1, 0)) tot + , MU.name FROM min_simsa680_sc MSS, min_simsa_user680_sc MSU, min_userinfo MU