mirror of
https://github.com/BgaSol/sol-cloud
synced 2026-04-21 17:17:16 +00:00
fix(request-log): route primary error notifications by admin role
This commit is contained in:
parent
8482a9db1b
commit
e23c89a843
1 changed files with 2 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ import java.util.function.Function;
|
|||
import java.util.stream.Collectors;
|
||||
|
||||
import static com.bgasol.common.constant.value.SystemConfigValues.ADMIN_ROLE_ID;
|
||||
import static com.bgasol.common.constant.value.SystemConfigValues.ADMIN_USER_ID;
|
||||
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
|
|
@ -91,7 +92,7 @@ public class RequestLogService extends BaseTreeService<RequestLogEntity, Request
|
|||
try {
|
||||
Map<String, List<String>> roleUserGroup = this.findFromTableBatch(
|
||||
UserRoleTable.NAME, UserRoleTable.ROLE_ID, List.of(ADMIN_ROLE_ID), UserRoleTable.USER_ID);
|
||||
List<String> userIds = roleUserGroup.getOrDefault(ADMIN_ROLE_ID, List.of());
|
||||
List<String> userIds = roleUserGroup.getOrDefault(ADMIN_ROLE_ID, List.of(ADMIN_USER_ID));
|
||||
for (String userId : userIds) {
|
||||
MessageEnvelopeEntity<RequestLogEntity> messageEnvelopeEntity = new MessageEnvelopeEntity<>();
|
||||
messageEnvelopeEntity.setBusinessType(BUSINESS_TYPE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue