he2802 3 жил өмнө
parent
commit
81538959dc

+ 2 - 2
zhongzheng-system/src/main/java/com/zhongzheng/modules/bank/service/impl/QuestionServiceImpl.java

@@ -433,7 +433,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
 
 
     public Long findProjectId(String project,Long eduId){
     public Long findProjectId(String project,Long eduId){
         if(project!=null){
         if(project!=null){
-            String key = "PROJ_"+project;
+            String key = "PROJ_"+project+eduId;
             Long value = redisCache.getCacheObject(key);
             Long value = redisCache.getCacheObject(key);
             if(value!=null){
             if(value!=null){
                 if(value==0L){
                 if(value==0L){
@@ -455,7 +455,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
 
 
     public Long findBusinessId(String business,Long projectId){
     public Long findBusinessId(String business,Long projectId){
         if(business!=null){
         if(business!=null){
-            String key = "BUS_"+business;
+            String key = "BUS_"+business+projectId;
             Long value = redisCache.getCacheObject(key);
             Long value = redisCache.getCacheObject(key);
             if(value!=null){
             if(value!=null){
                 if(value==0L){
                 if(value==0L){