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 */ + + /* 단속정보 수정(crdn01Mapper.updateCrdn) */ + UPDATE TB_CRDN + SET MDFCN_DT = /* 수정일시 */ + , MDFR = #{modifiedBy} /* 수정자 */ + , ATCH_FILE_CNT = ATCH_FILE_CNT + (#{fileChgCnt}) + , RTPYR_ID = #{rtpyrId} + , CRDN_YMD = #{crdnYmd} + , CRDN_TM = #{crdnTm} + , VHRNO = #{vhrno} + , CRDN_STDG_NM = #{crdnStdgNm} + , CRDN_ROAD_NM = #{crdnRoadNm} + , CRDN_PLC = #{crdnPlc} + , VLTN_ID = #{vltnId} + , GPS_X = #{gpsX} + , GPS_Y = #{gpsY} + , VIN = #{vin} + , VHCL_NM = #{vhclNm} + , VHCL_COLOR = #{vhclColor} + , ETC_CN = #{etcCn} + , FFNLG_AMT = #{ffnlgAmt} + , LEVY_AMT = #{levyAmt} + , FFNLG_RDUCT_RT = #{ffnlgRductRt} + , ADVNTCE_LEVY_AMT = #{advntceLevyAmt} + + , CRDN_STTS_CD = #{crdnSttsCd} + , CRDN_STTS_CHG_DT = + + WHERE CRDN_ID = #{crdnId} /* 단속 ID */ + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml b/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml index 7b07a5f8..5d235b86 100644 --- a/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml +++ b/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml @@ -475,10 +475,31 @@ SELECT C.CRDN_ID /* 단속정보 수정(crdn06Mapper.updateCrdn) */ UPDATE TB_CRDN - SET ATCH_FILE_CNT = ATCH_FILE_CNT + (#{fileChgCnt}) - - , MDFCN_DT = /* 수정일시 */ + SET MDFCN_DT = /* 수정일시 */ , MDFR = #{modifiedBy} /* 수정자 */ + , ATCH_FILE_CNT = ATCH_FILE_CNT + (#{fileChgCnt}) + , RTPYR_ID = #{rtpyrId} + , CRDN_YMD = #{crdnYmd} + , CRDN_TM = #{crdnTm} + , VHRNO = #{vhrno} + , CRDN_STDG_NM = #{crdnStdgNm} + , CRDN_ROAD_NM = #{crdnRoadNm} + , CRDN_PLC = #{crdnPlc} + , VLTN_ID = #{vltnId} + , GPS_X = #{gpsX} + , GPS_Y = #{gpsY} + , VIN = #{vin} + , VHCL_NM = #{vhclNm} + , VHCL_COLOR = #{vhclColor} + , ETC_CN = #{etcCn} + , FFNLG_AMT = #{ffnlgAmt} + , LEVY_AMT = #{levyAmt} + , FFNLG_RDUCT_RT = #{ffnlgRductRt} + , ADVNTCE_LEVY_AMT = #{advntceLevyAmt} + + , CRDN_STTS_CD = #{crdnSttsCd} + , CRDN_STTS_CHG_DT = + WHERE CRDN_ID = #{crdnId} /* 단속 ID */ diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp index 0651cc61..3f43e53c 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp @@ -6,6 +6,17 @@
+ +
+
+ + + +
+
+
+
+