Browse Source

Merge remote-tracking branch 'origin/master' into ywx

tags/正式版本
雍文秀 2 years ago
parent
commit
7391562f6e

+ 1
- 1
sstudy/src/main/java/com/xhkjedu/sstudy/controller/question/QuestionController.java View File

@@ -62,7 +62,7 @@ public class QuestionController {
62 62
         Integer pageSize = tQuestion.getPageSize();
63 63
         N_Utils.validation(new Object[]{page,"显示页码",1,pageSize,"显示条数",1});
64 64
         PageHelper.startPage(page, pageSize);
65
-        List<TQuestion> list = tQuestionService.findAll(tQuestion);
65
+        List<QuestionVo> list = tQuestionService.findAll(tQuestion);
66 66
         PageResult pageResult = PageUtil.getPageResult(new PageInfo(list));
67 67
         return new ResultVo(0,"获取列表成功",pageResult);
68 68
     }

+ 1
- 2
sstudy/src/main/java/com/xhkjedu/sstudy/mapper/question/QuestionMapper.java View File

@@ -3,7 +3,6 @@ package com.xhkjedu.sstudy.mapper.question;
3 3
 import com.xhkjedu.sstudy.base.TkMapper;
4 4
 import com.xhkjedu.sstudy.model.question.TQuestion;
5 5
 import com.xhkjedu.sstudy.vo.question.QuestionVo;
6
-import com.xhkjedu.sstudy.vo.question.SelectQuestionVo;
7 6
 import org.apache.ibatis.annotations.Param;
8 7
 
9 8
 import java.util.List;
@@ -44,7 +43,7 @@ public interface QuestionMapper extends TkMapper<TQuestion> {
44 43
      * @Date 2020/6/9 8:48
45 44
      * @return java.util.List<com.xhkjedu.model.question.TQuestion>
46 45
      **/
47
-    List<TQuestion> findAll(@Param("question") TQuestion question);
46
+    List<QuestionVo> findAll(@Param("question") TQuestion question);
48 47
 
49 48
     /**
50 49
      * 更新单个试题状态

+ 1
- 1
sstudy/src/main/java/com/xhkjedu/sstudy/service/question/QuestionService.java View File

@@ -86,7 +86,7 @@ public class QuestionService {
86 86
     }
87 87
 
88 88
     //获取列表
89
-    public List <TQuestion> findAll(TQuestion question) {
89
+    public List <QuestionVo> findAll(TQuestion question) {
90 90
         return questionMapper.findAll(question);
91 91
     }
92 92
 

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

@@ -136,7 +136,7 @@
136 136
     <!--管理端试题列表-->
137 137
     <select id="findAll" resultType="com.xhkjedu.sstudy.vo.question.QuestionVo">
138 138
         select q.questionid,q.score,q.complexity,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.belong,q.createid
139
-        ,q.qtypeid,q.qtypename,q.createtime,q.count,q.qstate,q.source,q.year,q.region,q.schoolname,q.hearfile,q.qlevel
139
+        ,q.qtypeid,q.qtypename,q.createtime,q.count,q.qstate,q.source,q.year,q.region,q.schoolname,q.hashear,q.hearfile,q.qlevel
140 140
         from t_question q left join t_question_director qd on q.questionid=qd.questionid
141 141
         <if test="question.belong!=null and question.belong==5">
142 142
             left join t_question_collect qc on q.questionid = qc.questionid

Loading…
Cancel
Save