數據處理

main
tamguo 7 years ago
parent a2f1303e11
commit 42282dbcda

@ -33,7 +33,7 @@ public class QuestionContrller {
private ICourseService iCourseService; private ICourseService iCourseService;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@RequestMapping(value = {"questionlist/{chapterId}-{offset}-{limit}"}, method = RequestMethod.GET) @RequestMapping(value = {"questionlist/{chapterId}-{offset}-{limit}.html"}, method = RequestMethod.GET)
public ModelAndView questionList(@PathVariable String chapterId , @PathVariable Integer offset , public ModelAndView questionList(@PathVariable String chapterId , @PathVariable Integer offset ,
@PathVariable Integer limit , ModelAndView model){ @PathVariable Integer limit , ModelAndView model){
try { try {
@ -90,7 +90,7 @@ public class QuestionContrller {
} }
@RequestMapping(value = {"question/getQuestion/{uid}"}, method = RequestMethod.GET) @RequestMapping(value = {"question/getQuestion/{uid}.html"}, method = RequestMethod.GET)
@ResponseBody @ResponseBody
public Result getQuestion(@PathVariable String uid , ModelAndView model){ public Result getQuestion(@PathVariable String uid , ModelAndView model){
return Result.successResult(iQuestionService.selectById(uid)); return Result.successResult(iQuestionService.selectById(uid));

@ -7,13 +7,13 @@
<meta name="keyword" content="探果题库,数学试卷,高校试题,名校,名校试题,名校试卷,高校名师,名师专访,名师教案,名师课堂试题库,试卷库,智能题库,历年真题,模拟试题,押题,预测试题,高考,会计证,会计从业,会计师,经济师,施工员,建造师,建筑师,造价师,职业资格,证券资格,考研,计算机考试,建筑考试,财会类,医卫类,护士资格,公务员,知识点,试题,试卷"/> <meta name="keyword" content="探果题库,数学试卷,高校试题,名校,名校试题,名校试卷,高校名师,名师专访,名师教案,名师课堂试题库,试卷库,智能题库,历年真题,模拟试题,押题,预测试题,高考,会计证,会计从业,会计师,经济师,施工员,建造师,建筑师,造价师,职业资格,证券资格,考研,计算机考试,建筑考试,财会类,医卫类,护士资格,公务员,知识点,试题,试卷"/>
<meta name="author" content="Tamguo Team" /> <meta name="author" content="Tamguo Team" />
<meta name="copyright" content="Tamguo" /> <meta name="copyright" content="Tamguo" />
<link rel="stylesheet" type="text/css" th:href="${setting.domain + 'css/main.css'}"></link> <link rel="stylesheet" type="text/css" th:href="${domainName + 'css/main.css'}"></link>
<link rel="stylesheet" type="text/css" th:href="${setting.domain + 'css/reset.css'}" /> <link rel="stylesheet" type="text/css" th:href="${domainName + 'css/reset.css'}" />
<link rel="stylesheet" type="text/css" th:href="${setting.domain + 'css/iconfont.css'}" /> <link rel="stylesheet" type="text/css" th:href="${domainName + 'css/iconfont.css'}" />
<link rel="stylesheet" type="text/css" th:href="${setting.domain + 'css/questionList.css'}" /> <link rel="stylesheet" type="text/css" th:href="${domainName + 'css/questionList.css'}" />
<link rel="stylesheet" type="text/css" th:href="${setting.domain + 'css/footer.css'}" /> <link rel="stylesheet" type="text/css" th:href="${domainName + 'css/footer.css'}" />
<link rel="stylesheet" type="text/css" th:href="${setting.domain + 'css/member/minilogin.css'}" /> <link rel="stylesheet" type="text/css" th:href="${domainName + 'css/member/minilogin.css'}" />
<link type="favicon" rel="shortcut icon" th:href="${setting.domain + 'images/favicon.png'}" /> <link type="favicon" rel="shortcut icon" th:href="${domainName + 'images/favicon.png'}" />
</head> </head>
<body> <body>
@ -25,7 +25,7 @@
<div class="title-bar"> <div class="title-bar">
<div class="title-inner"> <div class="title-inner">
<ul class="paper-crumbs clearfix"> <ul class="paper-crumbs clearfix">
<a th:href="${setting.domain + 'chapter/'+subjectId+'/'+courseId+'.html'}" class="crumbs-link"> <a th:href="${domainName + 'chapter/'+subjectId+'/'+courseId+'.html'}" class="crumbs-link">
<li>章节学习</li> <li>章节学习</li>
<li th:text="${'&nbsp;·&nbsp;' + parentChapter.name}">&nbsp;·&nbsp;第一章</li> <li th:text="${'&nbsp;·&nbsp;' + parentChapter.name}">&nbsp;·&nbsp;第一章</li>
<li class="last" th:text="${'&nbsp;·&nbsp;' + chapter.name}">&nbsp;·&nbsp;社会工作的要素</li> <li class="last" th:text="${'&nbsp;·&nbsp;' + chapter.name}">&nbsp;·&nbsp;社会工作的要素</li>
@ -40,7 +40,7 @@
<div class="bd-content" style="visibility: visible;"> <div class="bd-content" style="visibility: visible;">
<div class="quelist-wrap"> <div class="quelist-wrap">
<div th:attr="data-id=${q.uid},data-index=${qStat.index + 1}" th:class="${qStat.size == (qStat.index + 1)} ? 'question-box que-multi last' : 'question-box que-multi'" th:each="q,qStat:${questionList.records}"> <div th:attr="data-id=${q.id},data-index=${qStat.index + 1}" th:class="${qStat.size == (qStat.index + 1)} ? 'question-box que-multi last' : 'question-box que-multi'" th:each="q,qStat:${questionList.records}">
<div class="question-box-inner"> <div class="question-box-inner">
<span class="queindex-wrap"><span class="queindex" th:text="${qStat.index + 1}">1</span></span> <span class="queindex-wrap"><span class="queindex" th:text="${qStat.index + 1}">1</span></span>
<span class="pieces"> <span class="pieces">
@ -52,25 +52,25 @@
</div> </div>
</div> </div>
<div class="view-analyse"> <div class="view-analyse">
<a class="view-link" th:href="${setting.domain + 'question/' + q.uid + '.html'}">查看题目解析 &gt;</a> <a class="view-link" th:href="${domainName + 'question/' + q.id + '.html'}">查看题目解析 &gt;</a>
</div> </div>
</div> </div>
</div> </div>
<div class="nexttolearn"> <div class="nexttolearn">
<div class="next-inner clearfix"> <div class="next-inner clearfix">
<a th:if="${questionList.pages - questionList.current} > 0" th:href="${setting.domain + 'questionlist/' +chapter.uid + '-'+(questionList.current+1)+'-'+questionList.size+'.html'}" class="tolearn">继续学习</a> <a th:if="${questionList.pages - questionList.current} > 0" th:href="${domainName + 'questionlist/' +chapter.id + '-'+(questionList.current+1)+'-'+questionList.size+'.html'}" class="tolearn">继续学习</a>
<a th:if="${questionList.pages - questionList.current} == 0" th:href="${setting.domain + 'course/' + courseId +'.html'}" class="tolearn">已学完, 返回章节学习</a> <a th:if="${questionList.pages - questionList.current} == 0" th:href="${domainName + 'course/' + courseId +'.html'}" class="tolearn">已学完, 返回章节学习</a>
<a th:if="${nextChapter == null}" class="next-done">棒棒哒,已是最后一个知识点</a> <a th:if="${nextChapter == null}" class="next-done">棒棒哒,已是最后一个知识点</a>
<a th:if="${nextChapter != null}" th:href="${setting.domain + 'questionlist/'+nextChapter.uid+'-1-5.html'}" class="nextpoint">学习下一知识点</a> <a th:if="${nextChapter != null}" th:href="${domainName + 'questionlist/'+nextChapter.id+'-1-5.html'}" class="nextpoint">学习下一知识点</a>
</div> </div>
<span class="done" style="margin-left: -31px; left: 50%;"> <span class="done" style="margin-left: -31px; left: 50%;">
已完结 已完结
</span> </span>
</div> </div>
<div class="crumbs"> <div class="crumbs">
<a th:href="${setting.domain}">探果题库</a> <a th:href="${domainName}">探果题库</a>
<a th:href="${setting.domain + 'subject/' + subject.uid + '.html'}" th:text="${subject.name}">社会工作师</a> <a th:href="${domainName + 'subject/' + subject.id + '.html'}" th:text="${subject.name}">社会工作师</a>
<a th:href="${setting.domain + 'chapter/' + subject.uid + '/'+course.uid+'.html'}" th:utext="${course != null} ? '&gt;' + ${course.name}:''">综合能力(中级)</a> &gt; <a th:href="${domainName + 'chapter/' + subject.id + '/'+course.id+'.html'}" th:utext="${course != null} ? '&gt;' + ${course.name}:''">综合能力(中级)</a> &gt;
<span th:utext="${chapter.name}">中国社会工作在不同发展阶段的特点</span> <span th:utext="${chapter.name}">中国社会工作在不同发展阶段的特点</span>
</div> </div>
@ -127,7 +127,7 @@
</body> </body>
<script type="text/javascript" src="http://static.tamguo.com/static/js/jquery-1.8.3.min.js" ></script> <script type="text/javascript" src="http://static.tamguo.com/static/js/jquery-1.8.3.min.js" ></script>
<script type="text/javascript" src="http://static.tamguo.com/static/js/jquery.iDialog.js"></script> <script type="text/javascript" src="http://static.tamguo.com/static/js/jquery.iDialog.js"></script>
<script type="text/javascript" th:src="${setting.domain + 'js/main.js'}" ></script> <script type="text/javascript" th:src="${domainName + 'js/main.js'}" ></script>
<script type="text/javascript" th:src="${setting.domain + 'js/questionList.js'}" ></script> <script type="text/javascript" th:src="${domainName + 'js/questionList.js'}" ></script>
<script type="text/javascript" th:src="${setting.domain + 'js/member/minlogin.js'}"></script> <script type="text/javascript" th:src="${domainName + 'js/member/minlogin.js'}"></script>
</html> </html>

Loading…
Cancel
Save