납부자 수정, 납부자주소 이력 소스 수정.

main
JoJH 1 week ago
parent 9e897ad2d2
commit 8ef747cecc

@ -2,6 +2,7 @@ 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.CrdnPayerHstry; 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;
@ -13,10 +14,12 @@ import cokr.xit.foundation.data.DataObject;
* <pre> * <pre>
* ============ ============ * ============ ============
* 2023-08-16 leebj * 2023-08-16 leebj
* 2024-11-05 JoJH
* ================================ * ================================
* </pre> * </pre>
*/ */
public interface CrdnPayerHstryService { public interface CrdnPayerHstryService {
/** . /** .
* @param req * @param req
* @return * @return
@ -45,5 +48,6 @@ public interface CrdnPayerHstryService {
* <li> false</li> * <li> false</li>
* </ul> * </ul>
*/ */
boolean createHstryUpdateCrdnPayer(CrdnPayerHstry crdnPayerHstry); boolean createHstryUpdateCrdnPayerAddr(CrdnPayerAddrHstry crdnPayerAddrHstry);
} }

@ -6,6 +6,7 @@ import javax.annotation.Resource;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import cokr.xit.fims.cmmn.CrdnPayerAddrHstry;
import cokr.xit.fims.cmmn.CrdnPayerHstry; 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.CrdnPayerHstryService;
@ -19,11 +20,13 @@ import cokr.xit.foundation.data.DataObject;
* <pre> * <pre>
* ============ ============ * ============ ============
* 2023-08-16 leebj * 2023-08-16 leebj
* 2024-11-05 JoJH
* ================================ * ================================
* </pre> * </pre>
*/ */
@Service("crdnPayerHstryService") @Service("crdnPayerHstryService")
public class CrdnPayerHstryServiceBean extends AbstractServiceBean implements CrdnPayerHstryService { public class CrdnPayerHstryServiceBean extends AbstractServiceBean implements CrdnPayerHstryService {
/** 단속 납부자 이력 정보 Bean */ /** 단속 납부자 이력 정보 Bean */
@Resource(name = "crdnPayerHstryBean") @Resource(name = "crdnPayerHstryBean")
private CrdnPayerHstryBean crdnPayerHstryBean; private CrdnPayerHstryBean crdnPayerHstryBean;
@ -44,7 +47,8 @@ public class CrdnPayerHstryServiceBean extends AbstractServiceBean implements Cr
} }
@Override @Override
public boolean createHstryUpdateCrdnPayer(CrdnPayerHstry crdnPayerHstry) { public boolean createHstryUpdateCrdnPayerAddr(CrdnPayerAddrHstry crdnPayerAddrHstry) {
return crdnPayerHstryBean.createHstryUpdateCrdnPayer(crdnPayerHstry); return crdnPayerHstryBean.createHstryUpdateCrdnPayerAddr(crdnPayerAddrHstry);
} }
} }

