feat(notification): 添加异步通知服务并重构事件处理逻辑
- 新增 AppNotificationService 处理应用内事件通知 - 新增 SmsNotificationService 处理短信通知功能 - 配置 AsyncConfig 异步执行器支持事件通知处理 - 重构 CsEventPOServiceImpl 事件处理逻辑,分离通知功能 - 添加 @EnableAsync 注解启用异步处理 - 优化 CsDeviceUserPOServiceImpl 用户查询返回空对象 - 修复 WlUserServiceImpl 中的空指针检查逻辑
This commit is contained in:
@@ -89,7 +89,7 @@ public class WlUserServiceImpl implements IWlUserService {
|
||||
//现根据设备获取主用户
|
||||
DevUserVO vo = csDeviceUserFeignClient.queryUserById(item).getData();
|
||||
CsDeviceUserPO po = new CsDeviceUserPO();
|
||||
if (!Objects.isNull(vo)) {
|
||||
if (!Objects.isNull(vo) && !Objects.isNull(vo.getMasterUser())) {
|
||||
po.setPrimaryUserId(vo.getMasterUser().getId());
|
||||
} else {
|
||||
po.setPrimaryUserId(param.getUserId());
|
||||
|
||||
Reference in New Issue
Block a user