From 16fdc88bddf108f9fc5200f8a12753d37dded250 Mon Sep 17 00:00:00 2001 From: leebj Date: Thu, 26 Sep 2024 09:23:33 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=A5=EC=95=A0=EC=9D=B8=ED=91=9C=EC=A7=80?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../piss/web/PissController.java | 51 ++++++++++++++++++- 1 file changed, 49 insertions(+), 2 deletions(-) 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")