Parcourir la source

取题排序问题

zhangbin il y a 1 an
Parent
commit
85f3628ad0

+ 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());