|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**납부자 정보를 반환한다.
|
|
|
|
|