|
@@ -43,7 +43,7 @@ public class BaseAlarmNoticeServiceImpl extends AbstractCrudService<BaseAlarmNot
|
|
|
}
|
|
|
baseAlarmNotice.setCreateBy(SecurityUtils.getUsername());
|
|
|
baseAlarmNotice.setCreateTime(LocalDateTime.now());
|
|
|
- if (Objects.nonNull(SecurityUtils.getLoginUser())){
|
|
|
+ if (Objects.nonNull(SecurityUtils.getLoginUser().getSysUser().getDeptId())){
|
|
|
baseAlarmNotice.setDeptId(SecurityUtils.getLoginUser().getSysUser().getDeptId().intValue());
|
|
|
}
|
|
|
baseAlarmNotice.setTenantId(SecurityUtils.getTenantId());
|