UMS 발송

This commit is contained in:
eastargh
2026-06-22 16:56:20 +09:00
parent a8e124db5d
commit 97937a8a35
3 changed files with 6 additions and 5 deletions
@@ -202,7 +202,7 @@ public class MainController implements InterceptorSkipController {
// SMS 인증번호 생성 및 발송 // SMS 인증번호 생성 및 발송
String authCode = smsAuthService.generateAuthCode(); String authCode = smsAuthService.generateAuthCode();
boolean sent = smsAuthService.sendAuthCode(userInfo.getCphnno(), authCode); boolean sent = smsAuthService.sendAuthCode(userInfo, authCode);
if (!sent) { if (!sent) {
return LoginResponseDto.builder() return LoginResponseDto.builder()
@@ -1,5 +1,6 @@
package com.eactive.eai.rms.ext.djb.inflow; package com.eactive.eai.rms.ext.djb.inflow;
import java.util.HashMap;
import java.util.List; import java.util.List;
import org.slf4j.Logger; import org.slf4j.Logger;
@@ -9,7 +10,6 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import com.eactive.apim.portal.template.entity.MessageCode; 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.data.entity.onl.djb.inflow.InflowTokenInsufficient;
import com.eactive.eai.rms.ext.djb.ums.UmsManager; import com.eactive.eai.rms.ext.djb.ums.UmsManager;
@@ -32,8 +32,9 @@ public class InflowTokenService {
for (InflowTokenInsufficient info : rows) { for (InflowTokenInsufficient info : rows) {
log.debug("유량제어 토큰 획득 실패: {}-{} 최근 {}분 동안 {}건", info.getEaisvcname(), info.getEaisvcdesc(), rangeMinute, info.getCnt()); log.debug("유량제어 토큰 획득 실패: {}-{} 최근 {}분 동안 {}건", info.getEaisvcname(), info.getEaisvcdesc(), rangeMinute, info.getCnt());
String message = "유량제어 토큰 획득 실패하였습니다 \n" + info.getEaisvcname(); String message = "유량제어 토큰 획득 실패하였습니다 \n" + info.getEaisvcname();
HashMap<String,Object> params = new HashMap<String,Object>();
ums.sendMessenger("api-monitor", MessageCode.INFLOW_TOKEN_FAILED, message); params.put("message", message);
ums.send("api-monitor", MessageCode.INFLOW_TOKEN_FAILED, params);
} }
} }
} }
@@ -29,7 +29,7 @@ public class UmsManager {
private final WebhookService webhookService; private final WebhookService webhookService;
/** /**
* roleId에 해당하는 역할을 가진 내부직원에게 UMS(sms,email,messenger) 발송 * roleId에 해당하는 역할을 가진 직원에게 UMS(sms,email,messenger) 발송
* @param role * @param role
* @param messageCode * @param messageCode
* @param params * @param params