diff --git a/src/main/java/cokr/xit/fims/crdn/dao/Crdn01Mapper.java b/src/main/java/cokr/xit/fims/crdn/dao/Crdn01Mapper.java
index 73ab6987..304d6850 100644
--- a/src/main/java/cokr/xit/fims/crdn/dao/Crdn01Mapper.java
+++ b/src/main/java/cokr/xit/fims/crdn/dao/Crdn01Mapper.java
@@ -4,6 +4,7 @@ import java.util.List;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
+import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnCvlcpt;
import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.foundation.component.AbstractMapper;
@@ -72,4 +73,10 @@ public interface Crdn01Mapper extends AbstractMapper {
*/
int acceptCvlcpt(CrdnCvlcpt cvlcpt);
+ /** 단속정보를 수정한다.
+ * @param crdn 단속정보
+ * @return 저장된 정보 수
+ */
+ int updateCrdn(Crdn crdn);
+
}
diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01Bean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01Bean.java
index 0bce319f..ba0908b8 100644
--- a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01Bean.java
+++ b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01Bean.java
@@ -9,6 +9,7 @@ import javax.annotation.Resource;
import org.springframework.stereotype.Component;
+import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnCvlcpt;
import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.Crdn01Mapper;
@@ -51,4 +52,8 @@ public class Crdn01Bean extends AbstractComponent {
return crdn01Mapper.acceptCvlcpt(cvlcpt) == 1 ? true : false;
}
+ public boolean update(Crdn crdn) {
+ return crdn01Mapper.updateCrdn(crdn) == 1 ? true : false;
+ }
+
}
diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnServiceBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnServiceBean.java
index 5abb59e9..a27ee67c 100644
--- a/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnServiceBean.java
+++ b/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnServiceBean.java
@@ -344,7 +344,7 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
saved = crdn01Bean.accept(crdnCvlcpt);
}
- saved = crdn06Bean.update(crdn);
+ saved = crdn01Bean.update(crdn);
return saved;
}
diff --git a/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml b/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml
index 32e3f4f6..a932ec7f 100644
--- a/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml
+++ b/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml
@@ -413,4 +413,35 @@ INSERT INTO TB_CRDN_CVLCPT (
WHERE CVLCPT_LINK_ID = #{linkId} /* 연계 ID */
+