|
|
@ -13,7 +13,9 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
import cokr.xit.base.file.FileInfo;
|
|
|
|
import cokr.xit.base.file.FileInfo;
|
|
|
|
import cokr.xit.base.file.service.bean.FileBean;
|
|
|
|
import cokr.xit.base.file.service.bean.FileBean;
|
|
|
|
|
|
|
|
import cokr.xit.fims.cmmn.CrdnPayerHstry;
|
|
|
|
import cokr.xit.fims.cmmn.CrdnSttsHstry;
|
|
|
|
import cokr.xit.fims.cmmn.CrdnSttsHstry;
|
|
|
|
|
|
|
|
import cokr.xit.fims.cmmn.service.bean.CrdnPayerHstryBean;
|
|
|
|
import cokr.xit.fims.cmmn.service.bean.CrdnSttsHstryBean;
|
|
|
|
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;
|
|
|
@ -69,6 +71,9 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
|
|
|
|
@Resource(name="crdnSttsHstryBean")
|
|
|
|
@Resource(name="crdnSttsHstryBean")
|
|
|
|
protected CrdnSttsHstryBean crdnSttsHstryBean;
|
|
|
|
protected CrdnSttsHstryBean crdnSttsHstryBean;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource(name="crdnPayerHstryBean")
|
|
|
|
|
|
|
|
protected CrdnPayerHstryBean crdnPayerHstryBean;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public List<DataObject> getCrackdownList(CrdnQuery query) {
|
|
|
|
public List<DataObject> getCrackdownList(CrdnQuery query) {
|
|
|
|
|
|
|
|
|
|
|
@ -165,10 +170,6 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
|
|
|
|
crdn.setFfnlgAmt(basicAmt[0]);
|
|
|
|
crdn.setFfnlgAmt(basicAmt[0]);
|
|
|
|
crdn.setAdvntceAmt(basicAmt[1]);
|
|
|
|
crdn.setAdvntceAmt(basicAmt[1]);
|
|
|
|
|
|
|
|
|
|
|
|
//TODO : 납부자 저장
|
|
|
|
|
|
|
|
//pyrId = 납부자Bean.save(pyrInfoMap);
|
|
|
|
|
|
|
|
//crdn.setRtpyrId(pyrId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//TODO : 단속팀 저장
|
|
|
|
//TODO : 단속팀 저장
|
|
|
|
//if(!ifEmpty(crdn.getTeamId(), () -> "").equals("")) {
|
|
|
|
//if(!ifEmpty(crdn.getTeamId(), () -> "").equals("")) {
|
|
|
|
//}
|
|
|
|
//}
|
|
|
@ -184,6 +185,9 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
|
|
|
|
String currentSggCd = globalStngMapper.selectSggCdForCurrentUser();
|
|
|
|
String currentSggCd = globalStngMapper.selectSggCdForCurrentUser();
|
|
|
|
crdn.setSggCd(currentSggCd);
|
|
|
|
crdn.setSggCd(currentSggCd);
|
|
|
|
boolean result = crdnBean.create(crdn);
|
|
|
|
boolean result = crdnBean.create(crdn);
|
|
|
|
|
|
|
|
if (!result) {
|
|
|
|
|
|
|
|
throw new RuntimeException("단속자료 수기 등록 중 단속자료 등록에 실패하였습니다.");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SimpleDateFormat yyyyMMdd = new SimpleDateFormat("yyyyMMdd");
|
|
|
|
SimpleDateFormat yyyyMMdd = new SimpleDateFormat("yyyyMMdd");
|
|
|
|
Date curTime = new Date();
|
|
|
|
Date curTime = new Date();
|
|
|
@ -204,12 +208,23 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
|
|
|
|
|
|
|
|
|
|
|
|
result = excl01Bean.createLevyExcl(excl01);
|
|
|
|
result = excl01Bean.createLevyExcl(excl01);
|
|
|
|
if (!result) {
|
|
|
|
if (!result) {
|
|
|
|
return false;
|
|
|
|
throw new RuntimeException("단속자료 수기 등록 중 부과제외 자료 등록에 실패하였습니다.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
taskDtlId = excl01.getLevyExclId();
|
|
|
|
taskDtlId = excl01.getLevyExclId();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//단속납부자이력(TB_CRDN_PAYER_HSTRY) 대장 등록
|
|
|
|
|
|
|
|
if(!ifEmpty(crdn.getRtpyrId(), () -> "").equals("")) {
|
|
|
|
|
|
|
|
CrdnPayerHstry crdnPayerHstry = new CrdnPayerHstry();
|
|
|
|
|
|
|
|
crdnPayerHstry.setCrdnId(crdn.getCrdnId());
|
|
|
|
|
|
|
|
crdnPayerHstry.setRtpyrId(crdn.getRtpyrId());
|
|
|
|
|
|
|
|
result = crdnPayerHstryBean.create(crdnPayerHstry);
|
|
|
|
|
|
|
|
if (!result) {
|
|
|
|
|
|
|
|
throw new RuntimeException("단속자료 수기 등록 중 단속납부자 이력 등록에 실패하였습니다.");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 단속상태이력(TB_CRDN_STTS_HSTRY) 대장 등록
|
|
|
|
// 단속상태이력(TB_CRDN_STTS_HSTRY) 대장 등록
|
|
|
|
CrdnSttsHstry crdnSttsHstry = new CrdnSttsHstry();
|
|
|
|
CrdnSttsHstry crdnSttsHstry = new CrdnSttsHstry();
|
|
|
|
crdnSttsHstry.setCrdnId(crdn.getCrdnId());
|
|
|
|
crdnSttsHstry.setCrdnId(crdn.getCrdnId());
|
|
|
@ -221,13 +236,16 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
|
|
|
|
|
|
|
|
|
|
|
|
result = crdnSttsHstryBean.create(crdnSttsHstry);
|
|
|
|
result = crdnSttsHstryBean.create(crdnSttsHstry);
|
|
|
|
if (!result) {
|
|
|
|
if (!result) {
|
|
|
|
return false;
|
|
|
|
throw new RuntimeException("단속자료 수기 등록 중 단속상태 이력 등록에 실패하였습니다.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//파일 등록
|
|
|
|
if(fileInfoList != null && !fileInfoList.isEmpty()) {
|
|
|
|
if(fileInfoList != null && !fileInfoList.isEmpty()) {
|
|
|
|
fileInfoList.forEach(fileInfo -> fileInfo.setInfoType(Crdn.INF_TYPE).setInfoKey(crdn.getCrdnId()));
|
|
|
|
fileInfoList.forEach(fileInfo -> fileInfo.setInfoType(Crdn.INF_TYPE).setInfoKey(crdn.getCrdnId()));
|
|
|
|
fileBean.create(fileInfoList);
|
|
|
|
int effected = fileBean.create(fileInfoList);
|
|
|
|
|
|
|
|
if(effected == 0) {
|
|
|
|
|
|
|
|
throw new RuntimeException("단속자료 수기 등록 중 파일 등록에 실패하였습니다.");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|