Browse Source

修改教职职位

snihwxf 3 tuần trước cách đây
mục cha
commit
e40a993fb2

+ 1 - 2
src/main/java/com/xjrsoft/module/teacher/service/impl/TeacherbaseManagerServiceImpl.java

@@ -386,8 +386,7 @@ public class TeacherbaseManagerServiceImpl extends MPJBaseServiceImpl<XjrUserMap
 
         userPostRelationService.remove(Wrappers.<UserPostRelation>query().lambda().eq(UserPostRelation::getUserId, xjrUser.getId()));
 
-        SaSession tokenSession = StpUtil.getTokenSession();
-        tokenSession.delete(GlobalConstant.LOGIN_USER_POST_INFO_KEY);
+        redisUtil.delete(GlobalConstant.LOGIN_IDENTITY_CACHE_PREFIX + xjrUser.getId());
 
         List<UserPostRelation> userPostRelationList = new ArrayList<>();
         if (StrUtil.isNotBlank(dto.getPostIds())) {