diff --git a/src/main/resources/sql/parking-mapper.xml b/src/main/resources/sql/parking-mapper.xml index 47a9f0c..08730e6 100644 --- a/src/main/resources/sql/parking-mapper.xml +++ b/src/main/resources/sql/parking-mapper.xml @@ -375,6 +375,7 @@ , min_simsa_user680 MSU , tf680_recall TR WHERE MS.ms_maincode = MSU.msu_maincode + AND DECODE(MS.ms_result, '1', '1', '2', '2', '0') = '0' AND MS.ms_maincode = TR.rc_code AND MSU.msu_userid = #{msuUserid} ORDER BY MS.ms_sdate, MS.ms_edate, MS.ms_seq @@ -387,6 +388,7 @@ , msu_result = #{msuResult} , msu_indate = #{msuIndate} WHERE msu_code = #{msuCode} + AND msu_userid = #{msuUserid} \ No newline at end of file diff --git a/src/main/resources/sql/residentAndDisabled-mapper.xml b/src/main/resources/sql/residentAndDisabled-mapper.xml index f2273be..f237ed5 100644 --- a/src/main/resources/sql/residentAndDisabled-mapper.xml +++ b/src/main/resources/sql/residentAndDisabled-mapper.xml @@ -617,6 +617,7 @@ , min_simsa_user680_sc MSU WHERE MS.ms_maincode = MSU.msu_maincode AND MSU.msu_userid = #{msuUserid} + AND DECODE(MS.ms_result, '1', '1', '2', '2', '0') = '0' AND MS.ms_datagb = #{msDatagb}