|
|
@@ -134,13 +134,13 @@ public class TeacherbaseManagerServiceImpl extends MPJBaseServiceImpl<XjrUserMap
|
|
|
userRoleRelation.setRoleId(RoleEnum.TEACHER.getCode());
|
|
|
userRoleRelationMapper.insert(userRoleRelation);
|
|
|
|
|
|
- CompletableFuture.runAsync(() -> {
|
|
|
- List<User> list = userService.list();
|
|
|
- redisUtil.set(GlobalConstant.USER_CACHE_KEY, list);
|
|
|
+ List<User> list = userService.list();
|
|
|
+ list.add(BeanUtil.toBean(xjrUser, User.class));
|
|
|
+ redisUtil.set(GlobalConstant.USER_CACHE_KEY, list);
|
|
|
|
|
|
- List<UserDeptRelation> deptRelationList = userDeptRelationMapper.selectList(Wrappers.lambdaQuery(UserDeptRelation.class));
|
|
|
- redisUtil.set(GlobalConstant.USER_DEPT_RELATION_CACHE_KEY, deptRelationList);
|
|
|
- });
|
|
|
+
|
|
|
+ List<UserDeptRelation> deptRelationList = userDeptRelationMapper.selectList(Wrappers.lambdaQuery(UserDeptRelation.class));
|
|
|
+ redisUtil.set(GlobalConstant.USER_DEPT_RELATION_CACHE_KEY, deptRelationList);
|
|
|
return true;
|
|
|
}
|
|
|
|