민원 초기자료 저장시 금액 변경 프로세스 추가

main
이범준 1 year ago
parent 62eaf3e50c
commit ba75c99cf5

@ -28,6 +28,7 @@ import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.Crdn05Mapper;
import cokr.xit.fims.crdn.dao.Crdn06Mapper;
import cokr.xit.fims.crdn.dao.CrdnInfoMapper;
import cokr.xit.fims.crdn.service.bean.Crdn05Bean;
import cokr.xit.fims.cvlc.CrdnCvlcpt;
import cokr.xit.fims.cvlc.dao.CrdnCvlcptMapper;
import cokr.xit.fims.cvlc.service.CrdnCvlcptService;
@ -51,6 +52,9 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
@Resource(name="crdnCvlcptBean")
protected CrdnCvlcptBean crdnCvlcptBean;
@Resource(name="crdn05Bean")
private Crdn05Bean crdn05Bean;
@Resource(name="excl01Bean")
private Excl01Bean excl01Bean;
@ -350,11 +354,18 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
int changeFileCnt = (fileInsertEffected - fileDeleteEffected);
nonQueryRequest.put("changeFileCnt", changeFileCnt);
//TODO : 금액 변경
nonQueryRequest.put("changeAmountYn","N");
//if(){
//nonQueryRequest.put("changeAmountYn","Y");
//}
//금액 변경
int[] basicAmt = crdn05Bean.getBasicAmt(crdn);
int ffnlgAmt = crdnInfo.number("FFNLG_AMT").intValue();
if(ffnlgAmt != basicAmt[0]){
nonQueryRequest.put("changeAmountYn","Y");
crdn.setFfnlgAmt(basicAmt[0]);
crdn.setLevyAmt(basicAmt[0]);
crdn.setAdvntceLevyAmt(basicAmt[1]);
crdn.setFfnlgRductRt("0");
} else {
nonQueryRequest.put("changeAmountYn","N");
}
//단속상태값 변경
nonQueryRequest.put("changeStatusYn","Y");

@ -93,6 +93,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, C.CRDN_STTS_CHG_DT <!-- 단속 상태 변경 일시 -->
, C.LINK_TBL_NM <!-- 연계 테이블 명 -->
, C.LINK_ID <!-- 연계 ID -->
, C.FFNLG_AMT <!-- 과태료 금액 -->
, CC.CVLCPT_LINK_ID <!-- 민원 연계 ID -->
, CC.CVLCPT_TRSM_CD <!-- 민원 전송 코드 -->
FROM TB_CRDN C

Loading…
Cancel
Save