From 51b19b82358cc8368bde041a471cb8a4df2d3d43 Mon Sep 17 00:00:00 2001 From: sjh88 Date: Wed, 29 Mar 2023 16:30:48 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20sql=20=ED=8C=8C=EB=9D=BC=EB=AF=B8?= =?UTF-8?q?=ED=84=B0=20=EC=98=A4=ED=83=80=20=EC=88=98=EC=A0=95,=20?= =?UTF-8?q?=EC=8B=AC=EC=82=AC=20=EC=8B=9C=EC=9E=91=EC=8B=9C=EA=B0=84=20upd?= =?UTF-8?q?ate=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/biz/ctgy/v2/repository/ParkingDao.java | 3 ++- .../v2/repository/ResidentAndDisabledDao.java | 1 + src/main/resources/sql/parking-mapper.xml | 17 +++++++++-------- .../sql/residentAndDisabled-mapper.xml | 15 ++++++++------- 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/main/java/com/xit/biz/ctgy/v2/repository/ParkingDao.java b/src/main/java/com/xit/biz/ctgy/v2/repository/ParkingDao.java index a7db2eb..4518a60 100644 --- a/src/main/java/com/xit/biz/ctgy/v2/repository/ParkingDao.java +++ b/src/main/java/com/xit/biz/ctgy/v2/repository/ParkingDao.java @@ -121,7 +121,7 @@ public class ParkingDao extends BaseMpowerDaoSupport { final String sql = QueryGenerator.createNamedQuery(NAME_SPACE, "insertErrorLog") .setParameter("msMaincode", msMaincode) .setParameter("msSeq", msSeq) - .setParameter("message", (String) rslt.get("message")) + .setParameter("message", String.valueOf(rslt.get("message"))) .getQueryString(); update(sql); } @@ -264,6 +264,7 @@ public class ParkingDao extends BaseMpowerDaoSupport { .setParameter("msYear", dto.getMsYear()) .setParameter("msChasu", dto.getMsChasu()) .setParameter("msSdate", dto.getMsSdate()) + .setParameter("msStartsi", dto.getMsStartsi()) .setParameter("msEdate", dto.getMsEdate()) .setParameter("msCdate", dto.getMsCdate()) .setParameter("msClosesi", dto.getMsClosesi()) diff --git a/src/main/java/com/xit/biz/ctgy/v2/repository/ResidentAndDisabledDao.java b/src/main/java/com/xit/biz/ctgy/v2/repository/ResidentAndDisabledDao.java index 45e889a..e00a1a3 100644 --- a/src/main/java/com/xit/biz/ctgy/v2/repository/ResidentAndDisabledDao.java +++ b/src/main/java/com/xit/biz/ctgy/v2/repository/ResidentAndDisabledDao.java @@ -337,6 +337,7 @@ public class ResidentAndDisabledDao extends BaseMpowerDaoSupport { .setParameter("msYear", dto.getMsYear()) .setParameter("msChasu", dto.getMsChasu()) .setParameter("msSdate", dto.getMsSdate()) + .setParameter("msStartsi", dto.getMsStartsi()) .setParameter("msEdate", dto.getMsEdate()) .setParameter("msCdate", dto.getMsCdate()) .setParameter("msClosesi", dto.getMsClosesi()) diff --git a/src/main/resources/sql/parking-mapper.xml b/src/main/resources/sql/parking-mapper.xml index 6ea44f4..ed1be3a 100644 --- a/src/main/resources/sql/parking-mapper.xml +++ b/src/main/resources/sql/parking-mapper.xml @@ -398,12 +398,13 @@ /* parking-mapper|updateDateByMsuYear|jhseo */ UPDATE min_simsa680 - SET MS_SDATE = #{msSdate} - , MS_EDATE = #{msEdate} - , MS_CDATE = #{msCdate} - , MS_CLOSESI = #{msClosesi} - WHERE MS_YEAR = #{msYear} - AND MS_CHASU = #{msChasu} + SET ms_sdate = #{msSdate} + , ms_startsi = #{msStartsi} + , ms_edate = #{msEdate} + , ms_cdate = #{msCdate} + , ms_closesi = #{msClosesi} + WHERE ms_year = #{msYear} + AND ms_chasu = #{msChasu} @@ -412,11 +413,11 @@ INTO min_simsa680_log ( ms_maincode, ms_seq, - massage + message ) VALUES ( #{msMaincode}, #{msSeq}, - #{massage} + #{message} ) diff --git a/src/main/resources/sql/residentAndDisabled-mapper.xml b/src/main/resources/sql/residentAndDisabled-mapper.xml index 7aa8ad6..a799ded 100644 --- a/src/main/resources/sql/residentAndDisabled-mapper.xml +++ b/src/main/resources/sql/residentAndDisabled-mapper.xml @@ -654,13 +654,14 @@ /* residentAndDisabled-mapper|updateDateByMsuYear|jhseo */ UPDATE min_simsa680_sc - SET MS_SDATE = #{msSdate} - , MS_EDATE = #{msEdate} - , MS_CDATE = #{msCdate} - , MS_CLOSESI = #{msClosesi} - WHERE MS_YEAR = #{msYear} - AND MS_CHASU = #{msChasu} - AND MS_DATAGB = #{msDatagb} + SET ms_sdate = #{msSdate} + , ms_startsi = #{msStartsi} + , ms_edate = #{msEdate} + , ms_cdate = #{msCdate} + , ms_closesi = #{msClosesi} + WHERE ms_year = #{msYear} + AND ms_chasu = #{msChasu} + AND ms_datagb = #{msDatagb} \ No newline at end of file