From 566a5ed747f73b493c7c4a7cb3c573ec5a23058a Mon Sep 17 00:00:00 2001 From: itning Date: Thu, 23 May 2019 13:12:01 +0800 Subject: [PATCH] fix bug --- pom.xml | 2 +- .../shw/server/service/group/impl/GroupServiceImpl.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index d596430..56cf514 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ top.yunshu shw_server - 1.8.0-RELEASE + 1.8.1-RELEASE shw_server Student HomeWork Management System diff --git a/src/main/java/top/yunshu/shw/server/service/group/impl/GroupServiceImpl.java b/src/main/java/top/yunshu/shw/server/service/group/impl/GroupServiceImpl.java index 7312969..cff5094 100644 --- a/src/main/java/top/yunshu/shw/server/service/group/impl/GroupServiceImpl.java +++ b/src/main/java/top/yunshu/shw/server/service/group/impl/GroupServiceImpl.java @@ -91,7 +91,9 @@ public Group createGroup(String groupName, String teacherName, String teacherId) @Caching(evict = { @CacheEvict(cacheNames = "groupOfStudent", key = "'regex:'+#studentId+'*'"), //学生加入群组,教师作业详情缓存清空 - @CacheEvict(cacheNames = "workDetail", allEntries = true) + @CacheEvict(cacheNames = "workDetail", allEntries = true), + @CacheEvict(cacheNames = "studentDoneWork", key = "'regex:'+#studentId+'*'"), + @CacheEvict(cacheNames = "studentUndoneWork", key = "'regex:'+#studentId+'*'") }) @Override public Group joinGroup(String code, String studentId) {