From d9201eb6039a42702661df1c19f74c81724a4a48 Mon Sep 17 00:00:00 2001 From: eastargh Date: Fri, 26 Jun 2026 14:08:22 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8B=B4=EB=8B=B9=EC=9E=90=EC=97=B0=EB=9D=BD?= =?UTF-8?q?=EC=B2=98=20=EC=95=94=EB=B3=B5=ED=98=B8=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../comm/unifbwk/UnifbwkManService.java | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/eactive/eai/rms/onl/manage/comm/unifbwk/UnifbwkManService.java b/src/main/java/com/eactive/eai/rms/onl/manage/comm/unifbwk/UnifbwkManService.java index 4ca7c00..67defe0 100644 --- a/src/main/java/com/eactive/eai/rms/onl/manage/comm/unifbwk/UnifbwkManService.java +++ b/src/main/java/com/eactive/eai/rms/onl/manage/comm/unifbwk/UnifbwkManService.java @@ -15,6 +15,7 @@ import org.springframework.data.domain.Sort; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import com.eactive.apim.portal.jpa.PersonalDataEncryptConverter; import com.eactive.apim.portal.user.entity.UserInfo; import com.eactive.eai.data.converter.LocalDateTimeFormatters; import com.eactive.eai.data.entity.onl.unifbwk.UnifBwkTp; @@ -33,6 +34,7 @@ public class UnifbwkManService extends BaseService { private final BizManService bizManService; private final UserInfoService userInfoService; private final UserDao userDao; + private final PersonalDataEncryptConverter encryptConverter = new PersonalDataEncryptConverter(); @Autowired public UnifbwkManService(UnifBwkTpService unifBwkTpService, @@ -54,7 +56,8 @@ public class UnifbwkManService extends BaseService { private UnifbwkUI getUserOrgInfo(UnifBwkTp unifBwkTp) { UnifbwkUI unifbwkUI = unifbwkUIMapper.toVo(unifBwkTp); - String rspblpsncntpctnt = unifBwkTp.getRspblpsncntpctnt(); + String rspblpsncntpctnt = encryptConverter.convertToEntityAttribute(unifBwkTp.getRspblpsncntpctnt()); + unifbwkUI.setRsPblpsncntpcTnt(rspblpsncntpctnt); Optional userInfo = Optional.empty(); if (StringUtils.isNotBlank(rspblpsncntpctnt)) { @@ -75,10 +78,13 @@ public class UnifbwkManService extends BaseService { UnifBwkTp unifBwkTp = unifBwkTpService.getById(eaiBzwkDstcd); UnifbwkUI unifbwkUI = unifbwkUIMapper.toVo(unifBwkTp); + String rspblpsncntpctnt = encryptConverter.convertToEntityAttribute(unifBwkTp.getRspblpsncntpctnt()); + unifbwkUI.setRsPblpsncntpcTnt(rspblpsncntpctnt); + Optional optionalUserInfo = Optional.empty(); - if (StringUtils.isNotBlank(unifBwkTp.getRspblpsncntpctnt())) { - optionalUserInfo = userInfoService.findByOfctelno(unifBwkTp.getRspblpsncntpctnt()); + if (StringUtils.isNotBlank(rspblpsncntpctnt)) { + optionalUserInfo = userInfoService.findByOfctelno(rspblpsncntpctnt); } if (optionalUserInfo.isPresent()) { UserInfo userInfo = optionalUserInfo.get(); @@ -90,8 +96,9 @@ public class UnifbwkManService extends BaseService { public void insert(UnifbwkUI unifbwkUI) { UnifBwkTp unifBwkTp = unifbwkUIMapper.toEntity(unifbwkUI); + unifBwkTp.setRspblpsncntpctnt(encryptConverter.convertToDatabaseColumn(unifBwkTp.getRspblpsncntpctnt())); unifBwkTpService.save(unifBwkTp); - + bizManService.transactionAdminBiz(unifbwkUI.getEaiBzwkDstcd()); } @@ -113,6 +120,7 @@ public class UnifbwkManService extends BaseService { unifbwkUI.setTrackAsisKey2Name(trackAsisKey2Name); unifbwkUIMapper.updateToEntity(unifbwkUI, unifBwkTp); + unifBwkTp.setRspblpsncntpctnt(encryptConverter.convertToDatabaseColumn(rspblPsnCntpCtnt)); unifBwkTpService.save(unifBwkTp); } @@ -132,7 +140,7 @@ public class UnifbwkManService extends BaseService { map.put("TRACKASISKEY1NAME", e.getTrackasiskey1name()); map.put("TRACKASISKEY2NAME", e.getTrackasiskey2name()); map.put("RSEMPNAME", e.getRsempname()); - map.put("RSPBLPSNCNTPCTNT", e.getRspblpsncntpctnt()); + map.put("RSPBLPSNCNTPCTNT", encryptConverter.convertToEntityAttribute(e.getRspblpsncntpctnt())); map.put("GROUPCOCD", e.getGroupcocd()); if (e.getLastModDtm() != null) { map.put("LAST_MOD_DTM", @@ -174,6 +182,7 @@ public class UnifbwkManService extends BaseService { } UnifBwkTp unifBwkTp = unifbwkUIMapper.toEntity(unifbwkUI); + unifBwkTp.setRspblpsncntpctnt(encryptConverter.convertToDatabaseColumn(unifBwkTp.getRspblpsncntpctnt())); unifBwkTpService.save(unifBwkTp); } @@ -206,6 +215,7 @@ public class UnifbwkManService extends BaseService { } unifbwkUIMapper.updateToEntity(unifbwkUI, optionalUnifBwkTp.get()); + optionalUnifBwkTp.get().setRspblpsncntpctnt(encryptConverter.convertToDatabaseColumn(unifbwkUI.getRsPblpsncntpcTnt())); unifBwkTpService.save(optionalUnifBwkTp.get()); } }