diff --git a/src/main/java/externalsystem/piss/web/PissController.java b/src/main/java/externalsystem/piss/web/PissController.java index 45ff985b..3d146ba4 100644 --- a/src/main/java/externalsystem/piss/web/PissController.java +++ b/src/main/java/externalsystem/piss/web/PissController.java @@ -118,10 +118,57 @@ public class PissController extends AbstractController { @PostMapping(name="장애인표지조회", value="rid/ynservice/swsdn/DisabledParkingYnService") @ResponseBody - public String DisabledParkingYnService(HttpServletRequest hreq, @RequestBody HashMap map) { + public String DisabledParkingYnService(HttpServletRequest hreq, @RequestBody String xml) { + System.out.println("RequestBody"); + System.out.println(xml); - return ""; + String reqEncStart = ""; + String reqEncEnd = ""; + + String reqEncString = xml.split(reqEncStart)[1].split(reqEncEnd)[0]; + String reqDecString = ""; + reqEncString = reqEncString.trim(); + boolean encYn = false; + if(reqEncString.startsWith("<")) { + reqDecString = reqEncString; + } else { + encYn = true; + //... + } + + String reqVhrno = reqDecString.split("")[1].split("")[0]; + + String parkingBsblYn = "N"; + if(reqVhrno.endsWith("9")) { + parkingBsblYn = "Y"; + } + + String resDecString = ""; + resDecString += ""+reqVhrno+""; + resDecString += ""+parkingBsblYn+""; + resDecString += "N"; + + String resEncString = ""; + if(!encYn) { + resEncString = resDecString; + } else { + //... + } + + String result = ""; + result += ""; + result += ""; + result += "
"; + result += "
"; + result += ""; + result += ""; + result += resEncString; + result += ""; + result += ""; + result += "
"; + + return result; } @PostMapping(name="운전면허증", value="unknown/License")