@ -18,6 +18,7 @@ import cokr.xit.base.file.FileInfo.Relation;
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.base.file.web.FileInfoFactory; import cokr.xit.base.file.web.FileInfoFactory;
import cokr.xit.fims.cmmn.CrdnPayerAddrHstry;
import cokr.xit.fims.cmmn.CrdnPayerHstry; 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.CrdnPayerHstryMapper;
@ -244,29 +245,17 @@ public class CrdnCvlcptSubBean extends AbstractBean {
throw new RuntimeException("단속민원답변 수정 중 단속정보변경에 실패하였습니다."); throw new RuntimeException("단속민원답변 수정 중 단속정보변경에 실패하였습니다.");
} }
//단속 납부자 변경 이력 등록
if(((String)nonQueryRequest.get("changePayerYn")).equals("Y")) {
CrdnPayerHstry crdnPayerHstry = new CrdnPayerHstry();
crdnPayerHstry.setCrdnId(crdn.getCrdnId());
crdnPayerHstry.setRtpyrId(crdn.getRtpyrId());
boolean retSuccess = crdnPayerHstryMapper.insertCrdnPayerHstry(crdnPayerHstry);
if(!retSuccess) {
throw new RuntimeException("단속민원답변 수정 중 단속납부자변경 이력 등록에 실패하였습니다.");
}
}
//단속 납부자 주소 변경 이력 등록 //단속 납부자 주소 변경 이력 등록
if(((String)nonQueryRequest.get("changePayerAddrYn")).equals("Y")) { if(((String)nonQueryRequest.get("changePayerYn")).equals("Y") ||
CrdnPayerHstry crdnPayerHstry = new CrdnPayerHstry(); ((String)nonQueryRequest.get("changePayerAddrYn")).equals("Y")) {
CrdnPayerAddrHstry crdnPayerAddrHstry = new CrdnPayerAddrHstry();
crdnPayerHstry.setCrdnId(crdn.getCrdnId()); crdnPayerAddrHstry.setCrdnId(crdn.getCrdnId());
crdnPayerHstry.setRtpyrId(crdn.getRtpyrId()); crdnPayerAddrHstry.setRtpyrId(crdn.getRtpyrId());
crdnPayerHstry.setAddrSn(crdn.getAddrSn()); crdnPayerAddrHstry.setAddrSn(crdn.getAddrSn());
boolean retSuccess = crdnPayerHstryMapper.insertCrdnPayerAddrHstry(crdnPayerHstry); int rtnNocs = crdnPayerHstryMapper.insertCrdnPayerAddrHstry(crdnPayerAddrHstry);
if(!retSuccess) { if(rtnNocs != 1) {
throw new RuntimeException("단속민원답변 수정 중 단속납부자변경 이력 등록에 실패하였습니다."); throw new RuntimeException("단속민원답변 수정 중 단속납부자변경 이력 등록에 실패하였습니다.");
} }
} }

@ -197,11 +197,11 @@ public class Excl01Controller extends ApplicationController {
addCodes(commonCodes, mav, "FIM021", "FIM022"); addCodes(commonCodes, mav, "FIM021", "FIM022");
return mav return mav
.addObject("callPurpose", req.getCallPurpose()) // 호출 용도 .addObject("callPurpose", req.getCallPurpose()) // 호출 용도
.addObject("pageName", "excl01020") // jsp pageName .addObject("pageName", "excl01020") // jsp pageName
.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("saveCallbackFuncName", hReq.getParameter("saveCallbackFuncName")) .addObject("saveCallbackFuncName", hReq.getParameter("saveCallbackFuncName"))
.addObject("savedCallbackFuncName", hReq.getParameter("savedCallbackFuncName")) .addObject("savedCallbackFuncName", hReq.getParameter("savedCallbackFuncName"))
; ;

@ -35,6 +35,8 @@ import cokr.xit.interfaces.lvis.service.reg.BasicInfoRequest;
@RequestMapping(name="납부자", value="/payer") @RequestMapping(name="납부자", value="/payer")
public class PayerController extends ApplicationController { public class PayerController extends ApplicationController {
public static final String CLASS_URL = "/payer";
public class METHOD_URL { public class METHOD_URL {
public static final String public static final String
create = "/create.do" // 납부자 등록 create = "/create.do" // 납부자 등록
@ -158,16 +160,16 @@ public class PayerController extends ApplicationController {
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/payer/payer01020-info"); ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/payer/payer01020-info");
DataObject payerInfo = payerService.getPayerInfo(req); DataObject payerInfo = payerService.getPayerInfo(req);
mav.addObject("info", json ? payerInfo : toJson(payerInfo));
// View(jsp)에서 사용할 공통코드를 조회 // View(jsp)에서 사용할 공통코드를 조회
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM011", "FIM014", "FIM054"); Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM011", "FIM014");
return mav return mav
.addObject("pageName", "payer01020") // jsp pageName .addObject("pageName", "payer01020") // jsp pageName
.addObject("Info", json ? payerInfo : toJson(payerInfo)) .addObject("prefixUrl", CLASS_URL) // prefixUrl
.addObject("FIM011List", commonCodes.get("FIM011")) // 납부자 구분 코드(RTPYR_SE_CD) .addObject("FIM011List", commonCodes.get("FIM011")) // 납부자 구분 코드(RTPYR_SE_CD)
.addObject("FIM014List", commonCodes.get("FIM014")) // 납부자 상태 코드(RTPYR_STTS_CD) .addObject("FIM014List", commonCodes.get("FIM014")) // 납부자 상태 코드(RTPYR_STTS_CD)
.addObject("FIM054List", commonCodes.get("FIM054")) // 업무 구분 코드(TASK_SE_CD)
; ;
} }

Loading…
Cancel
Save