민원 수정

main
이범준 1 year ago
parent 03e1486b51
commit 5ad5487b20

@ -4,6 +4,7 @@ import java.util.List;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper; 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.CrdnCvlcpt;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.foundation.component.AbstractMapper; import cokr.xit.foundation.component.AbstractMapper;
@ -72,4 +73,10 @@ public interface Crdn01Mapper extends AbstractMapper {
*/ */
int acceptCvlcpt(CrdnCvlcpt cvlcpt); int acceptCvlcpt(CrdnCvlcpt cvlcpt);
/** .
* @param crdn
* @return
*/
int updateCrdn(Crdn crdn);
} }

@ -9,6 +9,7 @@ import javax.annotation.Resource;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnCvlcpt; import cokr.xit.fims.crdn.CrdnCvlcpt;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.Crdn01Mapper; import cokr.xit.fims.crdn.dao.Crdn01Mapper;
@ -51,4 +52,8 @@ public class Crdn01Bean extends AbstractComponent {
return crdn01Mapper.acceptCvlcpt(cvlcpt) == 1 ? true : false; return crdn01Mapper.acceptCvlcpt(cvlcpt) == 1 ? true : false;
} }
public boolean update(Crdn crdn) {
return crdn01Mapper.updateCrdn(crdn) == 1 ? true : false;
}
} }

@ -344,7 +344,7 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
saved = crdn01Bean.accept(crdnCvlcpt); saved = crdn01Bean.accept(crdnCvlcpt);
} }
saved = crdn06Bean.update(crdn); saved = crdn01Bean.update(crdn);
return saved; return saved;
} }

