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

main
JoJH 1 week ago
parent 9e897ad2d2
commit 8ef747cecc

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

@ -6,6 +6,7 @@ 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;
@ -19,11 +20,13 @@ import cokr.xit.foundation.data.DataObject;
* <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;
@ -44,7 +47,8 @@ public class CrdnPayerHstryServiceBean extends AbstractServiceBean implements Cr
}
@Override
public boolean createHstryUpdateCrdnPayer(CrdnPayerHstry crdnPayerHstry) {
return crdnPayerHstryBean.createHstryUpdateCrdnPayer(crdnPayerHstry);
public boolean createHstryUpdateCrdnPayerAddr(CrdnPayerAddrHstry crdnPayerAddrHstry) {
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.bean.FileBean;
import cokr.xit.base.file.web.FileInfoFactory;
import cokr.xit.fims.cmmn.CrdnPayerAddrHstry;
import cokr.xit.fims.cmmn.CrdnPayerHstry;
import cokr.xit.fims.cmmn.CrdnSttsHstry;
import cokr.xit.fims.cmmn.dao.CrdnPayerHstryMapper;
@ -244,29 +245,17 @@ public class CrdnCvlcptSubBean extends AbstractBean {
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")) {
CrdnPayerHstry crdnPayerHstry = new CrdnPayerHstry();
if(((String)nonQueryRequest.get("changePayerYn")).equals("Y") ||
((String)nonQueryRequest.get("changePayerAddrYn")).equals("Y")) {
CrdnPayerAddrHstry crdnPayerAddrHstry = new CrdnPayerAddrHstry();
crdnPayerHstry.setCrdnId(crdn.getCrdnId());
crdnPayerHstry.setRtpyrId(crdn.getRtpyrId());
crdnPayerHstry.setAddrSn(crdn.getAddrSn());
crdnPayerAddrHstry.setCrdnId(crdn.getCrdnId());
crdnPayerAddrHstry.setRtpyrId(crdn.getRtpyrId());
crdnPayerAddrHstry.setAddrSn(crdn.getAddrSn());
boolean retSuccess = crdnPayerHstryMapper.insertCrdnPayerAddrHstry(crdnPayerHstry);
if(!retSuccess) {
int rtnNocs = crdnPayerHstryMapper.insertCrdnPayerAddrHstry(crdnPayerAddrHstry);
if(rtnNocs != 1) {
throw new RuntimeException("단속민원답변 수정 중 단속납부자변경 이력 등록에 실패하였습니다.");
}
}

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

Loading…
Cancel
Save