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"));