단속 납부자 주소 이력 테이블 변경으로 이한 수정.

main
JoJH 1 week ago
parent 42171f8f0f
commit e6b3582273

@ -3,7 +3,6 @@ package cokr.xit.fims.cmmn.service;
import java.util.List; import java.util.List;
import cokr.xit.fims.cmmn.CrdnPayerAddrHstry; import cokr.xit.fims.cmmn.CrdnPayerAddrHstry;
import cokr.xit.fims.cmmn.CrdnPayerHstry;
import cokr.xit.fims.cmmn.CrdnPayerHstryQuery; import cokr.xit.fims.cmmn.CrdnPayerHstryQuery;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
@ -14,11 +13,11 @@ import cokr.xit.foundation.data.DataObject;
* <pre> * <pre>
* ============ ============ * ============ ============
* 2023-08-16 leebj * 2023-08-16 leebj
* 2024-11-05 JoJH * 2024-11-05 JoJH
* ================================ * ================================
* </pre> * </pre>
*/ */
public interface CrdnPayerHstryService { public interface CrdnPayerAddrHstryService {
/** . /** .
* @param req * @param req
@ -30,7 +29,7 @@ public interface CrdnPayerHstryService {
* @param req * @param req
* @return * @return
*/ */
List<CrdnPayerHstry> getCrdnPayerHstrys(CrdnPayerHstryQuery req); List<DataObject> getCrdnPayerHstrys(CrdnPayerHstryQuery req);
/** . /** .
* @param crdnPayerHstry * @param crdnPayerHstry
@ -39,7 +38,7 @@ public interface CrdnPayerHstryService {
* <li> false</li> * <li> false</li>
* </ul> * </ul>
*/ */
boolean create(CrdnPayerHstry crdnPayerHstry); boolean create(CrdnPayerAddrHstry crdnPayerAddrHstry);
/** , . /** , .
* @param crdnPayerHstry * @param crdnPayerHstry

@ -0,0 +1,53 @@
package cokr.xit.fims.cmmn.service.bean;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cokr.xit.fims.cmmn.CrdnPayerAddrHstry;
import cokr.xit.fims.cmmn.CrdnPayerHstryQuery;
import cokr.xit.fims.cmmn.service.CrdnPayerAddrHstryService;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject;
/** .
*
* <p> :
*
* <pre>
* ============ ============
* 2023-08-16 leebj
* 2024-11-05 JoJH
* ================================
* </pre>
*/
@Service("crdnPayerAddrHstryService")
public class CrdnPayerAddrHstryServiceBean extends AbstractServiceBean implements CrdnPayerAddrHstryService {
/** 단속 납부자 주소 이력 정보 Bean */
@Resource(name = "crdnPayerAddrHstryBean")
private CrdnPayerAddrHstryBean crdnPayerAddrHstryBean;
@Override
public List<DataObject> getCrdnPayerHstryList(CrdnPayerHstryQuery req) {
return crdnPayerAddrHstryBean.getCrdnPayerHstryList(req);
}
@Override
public List<DataObject> getCrdnPayerHstrys(CrdnPayerHstryQuery req) {
return crdnPayerAddrHstryBean.getCrdnPayerHstrys(req);
}
@Override
public boolean create(CrdnPayerAddrHstry crdnPayerAddrHstry) {
return crdnPayerAddrHstryBean.create(crdnPayerAddrHstry);
}
@Override
public boolean createHstryUpdateCrdnPayerAddr(CrdnPayerAddrHstry crdnPayerAddrHstry) {
return crdnPayerAddrHstryBean.createHstryUpdateCrdnPayerAddr(crdnPayerAddrHstry);
}
}

@ -1,54 +0,0 @@
package cokr.xit.fims.cmmn.service.bean;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cokr.xit.fims.cmmn.CrdnPayerAddrHstry;
import cokr.xit.fims.cmmn.CrdnPayerHstry;
import cokr.xit.fims.cmmn.CrdnPayerHstryQuery;
import cokr.xit.fims.cmmn.service.CrdnPayerHstryService;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject;
/** .
*
* <p> :
*
* <pre>
* ============ ============
* 2023-08-16 leebj
* 2024-11-05 JoJH
* ================================
* </pre>
*/
@Service("crdnPayerHstryService")
public class CrdnPayerHstryServiceBean extends AbstractServiceBean implements CrdnPayerHstryService {
/** 단속 납부자 이력 정보 Bean */
@Resource(name = "crdnPayerHstryBean")
private CrdnPayerHstryBean crdnPayerHstryBean;
@Override
public List<DataObject> getCrdnPayerHstryList(CrdnPayerHstryQuery req) {
return crdnPayerHstryBean.getCrdnPayerHstryList(req);
}
@Override
public List<CrdnPayerHstry> getCrdnPayerHstrys(CrdnPayerHstryQuery req) {
return crdnPayerHstryBean.getCrdnPayerHstrys(req);
}
@Override
public boolean create(CrdnPayerHstry crdnPayerHstry) {
return crdnPayerHstryBean.createCrdnPayerHstry(crdnPayerHstry);
}
@Override
public boolean createHstryUpdateCrdnPayerAddr(CrdnPayerAddrHstry crdnPayerAddrHstry) {
return crdnPayerHstryBean.createHstryUpdateCrdnPayerAddr(crdnPayerAddrHstry);
}
}

@ -9,10 +9,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import cokr.xit.foundation.web.AbstractController; import cokr.xit.foundation.web.AbstractController;
import cokr.xit.fims.cmmn.CrdnPayerAddrHstry;
import cokr.xit.fims.cmmn.CrdnPayerHstry;
import cokr.xit.fims.cmmn.CrdnPayerHstryQuery; import cokr.xit.fims.cmmn.CrdnPayerHstryQuery;
import cokr.xit.fims.cmmn.service.CrdnPayerHstryService; import cokr.xit.fims.cmmn.service.CrdnPayerAddrHstryService;
/** /**
* *
@ -26,9 +25,10 @@ import cokr.xit.fims.cmmn.service.CrdnPayerHstryService;
*/ */
@RequestMapping(name = "단속 납부자 이력", value = "/crdnPayerHstry") @RequestMapping(name = "단속 납부자 이력", value = "/crdnPayerHstry")
public class CrdnPayerHstryController extends AbstractController { public class CrdnPayerHstryController extends AbstractController {
/**단속 납부자 이력 서비스*/ /**단속 납부자 이력 서비스*/
@Resource(name = "crdnPayerHstryService") @Resource(name = "crdnPayerAddrHstryService")
private CrdnPayerHstryService crdnPayerHstryService; private CrdnPayerAddrHstryService crdnPayerAddrHstryService;
/** (crdnPayerHstry/crdnPayerHstry-main) . /** (crdnPayerHstry/crdnPayerHstry-main) .
* {@link #getCrdnPayerHstryList(CrdnPayerHstryQuery) } . * {@link #getCrdnPayerHstryList(CrdnPayerHstryQuery) } .
@ -42,7 +42,7 @@ public class CrdnPayerHstryController extends AbstractController {
} }
/** .<br /> /** .<br />
* {@link CrdnPayerHstryService#getCrdnPayerHstryList(CrdnPayerHstryQuery)} * {@link CrdnPayerAddrHstryService#getCrdnPayerHstryList(CrdnPayerHstryQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -54,7 +54,7 @@ public class CrdnPayerHstryController extends AbstractController {
*/ */
@RequestMapping(name = "단속 납부자 이력 조회", value = "/list.do") @RequestMapping(name = "단속 납부자 이력 조회", value = "/list.do")
public ModelAndView getCrdnPayerHstryList(CrdnPayerHstryQuery req) { public ModelAndView getCrdnPayerHstryList(CrdnPayerHstryQuery req) {
List<?> result = crdnPayerHstryService.getCrdnPayerHstryList(setFetchSize(req)); List<?> result = crdnPayerAddrHstryService.getCrdnPayerHstryList(setFetchSize(req));
return setCollectionInfo(new ModelAndView("jsonView"), result, "crdnPayerHstry"); return setCollectionInfo(new ModelAndView("jsonView"), result, "crdnPayerHstry");
} }
@ -66,8 +66,9 @@ public class CrdnPayerHstryController extends AbstractController {
* }</code></pre> * }</code></pre>
*/ */
@PostMapping(name = "단속 납부자 이력 등록", value = "/create.do") @PostMapping(name = "단속 납부자 이력 등록", value = "/create.do")
public ModelAndView create(CrdnPayerHstry crdnPayerHstry) { public ModelAndView create(CrdnPayerAddrHstry crdnPayerAddrHstry) {
boolean saved = crdnPayerHstryService.create(crdnPayerHstry); boolean saved = crdnPayerAddrHstryService.create(crdnPayerAddrHstry);
return new ModelAndView("jsonView") return new ModelAndView("jsonView")
.addObject("saved", saved); .addObject("saved", saved);
} }

@ -14,7 +14,7 @@ import cokr.xit.base.file.FileInfo;
import cokr.xit.base.file.service.FileQuery; import cokr.xit.base.file.service.FileQuery;
import cokr.xit.base.file.service.bean.FileBean; import cokr.xit.base.file.service.bean.FileBean;
import cokr.xit.fims.cmmn.CmmnUtil; import cokr.xit.fims.cmmn.CmmnUtil;
import cokr.xit.fims.cmmn.service.bean.CrdnPayerHstryBean; import cokr.xit.fims.cmmn.service.bean.CrdnPayerAddrHstryBean;
import cokr.xit.fims.cmmn.service.bean.CrdnSttsHstryBean; import cokr.xit.fims.cmmn.service.bean.CrdnSttsHstryBean;
import cokr.xit.fims.cmmn.service.bean.StngBean; import cokr.xit.fims.cmmn.service.bean.StngBean;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
@ -88,12 +88,6 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
@Resource(name="crdnBean") @Resource(name="crdnBean")
private CrdnBean crdnBean; private CrdnBean crdnBean;
@Resource(name="crdnSttsHstryBean")
private CrdnSttsHstryBean crdnSttsHstryBean;
@Resource(name="crdnPayerHstryBean")
private CrdnPayerHstryBean crdnPayerHstryBean;
@Override @Override
public List<DataObject> getCrackdownList(CrdnQuery query) { public List<DataObject> getCrackdownList(CrdnQuery query) {

@ -20,7 +20,6 @@ import cokr.xit.base.file.service.FileQuery;
import cokr.xit.base.file.service.bean.FileBean; import cokr.xit.base.file.service.bean.FileBean;
import cokr.xit.fims.cmmn.CmmnUtil; import cokr.xit.fims.cmmn.CmmnUtil;
import cokr.xit.fims.cmmn.CrdnSttsHstry; import cokr.xit.fims.cmmn.CrdnSttsHstry;
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.service.bean.CrdnSttsHstryBean; import cokr.xit.fims.cmmn.service.bean.CrdnSttsHstryBean;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
@ -83,9 +82,6 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
@Resource(name = "crdnSttsHstryBean") @Resource(name = "crdnSttsHstryBean")
private CrdnSttsHstryBean crdnSttsHstryBean; private CrdnSttsHstryBean crdnSttsHstryBean;
@Resource(name = "crdnPayerHstryMapper")
private CrdnPayerHstryMapper crdnPayerHstryMapper;
@Resource(name="crdnInfoMapper") @Resource(name="crdnInfoMapper")
private CrdnInfoMapper crdnInfoMapper; private CrdnInfoMapper crdnInfoMapper;

@ -19,9 +19,8 @@ import cokr.xit.base.file.service.FileQuery;
import cokr.xit.base.file.service.bean.FileBean; import cokr.xit.base.file.service.bean.FileBean;
import cokr.xit.base.file.web.FileInfoFactory; import cokr.xit.base.file.web.FileInfoFactory;
import cokr.xit.fims.cmmn.CrdnPayerAddrHstry; import cokr.xit.fims.cmmn.CrdnPayerAddrHstry;
import cokr.xit.fims.cmmn.CrdnPayerHstry;
import cokr.xit.fims.cmmn.CrdnSttsHstry; import cokr.xit.fims.cmmn.CrdnSttsHstry;
import cokr.xit.fims.cmmn.dao.CrdnPayerHstryMapper; import cokr.xit.fims.cmmn.dao.CrdnPayerAddrHstryMapper;
import cokr.xit.fims.cmmn.dao.CrdnSttsHstryMapper; import cokr.xit.fims.cmmn.dao.CrdnSttsHstryMapper;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
@ -72,8 +71,8 @@ public class CrdnCvlcptSubBean extends AbstractBean {
@Resource(name = "answerWordsMapper") @Resource(name = "answerWordsMapper")
private AnswerWordsMapper answerWordsMapper; private AnswerWordsMapper answerWordsMapper;
@Resource(name = "crdnPayerHstryMapper") @Resource(name = "crdnPayerAddrHstryMapper")
private CrdnPayerHstryMapper crdnPayerHstryMapper; private CrdnPayerAddrHstryMapper crdnPayerAddrHstryMapper;
@Resource(name = "crdnSttsHstryMapper") @Resource(name = "crdnSttsHstryMapper")
private CrdnSttsHstryMapper crdnSttsHstryMapper; private CrdnSttsHstryMapper crdnSttsHstryMapper;
@ -254,7 +253,7 @@ public class CrdnCvlcptSubBean extends AbstractBean {
crdnPayerAddrHstry.setRtpyrId(crdn.getRtpyrId()); crdnPayerAddrHstry.setRtpyrId(crdn.getRtpyrId());
crdnPayerAddrHstry.setAddrSn(crdn.getAddrSn()); crdnPayerAddrHstry.setAddrSn(crdn.getAddrSn());
int rtnNocs = crdnPayerHstryMapper.insertCrdnPayerAddrHstry(crdnPayerAddrHstry); int rtnNocs = crdnPayerAddrHstryMapper.insertCrdnPayerAddrHstry(crdnPayerAddrHstry);
if(rtnNocs != 1) { if(rtnNocs != 1) {
throw new RuntimeException("단속민원답변 수정 중 단속납부자변경 이력 등록에 실패하였습니다."); throw new RuntimeException("단속민원답변 수정 중 단속납부자변경 이력 등록에 실패하였습니다.");
} }

@ -190,8 +190,6 @@ public class Excl01Controller extends ApplicationController {
boolean json = jsonResponse(); boolean json = jsonResponse();
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/excl/excl01020-info"); ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/excl/excl01020-info");
mav.addObject("info", json ? levyExclInfo : toJson(levyExclInfo));
// View(jsp)에서 사용할 공통코드를 조회 // View(jsp)에서 사용할 공통코드를 조회
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM021", "FIM022"); Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM021", "FIM022");
addCodes(commonCodes, mav, "FIM021", "FIM022"); addCodes(commonCodes, mav, "FIM021", "FIM022");
@ -202,6 +200,7 @@ public class Excl01Controller extends ApplicationController {
.addObject("prefixUrl", CLASS_URL) // prefixUrl .addObject("prefixUrl", CLASS_URL) // prefixUrl
.addObject("FIM021List", commonCodes.get("FIM021")) // 부과 제외 구분 코드(LEVY_EXCL_SE_CD) .addObject("FIM021List", commonCodes.get("FIM021")) // 부과 제외 구분 코드(LEVY_EXCL_SE_CD)
.addObject("FIM022List", commonCodes.get("FIM022")) // 부과 제외 사유 코드(LEVY_EXCL_RSN_CD) .addObject("FIM022List", commonCodes.get("FIM022")) // 부과 제외 사유 코드(LEVY_EXCL_RSN_CD)
.addObject("info", json ? levyExclInfo : toJson(levyExclInfo))
.addObject("saveCallbackFuncName", hReq.getParameter("saveCallbackFuncName")) .addObject("saveCallbackFuncName", hReq.getParameter("saveCallbackFuncName"))
.addObject("savedCallbackFuncName", hReq.getParameter("savedCallbackFuncName")) .addObject("savedCallbackFuncName", hReq.getParameter("savedCallbackFuncName"))
; ;

Loading…
Cancel
Save