fix: 거주자/장애인 심의대상 등록 fix

dev
minuk926 3 years ago
parent 1791da1059
commit c791e76ad1

@ -40,14 +40,15 @@
where sc_code = #{scCode} where sc_code = #{scCode}
</insert> </insert>
<select id="selectTotByJudgeTeamAndChasu" parameterType="com.xit.biz.ctgy.dto.JudgeListDto" resultType="camelCaseMap"> <select id="selectTotByJudgeTeamAndChasu" parameterType="com.xit.biz.ctgy.dto.JudgeListDto" resultType="camelCaseLinkedMap">
/* residentanddisabled-mapper|selectTotByJudgeTeamAndChasu|julim */ /* residentanddisabled-mapper|selectTotByJudgeTeamAndChasu|julim */
SELECT MSV.msu_team SELECT MSV.msu_team
, '결과' as name
, NVL(SUM(DECODE(MSS.ms_result, '2', 1, 0)), 0) bu , 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, 0)), 0) mibu
, NVL(SUM(DECODE(MSS.ms_result, '1', 1, '2', 1, 0)), 0) tot , 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 msu680_sc_view MSV
WHERE MSS.ms_maincode = MSV.msu_maincode WHERE MSS.ms_maincode = MSV.msu_maincode
<if test='msuTeam != null and msuTeam != ""'> <if test='msuTeam != null and msuTeam != ""'>
@ -60,13 +61,13 @@
GROUP BY MSV.msu_team, MSS.ms_chasu GROUP BY MSV.msu_team, MSS.ms_chasu
</select> </select>
<select id="selectTotJudgeUsersByJudgeTeamAndChasu" parameterType="com.xit.biz.ctgy.dto.JudgeListDto" resultType="camelCaseMap"> <select id="selectTotJudgeUsersByJudgeTeamAndChasu" parameterType="com.xit.biz.ctgy.dto.JudgeListDto" resultType="camelCaseLinkedMap">
/* residentanddisabled-mapper|selectTotJudgeUsersByJudgeTeamAndChasu|julim */ /* residentanddisabled-mapper|selectTotJudgeUsersByJudgeTeamAndChasu|julim */
SELECT MSU.msu_userid SELECT SUM(DECODE(MSU_RESULT, '2', 1, 0)) bu
, MU.name , 0 as seo
, SUM(DECODE(MSU_RESULT, '2', 1, 0)) bu
, SUM(DECODE(MSU_RESULT, '1', 1, 0)) mibu , SUM(DECODE(MSU_RESULT, '1', 1, 0)) mibu
, SUM(DECODE(MSU_RESULT, '1', 1, '2', 1, 0)) tot , SUM(DECODE(MSU_RESULT, '1', 1, '2', 1, 0)) tot
, MU.name
FROM min_simsa680_sc MSS, FROM min_simsa680_sc MSS,
min_simsa_user680_sc MSU, min_simsa_user680_sc MSU,
min_userinfo MU min_userinfo MU

Loading…
Cancel
Save