|
@@ -68,6 +68,7 @@
|
68
|
68
|
<result property="count" column="count"></result>
|
69
|
69
|
<result property="directorid" column="directorid"></result>
|
70
|
70
|
<result property="directorname" column="directorname"></result>
|
|
71
|
+ <result property="hearfile" column="hearfile"></result>
|
71
|
72
|
<result property="belong" column="belong"></result>
|
72
|
73
|
<result property="createid" column="createid"></result>
|
73
|
74
|
<result property="source" column="source"></result>
|
|
@@ -114,7 +115,7 @@
|
114
|
115
|
<select id="findById" resultMap="questionResult">
|
115
|
116
|
select q.questionid,q.score,q.complexity,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.belong
|
116
|
117
|
,q.qtypeid,q.qtypename,q.createtime,q.source,q.year,q.region,q.schoolname,q.subjectid,q.schoolid
|
117
|
|
- ,qd.directorid,d.directorall directorname,d.lsbid,
|
|
118
|
+ ,qd.directorid,d.directorall directorname,d.lsbid,q.hearfile
|
118
|
119
|
sb.level,sb.subjectid,s.subjectname,v.versionname,sb.lsbname
|
119
|
120
|
,(select a.areaall from t_areazone a where a.areacode=q.region)areaall
|
120
|
121
|
from t_question q left join t_question_director qd on q.questionid=qd.questionid
|
|
@@ -127,7 +128,7 @@
|
127
|
128
|
<!--管理端试题列表-->
|
128
|
129
|
<select id="findAll" resultType="com.xhkjedu.sstudy.vo.question.QuestionVo">
|
129
|
130
|
select q.questionid,q.score,q.complexity,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.belong,q.createid
|
130
|
|
- ,q.qtypeid,q.qtypename,q.createtime,q.count,q.qstate,q.source,q.year,q.region,q.schoolname
|
|
131
|
+ ,q.qtypeid,q.qtypename,q.createtime,q.count,q.qstate,q.source,q.year,q.region,q.schoolname,q.hearfile
|
131
|
132
|
from t_question q left join t_question_director qd on q.questionid=qd.questionid
|
132
|
133
|
<if test="question.belong!=null and question.belong==5">
|
133
|
134
|
left join t_question_collect qc on q.questionid = qc.questionid
|
|
@@ -189,7 +190,7 @@
|
189
|
190
|
<select id="listForSelect" resultType="com.xhkjedu.sstudy.vo.question.SelectQuestionVo">
|
190
|
191
|
select q.questionid,q.score,q.complexity,q.qstem,q.qoption,q.qanswer,q.qanalyze
|
191
|
192
|
,q.qtypeid,q.qtypename,q.count,GROUP_CONCAT(p.pointname)points,q.ctype,q.belong,q.createid
|
192
|
|
- ,q.source,q.year,q.region,q.schoolname,q.qlevel
|
|
193
|
+ ,q.source,q.year,q.region,q.schoolname,q.qlevel,q.hearfile
|
193
|
194
|
from t_question q left join t_question_point qp on q.questionid = qp.questionid
|
194
|
195
|
left join t_point p on p.pointid=qp.pointid
|
195
|
196
|
left join t_question_director qd on q.questionid=qd.questionid
|