|
|
@ -40,9 +40,14 @@
|
|
|
|
where sc_code = #{scCode}
|
|
|
|
where sc_code = #{scCode}
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectTotByJudgeTeamAndChasu" parameterType="com.xit.biz.ctgy.dto.JudgeListDto" resultType="camelCaseLinkedMap">
|
|
|
|
<select id="selectTotJudgeResultGroupByTeamAndChasu" parameterType="com.xit.biz.ctgy.dto.JudgeListDto" resultType="camelCaseLinkedMap">
|
|
|
|
/* residentanddisabled-mapper|selectTotByJudgeTeamAndChasu|julim */
|
|
|
|
/* residentanddisabled-mapper|selectTotJudgeResultGroupByTeamAndChasu|julim */
|
|
|
|
SELECT MSV.msu_team
|
|
|
|
SELECT <if test='msuTeam != null and msuTeam != ""'>
|
|
|
|
|
|
|
|
MSV.msu_team
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test='msuTeam == null or msuTeam == ""'>
|
|
|
|
|
|
|
|
''
|
|
|
|
|
|
|
|
</if>
|
|
|
|
, 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
|
|
|
|
, 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
|
|
|
@ -61,8 +66,29 @@
|
|
|
|
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="camelCaseLinkedMap">
|
|
|
|
<select id="selectJudgeTeamGroupByChasuAndTeamList" parameterType="com.xit.biz.ctgy.dto.JudgeListDto" resultType="camelCaseLinkedMap">
|
|
|
|
/* residentanddisabled-mapper|selectTotJudgeUsersByJudgeTeamAndChasu|julim */
|
|
|
|
/* residentanddisabled-mapper|selectJudgeTeamGroupByChasuAndTeamList|julim */
|
|
|
|
|
|
|
|
SELECT MSV.msu_team
|
|
|
|
|
|
|
|
, 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
|
|
|
|
|
|
|
|
<if test='msuTeam != null and msuTeam != ""'>
|
|
|
|
|
|
|
|
AND MSV.msu_team = #{msuTeam}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
AND MSS.ms_chasu = #{msChasu}
|
|
|
|
|
|
|
|
AND MSS.ms_sdate >= #{msSdate}
|
|
|
|
|
|
|
|
AND MSS.ms_edate <= #{msEdate}
|
|
|
|
|
|
|
|
GROUP BY MSS.ms_chasu, MSV.msu_team
|
|
|
|
|
|
|
|
ORDER BY MSS.ms_chasu, MSV.msu_team
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectTotJudgeResultGroupByUser" parameterType="com.xit.biz.ctgy.dto.JudgeListDto" resultType="camelCaseLinkedMap">
|
|
|
|
|
|
|
|
/* residentanddisabled-mapper|selectTotJudgeResultGroupByUser|julim */
|
|
|
|
SELECT SUM(DECODE(MSU_RESULT, '2', 1, 0)) bu
|
|
|
|
SELECT SUM(DECODE(MSU_RESULT, '2', 1, 0)) bu
|
|
|
|
, 0 as seo
|
|
|
|
, 0 as seo
|
|
|
|
, SUM(DECODE(MSU_RESULT, '1', 1, 0)) mibu
|
|
|
|
, SUM(DECODE(MSU_RESULT, '1', 1, 0)) mibu
|
|
|
@ -76,14 +102,16 @@
|
|
|
|
AND MSS.ms_chasu = #{msChasu}
|
|
|
|
AND MSS.ms_chasu = #{msChasu}
|
|
|
|
AND MSS.ms_sdate >= #{msSdate}
|
|
|
|
AND MSS.ms_sdate >= #{msSdate}
|
|
|
|
AND MSS.ms_edate <= #{msEdate}
|
|
|
|
AND MSS.ms_edate <= #{msEdate}
|
|
|
|
AND MSU.msu_team = #{msuTeam}
|
|
|
|
|
|
|
|
AND MSU.msu_userid = MU.userid
|
|
|
|
AND MSU.msu_userid = MU.userid
|
|
|
|
|
|
|
|
<if test='msuTeam != null and msuTeam != ""'>
|
|
|
|
|
|
|
|
AND MSU.msu_team = #{msuTeam}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
GROUP BY MSU.msu_userid, MU.name
|
|
|
|
GROUP BY MSU.msu_userid, MU.name
|
|
|
|
ORDER BY MSU.msu_userid, MU.name
|
|
|
|
ORDER BY MSU.msu_userid, MU.name
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectJudgeTargetByCarnum" parameterType="com.xit.biz.ctgy.dto.JudgeListDto" resultType="camelCaseLinkedMap">
|
|
|
|
<select id="selectJudgeResultGroupByCarnum" parameterType="com.xit.biz.ctgy.dto.JudgeListDto" resultType="camelCaseLinkedMap">
|
|
|
|
/* residentanddisabled-mapper|selectJudgeTargetByCarnum|julim */
|
|
|
|
/* residentanddisabled-mapper|selectJudgeResultGroupByCarnum|julim */
|
|
|
|
SELECT MSS.ms_maincode
|
|
|
|
SELECT MSS.ms_maincode
|
|
|
|
, MSS.ms_seq
|
|
|
|
, MSS.ms_seq
|
|
|
|
, MSS.ms_carnum
|
|
|
|
, MSS.ms_carnum
|
|
|
@ -94,12 +122,14 @@
|
|
|
|
AND MSS.ms_chasu = #{msChasu}
|
|
|
|
AND MSS.ms_chasu = #{msChasu}
|
|
|
|
AND MSS.ms_sdate >= #{msSdate}
|
|
|
|
AND MSS.ms_sdate >= #{msSdate}
|
|
|
|
AND MSS.ms_edate <= #{msEdate}
|
|
|
|
AND MSS.ms_edate <= #{msEdate}
|
|
|
|
|
|
|
|
<if test='msuTeam != null and msuTeam != ""'>
|
|
|
|
AND MSU.msu_team = #{msuTeam}
|
|
|
|
AND MSU.msu_team = #{msuTeam}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
GROUP BY MSS.ms_maincode, MSS.ms_seq, MSS.ms_carnum
|
|
|
|
GROUP BY MSS.ms_maincode, MSS.ms_seq, MSS.ms_carnum
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectJudgeResultByCarnum" parameterType="map" resultType="camelCaseLinkedMap">
|
|
|
|
<select id="selectJudgeResultList" parameterType="map" resultType="camelCaseLinkedMap">
|
|
|
|
/* residentanddisabled-mapper|selectJudgeResultByCarnum|julim */
|
|
|
|
/* residentanddisabled-mapper|selectJudgeResultList|julim */
|
|
|
|
SELECT MSS.ms_maincode
|
|
|
|
SELECT MSS.ms_maincode
|
|
|
|
, MSS.ms_seq
|
|
|
|
, MSS.ms_seq
|
|
|
|
, MSS.ms_carnum
|
|
|
|
, MSS.ms_carnum
|
|
|
@ -126,7 +156,9 @@
|
|
|
|
AND MSS.ms_edate <= #{msEdate}
|
|
|
|
AND MSS.ms_edate <= #{msEdate}
|
|
|
|
AND MSS.ms_seq = #{msSeq}
|
|
|
|
AND MSS.ms_seq = #{msSeq}
|
|
|
|
AND MSS.ms_carnum = #{msCarnum}
|
|
|
|
AND MSS.ms_carnum = #{msCarnum}
|
|
|
|
|
|
|
|
<if test='msuTeam != null and msuTeam != ""'>
|
|
|
|
AND MSU.msu_team = #{msuTeam}
|
|
|
|
AND MSU.msu_team = #{msuTeam}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
AND MSU.msu_userid = MU.userid
|
|
|
|
AND MSU.msu_userid = MU.userid
|
|
|
|
ORDER BY MSU.msu_userid, MU.name
|
|
|
|
ORDER BY MSU.msu_userid, MU.name
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|