main
tamguo 7 years ago
parent 992184638b
commit 6cf74c28a1

@ -1,5 +1,7 @@
package com.tamguo.web.tiku;
import java.util.Arrays;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
@ -48,7 +50,7 @@ public class QuestionContrller {
Page<QuestionEntity> page = new Page<>();
page.setCurrent(offset);
page.setSize(limit);
Page<QuestionEntity> questionList = iQuestionService.selectPage(page , Condition.create().eq("chapter_id", chapterId));
Page<QuestionEntity> questionList = iQuestionService.selectPage(page , Condition.create().eq("chapter_id", chapterId).orderDesc(Arrays.asList("id")));
model.addObject("subject", subject);
model.addObject("course", course);
model.addObject("chapter", chapter);

@ -25,7 +25,7 @@
<div class="title-bar">
<div class="title-inner">
<ul class="paper-crumbs clearfix">
<a th:href="${domainName + 'chapter/'+subjectId+'/'+courseId+'.html'}" class="crumbs-link">
<a th:href="${domainName + 'course/'+courseId+'.html'}" class="crumbs-link">
<li>章节学习</li>
<li th:text="${'&nbsp;·&nbsp;' + parentChapter.name}">&nbsp;·&nbsp;第一章</li>
<li class="last" th:text="${'&nbsp;·&nbsp;' + chapter.name}">&nbsp;·&nbsp;社会工作的要素</li>

Loading…
Cancel
Save