修复新增用户时如果没有有效公告信息就报错的问题
parent
f21bed01e0
commit
9738b97629
|
@ -243,7 +243,9 @@ public class SysUserServiceImpl implements SysUserService {
|
||||||
// 新增用户与角色管理
|
// 新增用户与角色管理
|
||||||
insertUserRole(user);
|
insertUserRole(user);
|
||||||
// 新增用户与公告关联
|
// 新增用户与公告关联
|
||||||
|
if (noticeIds !=null && !noticeIds.isEmpty()){
|
||||||
userMapper.insertUserNotice(user.getUserId(), noticeIds);
|
userMapper.insertUserNotice(user.getUserId(), noticeIds);
|
||||||
|
}
|
||||||
return rows;
|
return rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue