소스정리

main
이범준 1 year ago
parent e0e9509b91
commit 28939e5219

@ -14,17 +14,17 @@ public class UserController extends cokr.xit.base.user.web.UserController<Manage
@Resource @Resource
SmgServiceBean smgServiceBean; SmgServiceBean smgServiceBean;
@RequestMapping(name="최고관리자 메인",value="/superUserMain.do") @RequestMapping(name="최고관리자 메인",value="/superUser/main.do")
public ModelAndView superUserMain() { public ModelAndView superUserMain() {
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
mav.setViewName("fims/superUser-main"); mav.setViewName("fims/superUser-main");
return mav; return mav;
} }
@RequestMapping(name="배치실행",value="/executeBatch.do") @RequestMapping(name="배치실행",value="/superUser/executeBatch.do")
public ModelAndView executeBatch(String batch) { public ModelAndView executeBatch(String batch) {
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
System.out.println("파라미터:"+batch);
switch (batch) { switch (batch) {
case "smgReceive" : { case "smgReceive" : {
smgServiceBean.receivePetitions(); smgServiceBean.receivePetitions();

@ -214,17 +214,6 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
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());
@ -239,6 +228,17 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
throw new RuntimeException("단속자료 수기 등록 중 단속상태 이력 등록에 실패하였습니다."); throw new RuntimeException("단속자료 수기 등록 중 단속상태 이력 등록에 실패하였습니다.");
} }
//단속납부자이력(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("단속자료 수기 등록 중 단속납부자 이력 등록에 실패하였습니다.");
}
}
//파일 등록 //파일 등록
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()));

Loading…
Cancel
Save