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

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

3
 import com.xhkjedu.sstudy.base.TkMapper;
3
 import com.xhkjedu.sstudy.base.TkMapper;
4
 import com.xhkjedu.sstudy.model.question.TQuestion;
4
 import com.xhkjedu.sstudy.model.question.TQuestion;
5
 import com.xhkjedu.sstudy.vo.question.QuestionVo;
5
 import com.xhkjedu.sstudy.vo.question.QuestionVo;
6
-import com.xhkjedu.sstudy.vo.question.SelectQuestionVo;
7
 import org.apache.ibatis.annotations.Param;
6
 import org.apache.ibatis.annotations.Param;
8
 
7
 
9
 import java.util.List;
8
 import java.util.List;
44
      * @Date 2020/6/9 8:48
43
      * @Date 2020/6/9 8:48
45
      * @return java.util.List<com.xhkjedu.model.question.TQuestion>
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
     }
86
     }
87
 
87
 
88
     //获取列表
88
     //获取列表
89
-    public List <TQuestion> findAll(TQuestion question) {
89
+    public List <QuestionVo> findAll(TQuestion question) {
90
         return questionMapper.findAll(question);
90
         return questionMapper.findAll(question);
91
     }
91
     }
92
 
92
 

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

136
     <!--管理端试题列表-->
136
     <!--管理端试题列表-->
137
     <select id="findAll" resultType="com.xhkjedu.sstudy.vo.question.QuestionVo">
137
     <select id="findAll" resultType="com.xhkjedu.sstudy.vo.question.QuestionVo">
138
         select q.questionid,q.score,q.complexity,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.belong,q.createid
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
         from t_question q left join t_question_director qd on q.questionid=qd.questionid
140
         from t_question q left join t_question_director qd on q.questionid=qd.questionid
141
         <if test="question.belong!=null and question.belong==5">
141
         <if test="question.belong!=null and question.belong==5">
142
             left join t_question_collect qc on q.questionid = qc.questionid
142
             left join t_question_collect qc on q.questionid = qc.questionid

Loading…
Cancel
Save