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

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

@ -11,6 +11,7 @@ import cokr.xit.fims.payer.PayerQuery;
import cokr.xit.fims.payer.service.PayerService; import cokr.xit.fims.payer.service.PayerService;
import cokr.xit.foundation.component.AbstractServiceBean; import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
import cokr.xit.interfaces.lvis.service.reg.BasicInfoExtRequest;
import cokr.xit.interfaces.lvis.service.reg.BasicInfoRequest; 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; 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 @Override
public DataObject getPayerInfo(PayerQuery req) { public DataObject getPayerInfo(PayerQuery req) {
if (req.getCallPurpose() == null) { 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.payer.service.PayerService;
import cokr.xit.fims.task.Task; import cokr.xit.fims.task.Task;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
import cokr.xit.interfaces.lvis.service.reg.BasicInfoExtRequest;
import cokr.xit.interfaces.lvis.service.reg.BasicInfoRequest; import cokr.xit.interfaces.lvis.service.reg.BasicInfoRequest;
/** /**
@ -112,14 +113,35 @@ public class PayerController extends ApplicationController {
@Task("CMN") @Task("CMN")
@PostMapping(name = "차량/납부자 조회", value = "/vehicle.do") @PostMapping(name = "차량/납부자 조회", value = "/vehicle.do")
public ModelAndView getVehicleOwner(BasicInfoRequest req) { public ModelAndView getVehicleOwner(HttpServletRequest hreq) {
Payer payer = payerService.getVehicleOwner(req); 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; boolean found = payer != null;
return new ModelAndView("jsonView")
.addObject("found", found) ModelAndView mav = new ModelAndView("jsonView");
.addObject("rtpyrId", found ? payer.getRtpyrId() : null) mav.addObject("found", found);
.addObject("addrSn", found ? payer.getAddrSn() : null) mav.addObject("rtpyrId", found ? payer.getRtpyrId() : null);
.addObject("vehicle", found ? payer.getVehicleInfo() : null); mav.addObject("addrSn", found ? payer.getAddrSn() : null);
mav.addObject("vehicle", found ? payer.getVehicleInfo() : null);
return mav;
} }
/** . /** .

Loading…
Cancel
Save