|
@@ -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="hashear" column="hashear"></result>
|
71
|
72
|
<result property="hearfile" column="hearfile"></result>
|
72
|
73
|
<result property="belong" column="belong"></result>
|
73
|
74
|
<result property="createid" column="createid"></result>
|
|
@@ -102,7 +103,7 @@
|
102
|
103
|
where qp.questionid=#{questionid}
|
103
|
104
|
</select>
|
104
|
105
|
<select id="listQuestions" resultMap="questionResult">
|
105
|
|
- select q.questionid,q.score,q.complexity,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.belong
|
|
106
|
+ select q.questionid,q.score,q.complexity,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.belong,q.hashear,q.hearfile
|
106
|
107
|
,q.qtypeid,q.qtypename,q.createtime,u.username createname,q.count,qd.directorid,d.directorname,0 pointid
|
107
|
108
|
from t_question q left join t_user u on u.userid = q.createid
|
108
|
109
|
left join t_question_director qd on q.questionid=qd.questionid
|
|
@@ -116,7 +117,7 @@
|
116
|
117
|
<select id="findById" resultMap="questionResult">
|
117
|
118
|
select q.questionid,q.score,q.complexity,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.belong
|
118
|
119
|
,q.qtypeid,q.qtypename,q.createtime,q.source,q.year,q.region,q.schoolname,q.subjectid,q.schoolid
|
119
|
|
- ,qd.directorid,d.directorall directorname,d.lsbid,q.hearfile,q.qlevel,
|
|
120
|
+ ,qd.directorid,d.directorall directorname,d.lsbid,q.hashear,q.hearfile,q.qlevel,
|
120
|
121
|
sb.level,sb.subjectid,s.subjectname,v.versionname,sb.lsbname
|
121
|
122
|
,(select a.areaall from t_areazone a where a.areacode=q.region)areaall
|
122
|
123
|
from t_question q left join t_question_director qd on q.questionid=qd.questionid
|
|
@@ -213,6 +214,7 @@
|
213
|
214
|
<result property="schoolname" column="schoolname"></result>
|
214
|
215
|
<result property="qlevel" column="qlevel"></result>
|
215
|
216
|
<result property="snum" column="snum"></result>
|
|
217
|
+ <result property="hashear" column="hashear"></result>
|
216
|
218
|
<result property="hearfile" column="hearfile"></result>
|
217
|
219
|
<collection property="sonqlist" ofType="java.util.Map"
|
218
|
220
|
column="questionid" select="listSonQuestionForSelect">
|
|
@@ -223,7 +225,7 @@
|
223
|
225
|
<select id="listForSelect" resultMap="directPointQuestions">
|
224
|
226
|
select q.questionid,q.score,q.complexity,q.qstem,q.qoption,q.qanswer,q.qanalyze
|
225
|
227
|
,q.qtypeid,q.qtypename,q.count,GROUP_CONCAT(p.pointname)points,q.ctype
|
226
|
|
- ,q.source,q.year,q.region,q.schoolname,q.qlevel,q.hearfile
|
|
228
|
+ ,q.source,q.year,q.region,q.schoolname,q.qlevel,q.hearfile,q.hashear
|
227
|
229
|
from t_question q left join t_question_point qp on q.questionid = qp.questionid
|
228
|
230
|
left join t_point p on p.pointid=qp.pointid
|
229
|
231
|
left join t_question_director qd on q.questionid=qd.questionid
|
|
@@ -301,12 +303,12 @@
|
301
|
303
|
<!--批量保存-->
|
302
|
304
|
<insert id="saveBathQuestion" parameterType="com.xhkjedu.sstudy.model.question.TQuestion">
|
303
|
305
|
INSERT INTO t_question (questionid,qstem,qstemtxt,qoption,qanswer,qanalyze,score,complexity,
|
304
|
|
- ctype,hearfile,qtypeid,qtypename, subjectid,qlevel,snum,sorder,questionpid,
|
|
306
|
+ ctype,hashear,hearfile,qtypeid,qtypename, subjectid,qlevel,snum,sorder,questionpid,
|
305
|
307
|
qstate,source,year,region,schoolname,createid,createtime,belong,schoolid)
|
306
|
308
|
VALUES
|
307
|
309
|
<foreach collection ="list" item="p" index= "index" separator =",">
|
308
|
310
|
(#{p.questionid},#{p.qstem},#{p.qstemtxt},#{p.qoption},#{p.qanswer},#{p.qanalyze},#{p.score},#{p.complexity},
|
309
|
|
- #{p.ctype},#{p.hearfile},#{p.qtypeid},#{p.qtypename},#{p.subjectid},#{p.qlevel},#{p.snum},#{p.sorder},#{p.questionpid},
|
|
311
|
+ #{p.ctype},#{p.hashear},#{p.hearfile},#{p.qtypeid},#{p.qtypename},#{p.subjectid},#{p.qlevel},#{p.snum},#{p.sorder},#{p.questionpid},
|
310
|
312
|
#{p.qstate},#{p.source},#{p.year},#{p.region},#{p.schoolname},#{p.createid},#{p.createtime},#{p.belong},#{p.schoolid})
|
311
|
313
|
</foreach>
|
312
|
314
|
</insert>
|