@ -413,4 +413,35 @@ INSERT INTO TB_CRDN_CVLCPT (
WHERE CVLCPT_LINK_ID = #{linkId} /* 연계 ID */ WHERE CVLCPT_LINK_ID = #{linkId} /* 연계 ID */
</update> </update>
<update id="updateCrdn" parameterType="cokr.xit.fims.crdn.Crdn">
/* 단속정보 수정(crdn01Mapper.updateCrdn) */
UPDATE TB_CRDN
SET MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */
, MDFR = #{modifiedBy} /* 수정자 */
, ATCH_FILE_CNT = ATCH_FILE_CNT + (#{fileChgCnt})
, RTPYR_ID = #{rtpyrId} <!-- 납부자 ID -->
, CRDN_YMD = #{crdnYmd} <!-- 단속 일자 -->
, CRDN_TM = #{crdnTm} <!-- 단속 시각 -->
, VHRNO = #{vhrno} <!-- 차량번호 -->
, CRDN_STDG_NM = #{crdnStdgNm} <!-- 단속 법정동 명 -->
, CRDN_ROAD_NM = #{crdnRoadNm} <!-- 단속 도로 명 -->
, CRDN_PLC = #{crdnPlc} <!-- 단속 장소 -->
, VLTN_ID = #{vltnId} <!-- 위반 ID -->
, GPS_X = #{gpsX} <!-- GPS X -->
, GPS_Y = #{gpsY} <!-- GPS Y -->
, 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} <!-- 사전통지 부과 금액 -->
<if test="crdnSttsCd != ''">
, CRDN_STTS_CD = #{crdnSttsCd} <!-- 단속 상태 코드 -->
, CRDN_STTS_CHG_DT = <include refid="utility.now" /> <!-- 단속 상태 변경 일시 -->
</if>
WHERE CRDN_ID = #{crdnId} /* 단속 ID */
</update>
</mapper> </mapper>

@ -475,10 +475,31 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
<update id="updateCrdn" parameterType="cokr.xit.fims.crdn.Crdn"> <update id="updateCrdn" parameterType="cokr.xit.fims.crdn.Crdn">
/* 단속정보 수정(crdn06Mapper.updateCrdn) */ /* 단속정보 수정(crdn06Mapper.updateCrdn) */
UPDATE TB_CRDN UPDATE TB_CRDN
SET ATCH_FILE_CNT = ATCH_FILE_CNT + (#{fileChgCnt}) SET MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */
<!-- TODO : 컬럼 추가 -->
, MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */
, MDFR = #{modifiedBy} /* 수정자 */ , MDFR = #{modifiedBy} /* 수정자 */
, ATCH_FILE_CNT = ATCH_FILE_CNT + (#{fileChgCnt})
, RTPYR_ID = #{rtpyrId} <!-- 납부자 ID -->
, CRDN_YMD = #{crdnYmd} <!-- 단속 일자 -->
, CRDN_TM = #{crdnTm} <!-- 단속 시각 -->
, VHRNO = #{vhrno} <!-- 차량번호 -->
, CRDN_STDG_NM = #{crdnStdgNm} <!-- 단속 법정동 명 -->
, CRDN_ROAD_NM = #{crdnRoadNm} <!-- 단속 도로 명 -->
, CRDN_PLC = #{crdnPlc} <!-- 단속 장소 -->
, VLTN_ID = #{vltnId} <!-- 위반 ID -->
, GPS_X = #{gpsX} <!-- GPS X -->
, GPS_Y = #{gpsY} <!-- GPS Y -->
, 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} <!-- 사전통지 부과 금액 -->
<if test="crdnSttsCd != ''">
, CRDN_STTS_CD = #{crdnSttsCd} <!-- 단속 상태 코드 -->
, CRDN_STTS_CHG_DT = <include refid="utility.now" /> <!-- 단속 상태 변경 일시 -->
</if>
WHERE CRDN_ID = #{crdnId} /* 단속 ID */ WHERE CRDN_ID = #{crdnId} /* 단속 ID */
</update> </update>

@ -6,6 +6,17 @@
<form id="frmEdit--${pageName}"> <form id="frmEdit--${pageName}">
<input id="crdnId--${pageName}" name="crdnId" type="hidden" data-map="CRDN_ID" /> <input id="crdnId--${pageName}" name="crdnId" type="hidden" data-map="CRDN_ID" />
<input id="taskSeCd--${pageName}" name="taskSeCd" type="hidden" value="${taskSeCd}" /> <input id="taskSeCd--${pageName}" name="taskSeCd" type="hidden" value="${taskSeCd}" />
<div class="row mt-4 justify-content-end mb-3">
<div class="col-md-4">
<input type="text" id="countStauts--${pageName}" class="form-control w-px-150 text-center fw-bold" readonly />
<button type="button" class="w-px-50" id="btnPrev--${pageName}">◀</button>
<button type="button" class="w-px-50" id="btnNext--${pageName}">▶</button>
</div>
<div class="col-md-8">
</div>
</div>
<div class="row g-1"> <div class="row g-1">
<div class="col-md-12" slot="edit"> <div class="col-md-12" slot="edit">
<template class="pvs bpv"> <template class="pvs bpv">
@ -248,21 +259,18 @@
</div> </div>
<div class="row mt-4 justify-content-end mb-3"> <div class="row mt-4 justify-content-end mb-3">
<div class="col-md-4"> <div class="col-md-3">
<input type="text" id="countStauts--${pageName}" class="form-control w-px-150 text-center fw-bold" readonly />
<button type="button" class="w-px-50" id="btnPrev--${pageName}">◀</button>
<button type="button" class="w-px-50" id="btnNext--${pageName}">▶</button>
</div> </div>
<div class="col-md-8"> <div class="col-md-9">
<div class="row justify-content-end"> <div class="row justify-content-end">
<div class="col-sm-12"> <div class="col-sm-12">
<button type="button" id="btnInstLevyExcl1--${pageName}" class="btn btn-primary">서손처리</button> <button type="button" id="btnInstLevyExcl1--${pageName}" class="btn btn-primary">저장(서손처리)</button>
<button type="button" id="btnInstLevyExcl2--${pageName}" class="btn btn-primary">계도처리</button> <button type="button" id="btnInstLevyExcl2--${pageName}" class="btn btn-primary">저장(계고처리)</button>
<button type="button" id="btnAccept--${pageName}" class="btn btn-primary">저장(수용)</button>
<button type="button" id="btnDataCopy--${pageName}" class="btn btn-primary">자료복사</button> <button type="button" id="btnDataCopy--${pageName}" class="btn btn-primary">자료복사</button>
<button type="button" id="btnHold--${pageName}" class="btn btn-primary">처리보류</button> <button type="button" id="btnHold--${pageName}" class="btn btn-primary">처리보류</button>
<button type="button" id="btnOpenCvlcptOrgnl--${pageName}" class="btn btn-primary">원본보기</button> <button type="button" id="btnOpenCvlcptOrgnl--${pageName}" class="btn btn-primary">원본보기</button>
<button type="button" id="btnReset--${pageName}" class="btn btn-primary">초기화</button> <button type="button" id="btnReset--${pageName}" class="btn btn-primary">초기화</button>
<button type="button" id="btnAccept--${pageName}" class="btn btn-primary">수용(저장)</button>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save