|
|
@ -3,6 +3,7 @@ package org.dromara.business.service.impl; |
|
|
|
import cn.hutool.core.collection.ListUtil; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.dubbo.config.annotation.DubboReference; |
|
|
|
import org.dromara.business.domain.BusinessAlert; |
|
|
|
import org.dromara.business.domain.bo.BusinessAlertBo; |
|
|
@ -45,6 +46,7 @@ import static org.dromara.common.core.constant.Constants.FLY_COUNT; |
|
|
|
* |
|
|
|
*预警统计Service业务层处理 |
|
|
|
*/ |
|
|
|
@Slf4j |
|
|
|
@RequiredArgsConstructor |
|
|
|
@Service |
|
|
|
public class BusinessAlertStatisticsServiceImpl implements IBusinessAlertStatisticsService { |
|
|
@ -776,6 +778,7 @@ public class BusinessAlertStatisticsServiceImpl implements IBusinessAlertStatist |
|
|
|
} |
|
|
|
|
|
|
|
private void createPermissions(BusinessAlertBo businessAlertBo) { |
|
|
|
try { |
|
|
|
RoleDTO roleDTO = LoginHelper.getLoginUser().getRoles().getFirst(); |
|
|
|
|
|
|
|
//自定义权限
|
|
|
@ -803,5 +806,9 @@ public class BusinessAlertStatisticsServiceImpl implements IBusinessAlertStatist |
|
|
|
//本部门
|
|
|
|
businessAlertBo.setDeptIdList(List.of(LoginHelper.getDeptId())); |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
businessAlertBo.setDeptIdList(ListUtil.empty()); |
|
|
|
log.error(e.getMessage(),e); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|