Преглед изворни кода

不同类型请求题目接口问题

chen пре 5 година
родитељ
комит
dd38edf6b2

+ 0 - 35
ssj-kmt-exercise-service-impl/src/main/java/com/ssj/service/kmt/kmt/service/impl/KmtExerciseSubmitServiceImpl.java

@@ -180,41 +180,6 @@ public class KmtExerciseSubmitServiceImpl implements KmtExerciseSubmitService {
         return result;
     }
 
-    /**
-     * 获取更新的题目的当前状态下的题数
-     * @param questions
-     * @param type
-     * @return
-     */
-    private int getQuestionStatusCount (List<KmtExerciseQuestion> questions, int type){
-        int result = 0;
-        if (type == 0){
-            for (KmtExerciseQuestion q :questions){
-                if (q.getDealStatus() == 0 || q.getDealStatus() == 1) {
-                    result += 1;
-                }
-            }
-        } else if (type == 1){
-            for (KmtExerciseQuestion q :questions){
-                if (q.getDealStatus() == 3 || q.getDealStatus() == 7) {
-                    result += 1;
-                }
-            }
-        } else if (type == 4){
-            for (KmtExerciseQuestion q :questions){
-                if (q.getDealStatus() == 5 || q.getDealStatus() == 8) {
-                    result += 1;
-                }
-            }
-        } else if (type == 5){
-            for (KmtExerciseQuestion q :questions){
-                if (q.getDealStatus() == 9 || q.getDealStatus() == 10) {
-                    result += 1;
-                }
-            }
-        }
-        return result;
-    }
 
     @Override
     @Transactional(propagation = Propagation.NOT_SUPPORTED)