|
|
|
|
@ -38,6 +38,9 @@ import cokr.xit.fims.cmmn.service.bean.StngBean;
|
|
|
|
|
import cokr.xit.fims.cmmn.xls.FormatMaker;
|
|
|
|
|
import cokr.xit.fims.cmmn.xls.StyleMaker;
|
|
|
|
|
import cokr.xit.fims.crdn.Crdn;
|
|
|
|
|
import cokr.xit.fims.levy.Levy;
|
|
|
|
|
import cokr.xit.fims.levy.LevyQuery;
|
|
|
|
|
import cokr.xit.fims.levy.service.LevyService;
|
|
|
|
|
import cokr.xit.fims.mngt.service.bean.TaskBean;
|
|
|
|
|
import cokr.xit.fims.mngt.service.bean.TaskProcessor;
|
|
|
|
|
import cokr.xit.fims.sndb.SndbQuery;
|
|
|
|
|
@ -57,11 +60,6 @@ import cokr.xit.foundation.UserInfo;
|
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
|
import cokr.xit.foundation.data.DataProc;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.fims.levy.LevyQuery;
|
|
|
|
|
import cokr.xit.fims.levy.Levy;
|
|
|
|
|
import cokr.xit.fims.levy.service.LevyService;
|
|
|
|
|
import cokr.xit.fims.levy.service.bean.LevyBean;
|
|
|
|
|
|
|
|
|
|
/**발송대장 서비스의 웹 컨트롤러
|
|
|
|
|
*
|
|
|
|
|
* <p>상세 설명:
|
|
|
|
|
@ -153,7 +151,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
private TaskBean taskBean;
|
|
|
|
|
/**부과 서비스*/
|
|
|
|
|
@Resource(name="levyService")
|
|
|
|
|
private LevyService levyService;
|
|
|
|
|
private LevyService levyService;
|
|
|
|
|
/**통합 조회 서비스*/
|
|
|
|
|
@Resource(name="integrationSearchService")
|
|
|
|
|
private IntegrationSearchService integrationSearchService;
|
|
|
|
|
@ -2232,44 +2230,44 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
@RequestMapping(name="세외수입 체납상세 세목정보 조회", value=METHOD_URL.getNonTaxReceiptSpecialB01List)
|
|
|
|
|
public ModelAndView getNonTaxReceiptSpecialB01List(SndbQuery req) {
|
|
|
|
|
boolean saved = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LevyQuery levyQuery = new LevyQuery().setSchLevyYmdFrom(req.getSchLevyYmdFrom())
|
|
|
|
|
.setSchLevyYmdTo(req.getSchLevyYmdTo())
|
|
|
|
|
.setSchFrstDudtYmdFrom(req.getSchFrstDudtYmdFrom())
|
|
|
|
|
.setSchFrstDudtYmdTo(req.getSchFrstDudtYmdTo())
|
|
|
|
|
.setSchFyr(req.getSchFyr());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<Levy> levys = levyService.getLevyForGoji(levyQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
|
String rtnMsg = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (levys.isEmpty()) {
|
|
|
|
|
rtnMsg = "[F] 자료를 찾지못했습니다.";
|
|
|
|
|
return mav.addObject("saved", saved)
|
|
|
|
|
.addObject("rtnMsg", rtnMsg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (Levy levy: levys) {
|
|
|
|
|
rtnMsg = sndngDtlService.updatePreNotice((String) levy.getNxrpAcbKey());
|
|
|
|
|
rtnMsg = sndngDtlService.updatePreNotice(levy.getNxrpAcbKey());
|
|
|
|
|
saved = rtnMsg.contains("[S]");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (saved) {
|
|
|
|
|
levys = levyService.getLevyForGoji(levyQuery);
|
|
|
|
|
mav.addObject("saved", saved)
|
|
|
|
|
.addObject("tnocs", levys.size())
|
|
|
|
|
.addObject("gramt", levys.stream().mapToInt(Levy::getLastAmt).sum())
|
|
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return mav;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
List<SndngDtl> sndngDtls = sndngDtlService.getSndngDetails(req.setSndngDtlSttsCds(List.of(
|
|
|
|
|
"01", "02", "03","04", "05", "06", "07"
|
|
|
|
|
)));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String rtnMsg = sndngDtls.isEmpty() ? "[F] 자료를 찾지못했습니다." : "";
|
|
|
|
|
boolean lntris = "lntris".equals(TaskProcessor.get().getNtrisInterface(req.getTaskSeCd()));
|
|
|
|
|
|
|
|
|
|
@ -2287,7 +2285,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
.addObject("gramt", sndngDtls.stream().mapToInt(SndngDtl::getLastAmt).sum());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
boolean saved = false;
|
|
|
|
|
String rtnMsg = "";
|
|
|
|
|
@ -2320,4 +2318,11 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
.addObject("rtnMsg", rtnMsg);
|
|
|
|
|
*/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(name="세외수입 과태료 조회(배치)", value="/batch-query.do")
|
|
|
|
|
public ModelAndView updatePrenotices() {
|
|
|
|
|
sndngDtlService.updatePreNotices();
|
|
|
|
|
return new ModelAndView("jsonView")
|
|
|
|
|
.addObject("success", true);
|
|
|
|
|
}
|
|
|
|
|
}
|