he2802 3 vuotta sitten
vanhempi
commit
0e663819b0

+ 2 - 2
zhongzheng-system/src/main/java/com/zhongzheng/modules/course/service/impl/CourseSectionServiceImpl.java

@@ -362,7 +362,7 @@ public class CourseSectionServiceImpl extends ServiceImpl<CourseSectionMapper, C
 
     public Long findProjectId(String project,Long eduId){
         if(project!=null){
-            String key = "PROJ_"+project;
+            String key = "PROJ_"+project+eduId;
             Long value = redisCache.getCacheObject(key);
             if(value!=null){
                 if(value==0L){
@@ -384,7 +384,7 @@ public class CourseSectionServiceImpl extends ServiceImpl<CourseSectionMapper, C
 
     public Long findBusinessId(String business,Long projectId){
         if(business!=null){
-            String key = "BUS_"+business;
+            String key = "BUS_"+business+projectId;
             Long value = redisCache.getCacheObject(key);
             if(value!=null){
                 if(value==0L){