fix: 정렬순서 변경 및 거주자,장애인 의견진술 인서트 항목 추가

- ms_maincode->ms_seq 순으로 변경
- gn_recall_sc 테이블 sc_transfer, sc_state 항목 추가
main
jiho83 2 years ago
parent 393a27fc4b
commit ecfa8391c5

@ -232,7 +232,7 @@
AND MSU.msu_team = #{msuTeam}
</if>
GROUP BY MS.ms_maincode, MS.ms_seq, MS.ms_carnum
ORDER BY MS.ms_maincode, MS.ms_seq, MS.ms_carnum
ORDER BY MS.ms_seq, MS.ms_maincode, MS.ms_carnum
</native-query>
<native-query id="selectParkingJudgeResultList">
@ -267,7 +267,7 @@
AND MSU.msu_team = #{msuTeam}
</if>
AND MSU.msu_userid = MU.userid
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_seq, MS.ms_maincode, MS.ms_carnum
</native-query>
<native-query id="selectJudegStdCount">

@ -165,7 +165,9 @@
sc_contad5,
sc_contad6,
sc_contad7,
sc_contad8
sc_contad8,
sc_transfer,
sc_state
) VALUES (
gn_recall_sc_seq.NEXTVAL,
(SELECT RPAD(NVL(MAX(e.sc_seq), '2022'), 10, '0') + 1
@ -201,7 +203,9 @@
#{scContad5},
#{scContad6},
#{scContad7},
#{scContad8}
#{scContad8},
'1',
'1'
)
</native-query>
@ -482,7 +486,7 @@
AND MSU.msu_team = #{msuTeam}
</if>
GROUP BY MS.ms_maincode, MS.ms_seq, MS.ms_carnum
ORDER BY MS.ms_maincode, MS.ms_seq, MS.ms_carnum
ORDER BY MS.ms_seq, MS.ms_maincode, MS.ms_carnum
</native-query>
<native-query id="selectJudgeResultList">
@ -518,7 +522,7 @@
AND MSU.msu_team = #{msuTeam}
</if>
AND MSU.msu_userid = MU.userid
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_seq, MS.ms_maincode, MS.ms_carnum
</native-query>
<native-query id="selectJudegStdCount">

Loading…
Cancel
Save