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..cd21767e 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 @@ -7,8 +7,6 @@ import javax.annotation.Resource; import org.springframework.stereotype.Component; -import cokr.xit.foundation.component.AbstractBean; -import cokr.xit.foundation.data.DataObject; import cokr.xit.base.crypto.bean.XitAria; import cokr.xit.base.file.FileInfo; import cokr.xit.base.file.service.bean.FileBean; @@ -19,6 +17,8 @@ import cokr.xit.fims.payer.service.bean.PayerBean; import cokr.xit.fims.rent.Lsct; import cokr.xit.fims.rent.RentQuery; import cokr.xit.fims.rent.dao.LsctMapper; +import cokr.xit.foundation.component.AbstractBean; +import cokr.xit.foundation.data.DataObject; /**임대차계약 대장 정보 관리 Bean * @@ -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())); }