From 97937a8a35d6860a14bc371320b1d5ba418c4647 Mon Sep 17 00:00:00 2001 From: eastargh Date: Mon, 22 Jun 2026 16:56:20 +0900 Subject: [PATCH] =?UTF-8?q?UMS=20=EB=B0=9C=EC=86=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/eactive/eai/rms/common/login/MainController.java | 2 +- .../eactive/eai/rms/ext/djb/inflow/InflowTokenService.java | 7 ++++--- .../java/com/eactive/eai/rms/ext/djb/ums/UmsManager.java | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/eactive/eai/rms/common/login/MainController.java b/src/main/java/com/eactive/eai/rms/common/login/MainController.java index 3994a19..d36fb90 100644 --- a/src/main/java/com/eactive/eai/rms/common/login/MainController.java +++ b/src/main/java/com/eactive/eai/rms/common/login/MainController.java @@ -202,7 +202,7 @@ public class MainController implements InterceptorSkipController { // SMS 인증번호 생성 및 발송 String authCode = smsAuthService.generateAuthCode(); - boolean sent = smsAuthService.sendAuthCode(userInfo.getCphnno(), authCode); + boolean sent = smsAuthService.sendAuthCode(userInfo, authCode); if (!sent) { return LoginResponseDto.builder() diff --git a/src/main/java/com/eactive/eai/rms/ext/djb/inflow/InflowTokenService.java b/src/main/java/com/eactive/eai/rms/ext/djb/inflow/InflowTokenService.java index 5b00c96..b106517 100644 --- a/src/main/java/com/eactive/eai/rms/ext/djb/inflow/InflowTokenService.java +++ b/src/main/java/com/eactive/eai/rms/ext/djb/inflow/InflowTokenService.java @@ -1,5 +1,6 @@ package com.eactive.eai.rms.ext.djb.inflow; +import java.util.HashMap; import java.util.List; import org.slf4j.Logger; @@ -9,7 +10,6 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.eactive.apim.portal.template.entity.MessageCode; -import com.eactive.eai.rms.data.entity.man.role.Role; import com.eactive.eai.rms.data.entity.onl.djb.inflow.InflowTokenInsufficient; import com.eactive.eai.rms.ext.djb.ums.UmsManager; @@ -32,8 +32,9 @@ public class InflowTokenService { for (InflowTokenInsufficient info : rows) { log.debug("유량제어 토큰 획득 실패: {}-{} 최근 {}분 동안 {}건", info.getEaisvcname(), info.getEaisvcdesc(), rangeMinute, info.getCnt()); String message = "유량제어 토큰 획득 실패하였습니다 \n" + info.getEaisvcname(); - - ums.sendMessenger("api-monitor", MessageCode.INFLOW_TOKEN_FAILED, message); + HashMap params = new HashMap(); + params.put("message", message); + ums.send("api-monitor", MessageCode.INFLOW_TOKEN_FAILED, params); } } } diff --git a/src/main/java/com/eactive/eai/rms/ext/djb/ums/UmsManager.java b/src/main/java/com/eactive/eai/rms/ext/djb/ums/UmsManager.java index 0b1251c..48b7a52 100644 --- a/src/main/java/com/eactive/eai/rms/ext/djb/ums/UmsManager.java +++ b/src/main/java/com/eactive/eai/rms/ext/djb/ums/UmsManager.java @@ -29,7 +29,7 @@ public class UmsManager { private final WebhookService webhookService; /** - * roleId에 해당하는 역할을 가진 내부직원에게 UMS(sms,email,messenger) 발송 + * roleId에 해당하는 역할을 가진 직원에게 UMS(sms,email,messenger) 발송 * @param role * @param messageCode * @param params