|
|
@ -190,9 +190,11 @@
|
|
|
|
FROM (SELECT ms_edate
|
|
|
|
FROM (SELECT ms_edate
|
|
|
|
FROM min_simsa680_sc
|
|
|
|
FROM min_simsa680_sc
|
|
|
|
WHERE ms_datagb = #{msDatagb}
|
|
|
|
WHERE ms_datagb = #{msDatagb}
|
|
|
|
|
|
|
|
AND ms_result = '0'
|
|
|
|
ORDER BY ms_edate DESC)
|
|
|
|
ORDER BY ms_edate DESC)
|
|
|
|
WHERE ROWNUM = 1) T
|
|
|
|
WHERE ROWNUM = 1) T
|
|
|
|
WHERE MS.MS_DATAGB = #{msDatagb}
|
|
|
|
WHERE MS.MS_DATAGB = #{msDatagb}
|
|
|
|
|
|
|
|
AND MS.ms_result = '0'
|
|
|
|
AND MS.ms_maincode = MSU.msu_maincode
|
|
|
|
AND MS.ms_maincode = MSU.msu_maincode
|
|
|
|
AND MSU.msu_userid = MU.userid
|
|
|
|
AND MSU.msu_userid = MU.userid
|
|
|
|
AND MS.ms_edate = T.ms_edate
|
|
|
|
AND MS.ms_edate = T.ms_edate
|
|
|
|