|
|
@ -26,6 +26,7 @@ import cokr.xit.fims.cmmn.dao.CrdnPayerHstryMapper;
|
|
|
|
import cokr.xit.fims.cmmn.dao.CrdnSttsHstryMapper;
|
|
|
|
import cokr.xit.fims.cmmn.dao.CrdnSttsHstryMapper;
|
|
|
|
import cokr.xit.fims.cmmn.hwp.AddingParagraphBetweenHWPFile;
|
|
|
|
import cokr.xit.fims.cmmn.hwp.AddingParagraphBetweenHWPFile;
|
|
|
|
import cokr.xit.fims.cmmn.hwp.InsertingImageCell;
|
|
|
|
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.Crdn;
|
|
|
|
import cokr.xit.fims.crdn.CrdnQuery;
|
|
|
|
import cokr.xit.fims.crdn.CrdnQuery;
|
|
|
|
import cokr.xit.fims.crdn.dao.CrdnInfoMapper;
|
|
|
|
import cokr.xit.fims.crdn.dao.CrdnInfoMapper;
|
|
|
@ -68,6 +69,9 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
|
|
|
|
@Resource(name = "crdnSttsHstryMapper")
|
|
|
|
@Resource(name = "crdnSttsHstryMapper")
|
|
|
|
private CrdnSttsHstryMapper crdnSttsHstryMapper;
|
|
|
|
private CrdnSttsHstryMapper crdnSttsHstryMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource(name = "crdnSttsHstryBean")
|
|
|
|
|
|
|
|
private CrdnSttsHstryBean crdnSttsHstryBean;
|
|
|
|
|
|
|
|
|
|
|
|
@Resource(name = "crdnPayerHstryMapper")
|
|
|
|
@Resource(name = "crdnPayerHstryMapper")
|
|
|
|
private CrdnPayerHstryMapper crdnPayerHstryMapper;
|
|
|
|
private CrdnPayerHstryMapper crdnPayerHstryMapper;
|
|
|
|
|
|
|
|
|
|
|
@ -423,8 +427,6 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//단속정보변경
|
|
|
|
//단속정보변경
|
|
|
|
saved = crdnCvlcptBean.updateCrdn(nonQueryRequest, crdn);
|
|
|
|
saved = crdnCvlcptBean.updateCrdn(nonQueryRequest, crdn);
|
|
|
|
if(!saved) {
|
|
|
|
if(!saved) {
|
|
|
@ -558,12 +560,44 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean updateAnswerTargetProcessStatus(String processType, String[] crdnIDs) {
|
|
|
|
public boolean updateAnswerTargetProcessStatus(String processType, String[] crdnIDs) {
|
|
|
|
|
|
|
|
|
|
|
|
if(processType.equals("answerExecute")) {
|
|
|
|
List<DataObject> targetDataList = crdnCvlcptMapper.selectAnswerTargetList(crdnIDs);
|
|
|
|
// TODO : 답변완료실행
|
|
|
|
|
|
|
|
} else if(processType.equals("answerComplete")) {
|
|
|
|
for(int i=0; i < targetDataList.size(); i++) {
|
|
|
|
// TODO : 답변완료
|
|
|
|
|
|
|
|
} else {
|
|
|
|
CrdnCvlcpt crdnCvlcpt = new CrdnCvlcpt();
|
|
|
|
return false;
|
|
|
|
crdnCvlcpt.setCvlcptLinkId(targetDataList.get(i).string("CVLCPT_LINK_ID"));
|
|
|
|
|
|
|
|
if(processType.equals("answerExecute")) {
|
|
|
|
|
|
|
|
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")){
|
|
|
|
|
|
|
|
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;
|
|
|
|
return true;
|
|
|
|