|
|
@ -18,6 +18,7 @@ import cokr.xit.base.file.FileInfo.Relation;
|
|
|
|
import cokr.xit.base.file.service.FileQuery;
|
|
|
|
import cokr.xit.base.file.service.FileQuery;
|
|
|
|
import cokr.xit.base.file.service.bean.FileBean;
|
|
|
|
import cokr.xit.base.file.service.bean.FileBean;
|
|
|
|
import cokr.xit.base.file.web.FileInfoFactory;
|
|
|
|
import cokr.xit.base.file.web.FileInfoFactory;
|
|
|
|
|
|
|
|
import cokr.xit.fims.cmmn.CrdnPayerAddrHstry;
|
|
|
|
import cokr.xit.fims.cmmn.CrdnPayerHstry;
|
|
|
|
import cokr.xit.fims.cmmn.CrdnPayerHstry;
|
|
|
|
import cokr.xit.fims.cmmn.CrdnSttsHstry;
|
|
|
|
import cokr.xit.fims.cmmn.CrdnSttsHstry;
|
|
|
|
import cokr.xit.fims.cmmn.dao.CrdnPayerHstryMapper;
|
|
|
|
import cokr.xit.fims.cmmn.dao.CrdnPayerHstryMapper;
|
|
|
@ -244,29 +245,17 @@ public class CrdnCvlcptSubBean extends AbstractBean {
|
|
|
|
throw new RuntimeException("단속민원답변 수정 중 단속정보변경에 실패하였습니다.");
|
|
|
|
throw new RuntimeException("단속민원답변 수정 중 단속정보변경에 실패하였습니다.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//단속 납부자 변경 이력 등록
|
|
|
|
|
|
|
|
if(((String)nonQueryRequest.get("changePayerYn")).equals("Y")) {
|
|
|
|
|
|
|
|
CrdnPayerHstry crdnPayerHstry = new CrdnPayerHstry();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
crdnPayerHstry.setCrdnId(crdn.getCrdnId());
|
|
|
|
|
|
|
|
crdnPayerHstry.setRtpyrId(crdn.getRtpyrId());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boolean retSuccess = crdnPayerHstryMapper.insertCrdnPayerHstry(crdnPayerHstry);
|
|
|
|
|
|
|
|
if(!retSuccess) {
|
|
|
|
|
|
|
|
throw new RuntimeException("단속민원답변 수정 중 단속납부자변경 이력 등록에 실패하였습니다.");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//단속 납부자 주소 변경 이력 등록
|
|
|
|
//단속 납부자 주소 변경 이력 등록
|
|
|
|
if(((String)nonQueryRequest.get("changePayerAddrYn")).equals("Y")) {
|
|
|
|
if(((String)nonQueryRequest.get("changePayerYn")).equals("Y") ||
|
|
|
|
CrdnPayerHstry crdnPayerHstry = new CrdnPayerHstry();
|
|
|
|
((String)nonQueryRequest.get("changePayerAddrYn")).equals("Y")) {
|
|
|
|
|
|
|
|
CrdnPayerAddrHstry crdnPayerAddrHstry = new CrdnPayerAddrHstry();
|
|
|
|
|
|
|
|
|
|
|
|
crdnPayerHstry.setCrdnId(crdn.getCrdnId());
|
|
|
|
crdnPayerAddrHstry.setCrdnId(crdn.getCrdnId());
|
|
|
|
crdnPayerHstry.setRtpyrId(crdn.getRtpyrId());
|
|
|
|
crdnPayerAddrHstry.setRtpyrId(crdn.getRtpyrId());
|
|
|
|
crdnPayerHstry.setAddrSn(crdn.getAddrSn());
|
|
|
|
crdnPayerAddrHstry.setAddrSn(crdn.getAddrSn());
|
|
|
|
|
|
|
|
|
|
|
|
boolean retSuccess = crdnPayerHstryMapper.insertCrdnPayerAddrHstry(crdnPayerHstry);
|
|
|
|
int rtnNocs = crdnPayerHstryMapper.insertCrdnPayerAddrHstry(crdnPayerAddrHstry);
|
|
|
|
if(!retSuccess) {
|
|
|
|
if(rtnNocs != 1) {
|
|
|
|
throw new RuntimeException("단속민원답변 수정 중 단속납부자변경 이력 등록에 실패하였습니다.");
|
|
|
|
throw new RuntimeException("단속민원답변 수정 중 단속납부자변경 이력 등록에 실패하였습니다.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|