|
@@ -180,41 +180,6 @@ public class KmtExerciseSubmitServiceImpl implements KmtExerciseSubmitService {
|
|
|
return result;
|
|
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
|
|
@Override
|
|
|
@Transactional(propagation = Propagation.NOT_SUPPORTED)
|
|
@Transactional(propagation = Propagation.NOT_SUPPORTED)
|