From e392ae92a9600ddbb04da9bdc103ad75b5a7f62f Mon Sep 17 00:00:00 2001 From: leebj Date: Mon, 4 Nov 2024 15:02:38 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9C=84=ED=83=9D=EC=8A=A4=20=EC=9A=B4?= =?UTF-8?q?=EC=A0=84=EC=9E=90=EB=B3=80=EA=B2=BD=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/rent/web/Rent04Controller.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/cokr/xit/fims/rent/web/Rent04Controller.java b/src/main/java/cokr/xit/fims/rent/web/Rent04Controller.java index 46158ddf..e27c467e 100644 --- a/src/main/java/cokr/xit/fims/rent/web/Rent04Controller.java +++ b/src/main/java/cokr/xit/fims/rent/web/Rent04Controller.java @@ -265,11 +265,14 @@ public class Rent04Controller extends ApplicationController { if(find) { resultRow.set("K", searchResult1.string("HIRER_NM")); - if(searchResult1.string("HIRER_SE_CD").equals("99")) { //TODO: 면허번호입력여부 - resultRow.set("L", searchResult1.string("HIRER_REG_NO")); - } else { - resultRow.set("M", searchResult1.string("HIRER_REG_NO")); - } + String hirerRegNo = searchResult1.string("HIRER_REG_NO"); + + if(hirerRegNo.length() == 13 || hirerRegNo.length() == 10) { + resultRow.set("M", hirerRegNo); + } else { + resultRow.set("L", hirerRegNo); + } + resultRow.set("N", searchResult1.string("HIRER_ADDR")); resultRow.set("O", searchResult1.string("HIRER_DTL_ADDR")); resultRow.set("P", searchResult1.string("HIRER_ZIP"));