차적조회(행정정보공동이용센터) 추가

main
이범준 2 months ago
parent cd014f0be7
commit 0f9dd320c1

@ -5,6 +5,7 @@ import java.util.List;
import cokr.xit.fims.payer.Payer;
import cokr.xit.fims.payer.PayerQuery;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.interfaces.lvis.service.reg.BasicInfoExtRequest;
import cokr.xit.interfaces.lvis.service.reg.BasicInfoRequest;
/** .
@ -72,6 +73,12 @@ public interface PayerService {
*/
Payer getVehicleOwner(BasicInfoRequest req);
/** () .
* @param req
* @return ()
*/
Payer getVehicleOwner(BasicInfoExtRequest req);
/** .<br />
* @param req
* @return

@ -11,6 +11,7 @@ import cokr.xit.fims.payer.PayerQuery;
import cokr.xit.fims.payer.service.PayerService;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.interfaces.lvis.service.reg.BasicInfoExtRequest;
import cokr.xit.interfaces.lvis.service.reg.BasicInfoRequest;
/** .
@ -66,6 +67,12 @@ public class PayerServiceBean extends AbstractServiceBean implements PayerServic
return !payers.isEmpty() ? payers.get(0) : null;
}
@Override
public Payer getVehicleOwner(BasicInfoExtRequest req) {
List<Payer> payers = payerBean.getVehicleOwners(req);
return !payers.isEmpty() ? payers.get(0) : null;
}
@Override
public DataObject getPayerInfo(PayerQuery req) {
if (req.getCallPurpose() == null) {

@ -18,6 +18,7 @@ import cokr.xit.fims.payer.PayerQuery;
import cokr.xit.fims.payer.service.PayerService;
import cokr.xit.fims.task.Task;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.interfaces.lvis.service.reg.BasicInfoExtRequest;
import cokr.xit.interfaces.lvis.service.reg.BasicInfoRequest;
/**
@ -112,14 +113,35 @@ public class PayerController extends ApplicationController {
@Task("CMN")
@PostMapping(name = "차량/납부자 조회", value = "/vehicle.do")
public ModelAndView getVehicleOwner(BasicInfoRequest req) {
Payer payer = payerService.getVehicleOwner(req);
public ModelAndView getVehicleOwner(HttpServletRequest hreq) {
Payer payer = null;
if(1 == 1) { //TODO:행공센연계여부
BasicInfoExtRequest req = new BasicInfoExtRequest();
req.setInqire_se_code(hreq.getParameter("inqire_se_code"));
req.setLevy_stdde(hreq.getParameter("levy_stdde"));
req.setVhrno(hreq.getParameter("vhrno"));
req.setVin(hreq.getParameter("vin"));
payer = payerService.getVehicleOwner(req);
} else {
BasicInfoRequest req = new BasicInfoRequest();
req.setSggCd(hreq.getParameter("sggCd"));
req.setInqire_se_code(hreq.getParameter("inqire_se_code"));
req.setLevy_stdde(hreq.getParameter("levy_stdde"));
req.setOwner_mber_no(hreq.getParameter("owner_mber_no"));
req.setVhrno(hreq.getParameter("vhrno"));
req.setVin(hreq.getParameter("vin"));
payer = payerService.getVehicleOwner(req);
}
boolean found = payer != null;
return new ModelAndView("jsonView")
.addObject("found", found)
.addObject("rtpyrId", found ? payer.getRtpyrId() : null)
.addObject("addrSn", found ? payer.getAddrSn() : null)
.addObject("vehicle", found ? payer.getVehicleInfo() : null);
ModelAndView mav = new ModelAndView("jsonView");
mav.addObject("found", found);
mav.addObject("rtpyrId", found ? payer.getRtpyrId() : null);
mav.addObject("addrSn", found ? payer.getAddrSn() : null);
mav.addObject("vehicle", found ? payer.getVehicleInfo() : null);
return mav;
}
/** .

Loading…
Cancel
Save