소스 검색

取题排序问题

zhangbin 1 년 전
부모
커밋
85f3628ad0
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      jpcj-service/src/main/java/com/miaxis/question/service/impl/QuestionInfoKtNewServiceImpl.java

+ 4 - 0
jpcj-service/src/main/java/com/miaxis/question/service/impl/QuestionInfoKtNewServiceImpl.java

@@ -177,6 +177,8 @@ public class QuestionInfoKtNewServiceImpl extends ServiceImpl<QuestionInfoKtNewM
         } while (shouldRetry);
 
         sql.append(" ) as db");
+        sql.append(" order by question_type,diff_degree ");
+
         System.out.println(sql.toString());
         allList = questionInfoKtNewMapper.selectTestK14QuestionInfoList(sql.toString());
 
@@ -253,6 +255,8 @@ public class QuestionInfoKtNewServiceImpl extends ServiceImpl<QuestionInfoKtNewM
         } while (shouldRetry);
 
         sql.append(" ) as db");
+        sql.append(" order by question_type,diff_degree ");
+
         System.out.println(sql.toString());
         allList = questionInfoKtNewMapper.selectTestK14QuestionInfoList(sql.toString());