From ea9de163fb7fe88f9016e7b2332bfdfc6ca1e863 Mon Sep 17 00:00:00 2001 From: jjh Date: Mon, 2 Sep 2024 18:03:11 +0900 Subject: [PATCH] =?UTF-8?q?view=20=ED=85=8C=EC=9D=B4=EB=B8=94=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=EC=8B=9C=20=EC=9E=84=EB=8C=80=EA=B8=B0=EC=97=85?= =?UTF-8?q?=EB=B2=88=ED=98=B8=20=EC=95=94=ED=98=B8=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/rent/service/bean/LsctBean.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main/java/cokr/xit/fims/rent/service/bean/LsctBean.java b/src/main/java/cokr/xit/fims/rent/service/bean/LsctBean.java index b5276cb9..49f32d1f 100644 --- a/src/main/java/cokr/xit/fims/rent/service/bean/LsctBean.java +++ b/src/main/java/cokr/xit/fims/rent/service/bean/LsctBean.java @@ -58,8 +58,18 @@ public class LsctBean extends AbstractBean { // 기존 과태료 시스템에서 사용하던 암/복호화 함수 사용을 위해서.. XitAria crypto = new XitAria("xit-aria"); - // 임대기업번호 암호화 - if (req.getSchEntNo() != null && !req.getSchEntNo().equals("")) { + // 연계 view 테이블 검색 조건에 사용할 소유주 암호화 하기 + if (req.getSchEntNos() != null && req.getSchEntNos().length > 0 ) { // 임대기업번호s 암호화 + int tnocs = req.getSchEntNos().length; + + String[] strArray = req.getSchEntNos(); + String[] encArray = new String[tnocs]; + + for (int iLoop = 0; iLoop < tnocs; iLoop++) { + encArray[iLoop] = crypto.encrypt(strArray[iLoop]); + } + req.setOmJnos(encArray); + } else { // 임대기업번호 암호화 req.setOmJno(crypto.encrypt(req.getSchEntNo())); }