Browse Source

试题列表排序

tags/正式3.2.0
雍文秀 2 years ago
parent
commit
a8c5525ae2
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      sstudy/src/main/resources/mapper/question/QuestionMapper.xml

+ 2
- 2
sstudy/src/main/resources/mapper/question/QuestionMapper.xml View File

@@ -180,7 +180,7 @@
180 180
             and q.complexity=#{question.complexity}
181 181
         </if>
182 182
         </where>
183
-        group by q.questionid order by q.qstate,q.questionid desc
183
+        group by q.questionid order by q.qstate,q.createtime desc
184 184
     </select>
185 185
     <!--章节、知识点选题-->
186 186
     <select id="listForSelect" resultType="com.xhkjedu.sstudy.vo.question.SelectQuestionVo">
@@ -239,7 +239,7 @@
239 239
                 and qc.userid=#{question.createid}
240 240
             </if>
241 241
         </if>
242
-        group by q.questionid order by q.questionid desc
242
+        group by q.questionid order by q.createtime desc
243 243
     </select>
244 244
     <!--修改试题状态-->
245 245
     <update id="updateQuestionState">

Loading…
Cancel
Save