|
|
|
@ -40,13 +40,14 @@
|
|
|
|
|
where sc_code = #{scCode}
|
|
|
|
|
</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 */
|
|
|
|
|
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
|
|
|
|
|
, '결과' 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
|
|
|
|
|
</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 */
|
|
|
|
|
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
|
|
|
|
|