|
|
|
@ -491,19 +491,19 @@
|
|
|
|
|
, MS.ms_seq AS msSeq
|
|
|
|
|
, MS.ms_carnum AS msCarnum
|
|
|
|
|
, MU.name
|
|
|
|
|
, MS.ms_result AS msResult
|
|
|
|
|
, DECODE(MS.ms_result, '1', '1', '2', '2', '0') AS msResult
|
|
|
|
|
, (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 = MS.ms_result) as msResultNm
|
|
|
|
|
AND code_cd = DECODE(MS.ms_result, '1', '1', '2', '2', '0')) as msResultNm
|
|
|
|
|
, (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 msuResult
|
|
|
|
|
AND code_cd = DECODE(MSU.msu_result, '1', '1', '2', '2', '0')) as msuResult
|
|
|
|
|
FROM min_simsa680_sc MS
|
|
|
|
|
, min_simsa_user680_sc MSU
|
|
|
|
|
, min_userinfo MU
|
|
|
|
@ -567,28 +567,12 @@
|
|
|
|
|
ORDER BY GRC.sc_seq
|
|
|
|
|
</native-query>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<native-query id="selectDashboardJudgeList">
|
|
|
|
|
/* residentAndDisabled-mapper|selectDashboardJudgeList|julim */
|
|
|
|
|
SELECT MS.ms_edate
|
|
|
|
|
, MSU.msu_team
|
|
|
|
|
, MU.name
|
|
|
|
|
, SUM(DECODE(MSU.msu_result, 0, 0, 1)) jcnt
|
|
|
|
|
, SUM(DECODE(MSU.msu_result, '1', 1, '2', 1, 0)) jcnt
|
|
|
|
|
, COUNT(*) tcnt
|
|
|
|
|
FROM min_simsa680_sc MS
|
|
|
|
|
, min_simsa_user680_sc MSU
|
|
|
|
@ -597,11 +581,11 @@
|
|
|
|
|
FROM (SELECT ms_edate
|
|
|
|
|
FROM min_simsa680_sc
|
|
|
|
|
WHERE ms_datagb = #{msDatagb}
|
|
|
|
|
AND ms_result = '0'
|
|
|
|
|
AND DECODE(ms_result, '1', '1', '2', '2', '0') = '0'
|
|
|
|
|
ORDER BY ms_edate DESC)
|
|
|
|
|
WHERE ROWNUM = 1) T
|
|
|
|
|
WHERE MS.ms_datagb = #{msDatagb}
|
|
|
|
|
AND MS.ms_result = '0'
|
|
|
|
|
AND DECODE(MS.ms_result, '1', '1', '2', '2', '0') = '0'
|
|
|
|
|
AND MS.ms_maincode = MSU.msu_maincode
|
|
|
|
|
AND MSU.msu_userid = MU.userid
|
|
|
|
|
AND MS.ms_edate = T.ms_edate
|
|
|
|
@ -614,7 +598,7 @@
|
|
|
|
|
SELECT MS.ms_maincode
|
|
|
|
|
, MS.ms_seq
|
|
|
|
|
, MS.ms_carnum
|
|
|
|
|
, MS.ms_result
|
|
|
|
|
, DECODE(MS.ms_result, '1', '1', '2', '2', '0') as msResult
|
|
|
|
|
, MS.ms_year
|
|
|
|
|
, MS.ms_chasu
|
|
|
|
|
, MS.ms_sdate
|
|
|
|
@ -624,7 +608,7 @@
|
|
|
|
|
, MS.ms_closesi
|
|
|
|
|
, MS.ms_datagb
|
|
|
|
|
, MSU.msu_code
|
|
|
|
|
, MSU.msu_result
|
|
|
|
|
, DECODE(MSU.msu_result, '1', '1', '2', '2', '0') as msuResult
|
|
|
|
|
, MSU.msu_reason
|
|
|
|
|
, GR.sc_wdate
|
|
|
|
|
, GR.sc_pos
|
|
|
|
|