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

Loading…
Cancel
Save