|
|
@ -53,8 +53,8 @@
|
|
|
|
, 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
|
|
|
|
, '결과' as name
|
|
|
|
, '결과' as name
|
|
|
|
FROM min_simsa680_sc MSS,
|
|
|
|
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 != ""'>
|
|
|
|
AND MSV.msu_team = #{msuTeam}
|
|
|
|
AND MSV.msu_team = #{msuTeam}
|
|
|
@ -74,8 +74,8 @@
|
|
|
|
, 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
|
|
|
|
, '결과' as name
|
|
|
|
, '결과' as name
|
|
|
|
FROM min_simsa680_sc MSS,
|
|
|
|
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 != ""'>
|
|
|
|
AND MSV.msu_team = #{msuTeam}
|
|
|
|
AND MSV.msu_team = #{msuTeam}
|
|
|
@ -94,9 +94,9 @@
|
|
|
|
, 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
|
|
|
|
, 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
|
|
|
|
WHERE MSS.ms_maincode = MSU.msu_maincode
|
|
|
|
WHERE MSS.ms_maincode = MSU.msu_maincode
|
|
|
|
AND MSS.ms_datagb = #{msDatagb}
|
|
|
|
AND MSS.ms_datagb = #{msDatagb}
|
|
|
|
AND MSS.ms_chasu = #{msChasu}
|
|
|
|
AND MSS.ms_chasu = #{msChasu}
|
|
|
@ -115,20 +115,64 @@
|
|
|
|
SELECT MSS.ms_maincode
|
|
|
|
SELECT MSS.ms_maincode
|
|
|
|
, MSS.ms_seq
|
|
|
|
, MSS.ms_seq
|
|
|
|
, MSS.ms_carnum
|
|
|
|
, MSS.ms_carnum
|
|
|
|
FROM min_simsa680_sc MSS,
|
|
|
|
FROM min_simsa680_sc MSS
|
|
|
|
min_simsa_user680_sc MSU
|
|
|
|
, min_simsa_user680_sc MSU
|
|
|
|
|
|
|
|
WHERE MSS.ms_maincode = MSU.msu_maincode
|
|
|
|
|
|
|
|
AND MSS.ms_datagb = #{msDatagb}
|
|
|
|
|
|
|
|
AND MSS.ms_chasu = #{msChasu}
|
|
|
|
|
|
|
|
AND MSS.ms_sdate >= #{msSdate}
|
|
|
|
|
|
|
|
AND MSS.ms_edate <= #{msEdate}
|
|
|
|
|
|
|
|
<if test='msuTeam != null and msuTeam != ""'>
|
|
|
|
|
|
|
|
AND MSU.msu_team = #{msuTeam}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
GROUP BY MSS.ms_maincode, MSS.ms_seq, MSS.ms_carnum
|
|
|
|
|
|
|
|
ORDER BY MSS.ms_maincode, MSS.ms_seq, MSS.ms_carnum
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectJudgeResultList" parameterType="map" resultType="camelCaseLinkedMap">
|
|
|
|
|
|
|
|
/* residentanddisabled-mapper|selectJudgeResultList2|julim */
|
|
|
|
|
|
|
|
SELECT MSS.ms_maincode
|
|
|
|
|
|
|
|
, MSS.ms_seq
|
|
|
|
|
|
|
|
, MSS.ms_carnum
|
|
|
|
|
|
|
|
, MU.name
|
|
|
|
|
|
|
|
, (SELECT code_nm
|
|
|
|
|
|
|
|
FROM tb_cmm_code_s
|
|
|
|
|
|
|
|
WHERE code_grp_id = 'TRAFFIC'
|
|
|
|
|
|
|
|
AND code_lcd = 'GANGNAM_SIMSA'
|
|
|
|
|
|
|
|
AND code_mcd = 'RESULT'
|
|
|
|
|
|
|
|
AND code_cd = MSS.ms_result) as ms_result
|
|
|
|
|
|
|
|
, (SELECT code_nm
|
|
|
|
|
|
|
|
FROM tb_cmm_code_s
|
|
|
|
|
|
|
|
WHERE code_grp_id = 'TRAFFIC'
|
|
|
|
|
|
|
|
AND code_lcd = 'GANGNAM_SIMSA'
|
|
|
|
|
|
|
|
AND code_mcd = 'RESULT'
|
|
|
|
|
|
|
|
AND code_cd = MSU.msu_result) as msu_result
|
|
|
|
|
|
|
|
FROM min_simsa680_sc MSS
|
|
|
|
|
|
|
|
, min_simsa_user680_sc MSU
|
|
|
|
|
|
|
|
, min_userinfo MU
|
|
|
|
WHERE MSS.ms_maincode = MSU.msu_maincode
|
|
|
|
WHERE MSS.ms_maincode = MSU.msu_maincode
|
|
|
|
AND MSS.ms_datagb = #{msDatagb}
|
|
|
|
AND MSS.ms_datagb = #{msDatagb}
|
|
|
|
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 MSS.ms_seq in (
|
|
|
|
|
|
|
|
<foreach collection="seqList" item="seq" separator=",">
|
|
|
|
|
|
|
|
#{seq}
|
|
|
|
|
|
|
|
</foreach>
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
AND MSS.ms_carnum in (
|
|
|
|
|
|
|
|
<foreach collection="carnumList" item="carnum" separator=",">
|
|
|
|
|
|
|
|
#{carnum}
|
|
|
|
|
|
|
|
</foreach>
|
|
|
|
|
|
|
|
)
|
|
|
|
<if test='msuTeam != null and msuTeam != ""'>
|
|
|
|
<if test='msuTeam != null and msuTeam != ""'>
|
|
|
|
AND MSU.msu_team = #{msuTeam}
|
|
|
|
AND MSU.msu_team = #{msuTeam}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
GROUP BY MSS.ms_maincode, MSS.ms_seq, MSS.ms_carnum
|
|
|
|
AND MSU.msu_userid = MU.userid
|
|
|
|
|
|
|
|
ORDER BY MSU.msu_userid, MU.name, MSS.ms_maincode, MSS.ms_seq, MSS.ms_carnum
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectJudgeResultList" parameterType="map" resultType="camelCaseLinkedMap">
|
|
|
|
<select id="selectJudgeResultList2" parameterType="map" resultType="camelCaseLinkedMap">
|
|
|
|
/* residentanddisabled-mapper|selectJudgeResultList|julim */
|
|
|
|
/* residentanddisabled-mapper|selectJudgeResultList|julim */
|
|
|
|
SELECT MSS.ms_maincode
|
|
|
|
SELECT MSS.ms_maincode
|
|
|
|
, MSS.ms_seq
|
|
|
|
, MSS.ms_seq
|
|
|
@ -146,9 +190,9 @@
|
|
|
|
AND code_lcd = 'GANGNAM_SIMSA'
|
|
|
|
AND code_lcd = 'GANGNAM_SIMSA'
|
|
|
|
AND code_mcd = 'RESULT'
|
|
|
|
AND code_mcd = 'RESULT'
|
|
|
|
AND code_cd = MSU.msu_result) as msu_result
|
|
|
|
AND code_cd = MSU.msu_result) as msu_result
|
|
|
|
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
|
|
|
|
WHERE MSS.ms_maincode = MSU.msu_maincode
|
|
|
|
WHERE MSS.ms_maincode = MSU.msu_maincode
|
|
|
|
AND MSS.ms_datagb = #{msDatagb}
|
|
|
|
AND MSS.ms_datagb = #{msDatagb}
|
|
|
|
AND MSS.ms_chasu = #{msChasu}
|
|
|
|
AND MSS.ms_chasu = #{msChasu}
|
|
|
@ -160,6 +204,6 @@
|
|
|
|
AND MSU.msu_team = #{msuTeam}
|
|
|
|
AND MSU.msu_team = #{msuTeam}
|
|
|
|
</if>
|
|
|
|
</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, MSS.ms_maincode, MSS.ms_seq, MSS.ms_carnum
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|