|
|
@ -1,8 +1,8 @@
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<entity-mappings namespace="residentAndDisabled">
|
|
|
|
<entity-mappings namespace="residentAndDisabled">
|
|
|
|
|
|
|
|
|
|
|
|
<native-query id="selectParkingList">
|
|
|
|
<native-query id="selectJudgeList">
|
|
|
|
/* residentAndDisabled-mapper|selectParkingList|julim */
|
|
|
|
/* residentAndDisabled-mapper|selectJudgeList|julim */
|
|
|
|
SELECT ms_year,
|
|
|
|
SELECT ms_year,
|
|
|
|
ms_chasu,
|
|
|
|
ms_chasu,
|
|
|
|
ms_sdate,
|
|
|
|
ms_sdate,
|
|
|
@ -10,6 +10,7 @@
|
|
|
|
ms_edate,
|
|
|
|
ms_edate,
|
|
|
|
ms_cdate,
|
|
|
|
ms_cdate,
|
|
|
|
ms_closesi,
|
|
|
|
ms_closesi,
|
|
|
|
|
|
|
|
ms_datagb
|
|
|
|
cnt
|
|
|
|
cnt
|
|
|
|
FROM (
|
|
|
|
FROM (
|
|
|
|
SELECT R.*, ROWNUM rn
|
|
|
|
SELECT R.*, ROWNUM rn
|
|
|
@ -21,13 +22,15 @@
|
|
|
|
ms_edate,
|
|
|
|
ms_edate,
|
|
|
|
ms_cdate,
|
|
|
|
ms_cdate,
|
|
|
|
ms_closesi,
|
|
|
|
ms_closesi,
|
|
|
|
|
|
|
|
ms_datagb,
|
|
|
|
count(ms_maincode) AS cnt
|
|
|
|
count(ms_maincode) AS cnt
|
|
|
|
FROM min_simsa680
|
|
|
|
FROM min_simsa680_sc
|
|
|
|
WHERE ms_year = #{msYear}
|
|
|
|
WHERE ms_year = #{msYear}
|
|
|
|
|
|
|
|
AND ms_datagb = #{msDatagb}
|
|
|
|
<if test="msChasu != null and msChasu != ''">
|
|
|
|
<if test="msChasu != null and msChasu != ''">
|
|
|
|
AND ms_chasu = #{msChasu}
|
|
|
|
AND ms_chasu = #{msChasu}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
GROUP BY ms_year, ms_chasu, ms_sdate, ms_startsi, ms_edate, ms_cdate, ms_closesi
|
|
|
|
GROUP BY ms_year, ms_datagb, ms_chasu, ms_sdate, ms_startsi, ms_edate, ms_cdate, ms_closesi
|
|
|
|
ORDER BY ms_year DESC, ms_chasu DESC
|
|
|
|
ORDER BY ms_year DESC, ms_chasu DESC
|
|
|
|
) R
|
|
|
|
) R
|
|
|
|
WHERE ROWNUM <= (#{page} + 1) * #{size}
|
|
|
|
WHERE ROWNUM <= (#{page} + 1) * #{size}
|
|
|
@ -36,20 +39,56 @@
|
|
|
|
AND ROWNUM <= #{size}
|
|
|
|
AND ROWNUM <= #{size}
|
|
|
|
</native-query>
|
|
|
|
</native-query>
|
|
|
|
|
|
|
|
|
|
|
|
<native-query id="selectParkingListCnt">
|
|
|
|
<native-query id="selectJudgeListCnt">
|
|
|
|
/* residentAndDisabled-mapper|selectParkingListCnt|julim */
|
|
|
|
/* residentAndDisabled-mapper|selectJudgeListCnt|julim */
|
|
|
|
SELECT count(*) AS totalCount
|
|
|
|
SELECT count(*) AS totalCount
|
|
|
|
FROM (
|
|
|
|
FROM (
|
|
|
|
SELECT ms_year
|
|
|
|
SELECT ms_year
|
|
|
|
FROM min_simsa680
|
|
|
|
FROM min_simsa680_sc
|
|
|
|
WHERE ms_year = #{msYear}
|
|
|
|
WHERE ms_year = #{msYear}
|
|
|
|
|
|
|
|
AND ms_datagb = #{msDatagb}
|
|
|
|
<if test="msChasu != null and msChasu != ''">
|
|
|
|
<if test="msChasu != null and msChasu != ''">
|
|
|
|
AND ms_chasu = #{msChasu}
|
|
|
|
AND ms_chasu = #{msChasu}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
GROUP BY ms_year, ms_chasu, ms_sdate, ms_startsi, ms_edate, ms_cdate, ms_closesi
|
|
|
|
GROUP BY ms_year, ms_datagb, ms_chasu, ms_sdate, ms_startsi, ms_edate, ms_cdate, ms_closesi
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</native-query>
|
|
|
|
</native-query>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* -------------------- 심의목록 삭제 ------------------------- */
|
|
|
|
|
|
|
|
<native-query id="selectRemoveJudgeTgtList">
|
|
|
|
|
|
|
|
/* residentAndDisabled-mapper|selectRemoveJudgeTgtList|julim */
|
|
|
|
|
|
|
|
SELECT ms_maincode
|
|
|
|
|
|
|
|
FROM min_simsa680_sc
|
|
|
|
|
|
|
|
WHERE ms_datagb = #{msDatagb}
|
|
|
|
|
|
|
|
AND ms_chasu = #{msChasu}
|
|
|
|
|
|
|
|
AND ms_Sdate = #{msSdate}
|
|
|
|
|
|
|
|
AND ms_Edate = #{msEdate}
|
|
|
|
|
|
|
|
</native-query>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<native-query id="deleteJudgeUser">
|
|
|
|
|
|
|
|
/* residentAndDisabled-mapper|deleteJudgeUser|julim */
|
|
|
|
|
|
|
|
DELETE
|
|
|
|
|
|
|
|
FROM min_simsa_user680_sc
|
|
|
|
|
|
|
|
WHERE msu_maincode = #{msMaincode}
|
|
|
|
|
|
|
|
</native-query>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<native-query id="deleteJudgeTgt">
|
|
|
|
|
|
|
|
/* residentAndDisabled-mapper|deleteJudgeTgt|julim */
|
|
|
|
|
|
|
|
DELETE
|
|
|
|
|
|
|
|
FROM min_simsa680_sc
|
|
|
|
|
|
|
|
WHERE ms_maincode = #{msMaincode}
|
|
|
|
|
|
|
|
</native-query>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<native-query id="updateJudgeTgtReset">
|
|
|
|
|
|
|
|
/* residentAndDisabled-mapper|updateJudgeTgtReset|julim */
|
|
|
|
|
|
|
|
UPDATE gn_recall_sc_sc
|
|
|
|
|
|
|
|
SET sc_transfer = '1'
|
|
|
|
|
|
|
|
SET sc_state = '1'
|
|
|
|
|
|
|
|
WHERE sc_datagb = #{scDatagb}
|
|
|
|
|
|
|
|
AND sc_code = #{msMaincode}
|
|
|
|
|
|
|
|
</native-query>
|
|
|
|
|
|
|
|
/* -------------------- 심의목록 삭제 ------------------------- */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<native-query id="insertJudgeTargetIntoSelect">
|
|
|
|
<native-query id="insertJudgeTargetIntoSelect">
|
|
|
|
/* residentAndDisabled-mapper|insertJudgeTargetIntoSelect|julim */
|
|
|
|
/* residentAndDisabled-mapper|insertJudgeTargetIntoSelect|julim */
|
|
|
@ -117,50 +156,42 @@
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</native-query>
|
|
|
|
</native-query>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<native-query id="selectTotJudgeResultGroupByTeamAndChasu">
|
|
|
|
|
|
|
|
/* residentAndDisabled-mapper|selectTotJudgeResultGroupByTeamAndChasu|julim */
|
|
|
|
|
|
|
|
SELECT MS.msu_team AS msuTeam
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<native-query id="selectTotParkingJudgeResultGroupByTeamAndChasu">
|
|
|
|
|
|
|
|
/* residentAndDisabled-mapper|selectTotParkingJudgeResultGroupByTeamAndChasu|julim */
|
|
|
|
|
|
|
|
SELECT msu_team AS msuTeam
|
|
|
|
|
|
|
|
, NVL(SUM(DECODE(MS.ms_result, '2', 1, 0)), 0) bu
|
|
|
|
, NVL(SUM(DECODE(MS.ms_result, '2', 1, 0)), 0) bu
|
|
|
|
, 0 as seo
|
|
|
|
, 0 as seo
|
|
|
|
, NVL(SUM(DECODE(MS.ms_result, '1', 1, 0)), 0) mibu
|
|
|
|
, NVL(SUM(DECODE(MS.ms_result, '1', 1, 0)), 0) mibu
|
|
|
|
, NVL(SUM(DECODE(MS.ms_result, '1', 1, '2', 1, 0)), 0) tot
|
|
|
|
, NVL(SUM(DECODE(MS.ms_result, '1', 1, '2', 1, 0)), 0) tot
|
|
|
|
, '결과' as name
|
|
|
|
, '결과' as name
|
|
|
|
FROM min_simsa680 MS
|
|
|
|
FROM min_simsa680_sc MS
|
|
|
|
, msu680_view MV
|
|
|
|
, msu680_view MV
|
|
|
|
WHERE MS.ms_maincode = MV.msu_maincode
|
|
|
|
WHERE MS.ms_maincode = MV.msu_maincode
|
|
|
|
<if test="msuTeam != null and msuTeam != ''">
|
|
|
|
<if test="msuTeam != null and msuTeam != ''">
|
|
|
|
AND MV.msu_team = #{msuTeam}
|
|
|
|
AND MV.msu_team = #{msuTeam}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
AND MS.ms_datagb = #{msDatagb}
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_sdate = #{msSdate}
|
|
|
|
AND MS.ms_sdate = #{msSdate}
|
|
|
|
AND MS.ms_edate = #{msEdate}
|
|
|
|
AND MS.ms_edate = #{msEdate}
|
|
|
|
GROUP BY MV.msu_team, MS.ms_chasu
|
|
|
|
GROUP BY MV.msu_team, MS.ms_chasu
|
|
|
|
</native-query>
|
|
|
|
</native-query>
|
|
|
|
|
|
|
|
|
|
|
|
<native-query id="selectParkingJudgeTeamGroupByChasuAndTeamList">
|
|
|
|
<native-query id="selectJudgeTeamGroupByChasuAndTeamList">
|
|
|
|
/* residentAndDisabled-mapper|selectParkingJudgeTeamGroupByChasuAndTeamList|julim */
|
|
|
|
/* residentAndDisabled-mapper|selectJudgeTeamGroupByChasuAndTeamList|julim */
|
|
|
|
SELECT MV.msu_team AS msuTeam
|
|
|
|
SELECT MV.msu_team AS msuTeam
|
|
|
|
, NVL(SUM(DECODE(MS.ms_result, '2', 1, 0)), 0) bu
|
|
|
|
, NVL(SUM(DECODE(MS.ms_result, '2', 1, 0)), 0) bu
|
|
|
|
, 0 as seo
|
|
|
|
, 0 as seo
|
|
|
|
, NVL(SUM(DECODE(MS.ms_result, '1', 1, 0)), 0) mibu
|
|
|
|
, NVL(SUM(DECODE(MS.ms_result, '1', 1, 0)), 0) mibu
|
|
|
|
, NVL(SUM(DECODE(MS.ms_result, '1', 1, '2', 1, 0)), 0) tot
|
|
|
|
, NVL(SUM(DECODE(MS.ms_result, '1', 1, '2', 1, 0)), 0) tot
|
|
|
|
, '결과' as name
|
|
|
|
, '결과' as name
|
|
|
|
FROM min_simsa680 MS
|
|
|
|
FROM min_simsa680_sc MS
|
|
|
|
, msu680_view MV
|
|
|
|
, msu680_view MV
|
|
|
|
WHERE MS.ms_maincode = MV.msu_maincode
|
|
|
|
WHERE MS.ms_maincode = MV.msu_maincode
|
|
|
|
<if test='msuTeam != null and msuTeam != ""'>
|
|
|
|
<if test='msuTeam != null and msuTeam != ""'>
|
|
|
|
AND MV.msu_team = #{msuTeam}
|
|
|
|
AND MV.msu_team = #{msuTeam}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
AND MS.ms_datagb = #{msDatagb}
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_sdate = #{msSdate}
|
|
|
|
AND MS.ms_sdate = #{msSdate}
|
|
|
|
AND MS.ms_edate = #{msEdate}
|
|
|
|
AND MS.ms_edate = #{msEdate}
|
|
|
@ -168,17 +199,18 @@
|
|
|
|
ORDER BY MS.ms_chasu, MV.msu_team
|
|
|
|
ORDER BY MS.ms_chasu, MV.msu_team
|
|
|
|
</native-query>
|
|
|
|
</native-query>
|
|
|
|
|
|
|
|
|
|
|
|
<native-query id="selectTotParkingJudgeResultGroupByUser">
|
|
|
|
<native-query id="selectTotJudgeResultGroupByUser">
|
|
|
|
/* residentAndDisabled-mapper|selectTotParkingJudgeResultByUser|julim */
|
|
|
|
/* residentAndDisabled-mapper|selectTotJudgeResultByUser|julim */
|
|
|
|
SELECT SUM(DECODE(MSU_RESULT, '2', 1, 0)) as bu
|
|
|
|
SELECT SUM(DECODE(MSU.MSU_RESULT, '2', 1, 0)) as bu
|
|
|
|
, 0 as seo
|
|
|
|
, 0 as seo
|
|
|
|
, SUM(DECODE(MSU_RESULT, '1', 1, 0)) as mibu
|
|
|
|
, SUM(DECODE(MSU.MSU_RESULT, '1', 1, 0)) as mibu
|
|
|
|
, SUM(DECODE(MSU_RESULT, '1', 1, '2', 1, 0)) as tot
|
|
|
|
, SUM(DECODE(MSU.MSU_RESULT, '1', 1, '2', 1, 0)) as tot
|
|
|
|
, MU.name
|
|
|
|
, MU.name
|
|
|
|
FROM min_simsa680 MS
|
|
|
|
FROM min_simsa680_sc MS
|
|
|
|
, min_simsa_user680 MSU
|
|
|
|
, min_simsa_user680 MSU
|
|
|
|
, min_userinfo MU
|
|
|
|
, min_userinfo MU
|
|
|
|
WHERE MS.ms_maincode = MSU.msu_maincode
|
|
|
|
WHERE MS.ms_maincode = MSU.msu_maincode
|
|
|
|
|
|
|
|
AND MS.ms_datagb = #{msDatagb}
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_sdate = #{msSdate}
|
|
|
|
AND MS.ms_sdate = #{msSdate}
|
|
|
|
AND MS.ms_edate = #{msEdate}
|
|
|
|
AND MS.ms_edate = #{msEdate}
|
|
|
@ -190,14 +222,15 @@
|
|
|
|
ORDER BY MSU.msu_userid, MU.name
|
|
|
|
ORDER BY MSU.msu_userid, MU.name
|
|
|
|
</native-query>
|
|
|
|
</native-query>
|
|
|
|
|
|
|
|
|
|
|
|
<native-query id="selectParkingJurgeResultGroupByCarnum">
|
|
|
|
<native-query id="selectJurgeResultGroupByCarnum">
|
|
|
|
/* residentAndDisabled-mapper|selectParkingJurgeResultGroupByCarnum|julim */
|
|
|
|
/* residentAndDisabled-mapper|selectJurgeResultGroupByCarnum|julim */
|
|
|
|
SELECT MS.ms_maincode AS msMaincode
|
|
|
|
SELECT MS.ms_maincode AS msMaincode
|
|
|
|
, MS.ms_seq AS msSeq
|
|
|
|
, MS.ms_seq AS msSeq
|
|
|
|
, MS.ms_carnum AS msCarnum
|
|
|
|
, MS.ms_carnum AS msCarnum
|
|
|
|
FROM min_simsa680 MS
|
|
|
|
FROM min_simsa680_sc MS
|
|
|
|
, min_simsa_user680 MSU
|
|
|
|
, min_simsa_user680 MSU
|
|
|
|
WHERE MS.ms_maincode = MSU.msu_maincode
|
|
|
|
WHERE MS.ms_maincode = MSU.msu_maincode
|
|
|
|
|
|
|
|
AND MS.ms_datagb = #{msDatagb}
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_sdate = #{msSdate}
|
|
|
|
AND MS.ms_sdate = #{msSdate}
|
|
|
|
AND MS.ms_edate = #{msEdate}
|
|
|
|
AND MS.ms_edate = #{msEdate}
|
|
|
@ -208,8 +241,8 @@
|
|
|
|
ORDER BY MS.ms_maincode, MS.ms_seq, MS.ms_carnum
|
|
|
|
ORDER BY MS.ms_maincode, MS.ms_seq, MS.ms_carnum
|
|
|
|
</native-query>
|
|
|
|
</native-query>
|
|
|
|
|
|
|
|
|
|
|
|
<native-query id="selectParkingJudgeResultList">
|
|
|
|
<native-query id="selectJudgeResultList">
|
|
|
|
/* residentAndDisabled-mapper|selectParkingJudgeResultList|julim */
|
|
|
|
/* residentAndDisabled-mapper|selectJudgeResultList|julim */
|
|
|
|
SELECT MS.ms_maincode AS msMaincode
|
|
|
|
SELECT MS.ms_maincode AS msMaincode
|
|
|
|
, MS.ms_seq AS msSeq
|
|
|
|
, MS.ms_seq AS msSeq
|
|
|
|
, MS.ms_carnum AS msCarnum
|
|
|
|
, MS.ms_carnum AS msCarnum
|
|
|
@ -227,10 +260,11 @@
|
|
|
|
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 msuResult
|
|
|
|
AND code_cd = MSU.msu_result) as msuResult
|
|
|
|
FROM min_simsa680 MS
|
|
|
|
FROM min_simsa680_sc MS
|
|
|
|
, min_simsa_user680 MSU
|
|
|
|
, min_simsa_user680 MSU
|
|
|
|
, min_userinfo MU
|
|
|
|
, min_userinfo MU
|
|
|
|
WHERE MS.ms_maincode = MSU.msu_maincode
|
|
|
|
WHERE MS.ms_maincode = MSU.msu_maincode
|
|
|
|
|
|
|
|
AND MS.ms_datagb = #{msDatagb}
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_sdate = #{msSdate}
|
|
|
|
AND MS.ms_sdate = #{msSdate}
|
|
|
|
AND MS.ms_edate = #{msEdate}
|
|
|
|
AND MS.ms_edate = #{msEdate}
|
|
|
@ -243,18 +277,6 @@
|
|
|
|
ORDER BY MSU.msu_userid, MU.name, MS.ms_maincode, MS.ms_seq, MS.ms_carnum
|
|
|
|
ORDER BY MSU.msu_userid, MU.name, MS.ms_maincode, MS.ms_seq, MS.ms_carnum
|
|
|
|
</native-query>
|
|
|
|
</native-query>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<native-query id="selectJudegStdCount">
|
|
|
|
<native-query id="selectJudegStdCount">
|
|
|
|
/* residentAndDisabled-mapper|selectJudegStdCount|julim */
|
|
|
|
/* residentAndDisabled-mapper|selectJudegStdCount|julim */
|
|
|
|
SELECT count(msu_code)
|
|
|
|
SELECT count(msu_code)
|
|
|
|