From cb04ed62736efe70cf5babe534220b4ae4c1ca67 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Thu, 20 Jan 2022 21:08:42 +0800
Subject: [PATCH] 1. 定时任务调整 2. 成绩修改审核通过修改状态调整 3. 考试统计查询修改

---
 src/main/java/org/springblade/modules/exam/mapper/ExamSubjectChoicesMapper.xml |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/springblade/modules/exam/mapper/ExamSubjectChoicesMapper.xml b/src/main/java/org/springblade/modules/exam/mapper/ExamSubjectChoicesMapper.xml
index b126c16..17f6af0 100644
--- a/src/main/java/org/springblade/modules/exam/mapper/ExamSubjectChoicesMapper.xml
+++ b/src/main/java/org/springblade/modules/exam/mapper/ExamSubjectChoicesMapper.xml
@@ -13,9 +13,10 @@
         <if test="examSubjectChoices.subjectName!=null and  examSubjectChoices.subjectName!=''">
             and esc.subject_name like concat('%', #{examSubjectChoices.subjectName},'%')
         </if>
-        <if test="examSubjectChoices.choicesType!=null and  examSubjectChoices.choicesType!=''">
+        <if test="examSubjectChoices.choicesType!=null">
             and choices_type = #{examSubjectChoices.choicesType}
         </if>
+        order by id desc
     </select>
 
     <!--查询试卷绑定的题目-->
@@ -33,8 +34,8 @@
         <if test="examSubjectChoices.subjectName!=null and  examSubjectChoices.subjectName!=''">
             and esc.subject_name like concat('%', #{examSubjectChoices.subjectName},'%')
         </if>
-        <if test="examSubjectChoices.choicesType!=null and  examSubjectChoices.choicesType!=''">
-            and esc.choices_type = #{examSubjectChoices.choices_type}
+        <if test="examSubjectChoices.choicesType!=null">
+            and esc.choices_type = #{examSubjectChoices.choicesType}
         </if>
     </select>
 

--
Gitblit v1.9.3