|
|
|
@ -26,6 +26,7 @@ import cokr.xit.fims.cmmn.dao.CrdnPayerHstryMapper;
|
|
|
|
|
import cokr.xit.fims.cmmn.dao.CrdnSttsHstryMapper;
|
|
|
|
|
import cokr.xit.fims.cmmn.hwp.AddingParagraphBetweenHWPFile;
|
|
|
|
|
import cokr.xit.fims.cmmn.hwp.InsertingImageCell;
|
|
|
|
|
import cokr.xit.fims.cmmn.service.bean.CrdnSttsHstryBean;
|
|
|
|
|
import cokr.xit.fims.crdn.Crdn;
|
|
|
|
|
import cokr.xit.fims.crdn.CrdnQuery;
|
|
|
|
|
import cokr.xit.fims.crdn.dao.CrdnInfoMapper;
|
|
|
|
@ -68,6 +69,9 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
|
|
|
|
|
@Resource(name = "crdnSttsHstryMapper")
|
|
|
|
|
private CrdnSttsHstryMapper crdnSttsHstryMapper;
|
|
|
|
|
|
|
|
|
|
@Resource(name = "crdnSttsHstryBean")
|
|
|
|
|
private CrdnSttsHstryBean crdnSttsHstryBean;
|
|
|
|
|
|
|
|
|
|
@Resource(name = "crdnPayerHstryMapper")
|
|
|
|
|
private CrdnPayerHstryMapper crdnPayerHstryMapper;
|
|
|
|
|
|
|
|
|
@ -423,8 +427,6 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//단속정보변경
|
|
|
|
|
saved = crdnCvlcptBean.updateCrdn(nonQueryRequest, crdn);
|
|
|
|
|
if(!saved) {
|
|
|
|
@ -558,14 +560,46 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
|
|
|
|
|
@Override
|
|
|
|
|
public boolean updateAnswerTargetProcessStatus(String processType, String[] crdnIDs) {
|
|
|
|
|
|
|
|
|
|
List<DataObject> targetDataList = crdnCvlcptMapper.selectAnswerTargetList(crdnIDs);
|
|
|
|
|
|
|
|
|
|
for(int i=0; i < targetDataList.size(); i++) {
|
|
|
|
|
|
|
|
|
|
CrdnCvlcpt crdnCvlcpt = new CrdnCvlcpt();
|
|
|
|
|
crdnCvlcpt.setCvlcptLinkId(targetDataList.get(i).string("CVLCPT_LINK_ID"));
|
|
|
|
|
if(processType.equals("answerExecute")) {
|
|
|
|
|
// TODO : 답변완료실행
|
|
|
|
|
crdnCvlcpt.setCvlcptTrsmCd("04");
|
|
|
|
|
if(ifEmpty(targetDataList.get(i).string("CVLCPT_PRCS_RSLT_CN"), () -> "").equals("")) {
|
|
|
|
|
String answerWords = crdnCvlcptBean.mappingAnswerWords(targetDataList.get(i).string("CRDN_ID"));
|
|
|
|
|
crdnCvlcpt.setCvlcptPrcsRsltCn(answerWords);
|
|
|
|
|
}
|
|
|
|
|
} else if(processType.equals("answerComplete")){
|
|
|
|
|
// TODO : 답변완료
|
|
|
|
|
crdnCvlcpt.setCvlcptTrsmCd("09");
|
|
|
|
|
} else {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int effected = crdnCvlcptMapper.updateAnswerTargetTransmitStatus(crdnCvlcpt);
|
|
|
|
|
if(effected != 1) {
|
|
|
|
|
throw new RuntimeException("민원 전송 상태 변경 중 오류가 발생하였습니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(targetDataList.get(i).string("CRDN_STTS_CD").equals("21")) {
|
|
|
|
|
CrdnSttsHstry crdnSttsHstry = new CrdnSttsHstry();
|
|
|
|
|
crdnSttsHstry.setCrdnId(targetDataList.get(i).string("CRDN_ID"));
|
|
|
|
|
crdnSttsHstry.setBfrSttsCd(targetDataList.get(i).string("CRDN_STTS_CD"));
|
|
|
|
|
crdnSttsHstry.setBfrSttsChgDt(targetDataList.get(i).string("CRDN_STTS_CHG_DT"));
|
|
|
|
|
crdnSttsHstry.setCrdnSttsCd("22");
|
|
|
|
|
crdnSttsHstry.setTaskDtlId(targetDataList.get(i).string("CRDN_ID"));
|
|
|
|
|
crdnSttsHstry.setEtcCn("민원답변등록");
|
|
|
|
|
boolean retSuccess = crdnSttsHstryBean.createHstryUpdateCrdnSttsCd(crdnSttsHstry);
|
|
|
|
|
if (!retSuccess) {
|
|
|
|
|
throw new RuntimeException("민원 전송 상태 변경 중 단속상태코드 변경에 실패하였습니다.");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|