|
|
|
|
25
|
<result property="complexity" column="complexity"/>
|
25
|
<result property="complexity" column="complexity"/>
|
26
|
<result property="count" column="count"/>
|
26
|
<result property="count" column="count"/>
|
27
|
<result property="qtypename" column="typename"/>
|
27
|
<result property="qtypename" column="typename"/>
|
|
|
28
|
+ <result property="qtypeid" column="typeid"/>
|
28
|
</collection>
|
29
|
</collection>
|
29
|
</resultMap>
|
30
|
</resultMap>
|
30
|
<!--获取作业题型列表-->
|
31
|
<!--获取作业题型列表-->
|
31
|
<select id="listPaperType" resultMap="typeResult">
|
32
|
<select id="listPaperType" resultMap="typeResult">
|
32
|
select pt.qtypeid,pt.qtypename,pt.ptorder,pt.ptscore,pt.ptnum,ptq.questionid,ptq.ptqscore as score,ptq.ptqorder,ptq.qn
|
33
|
select pt.qtypeid,pt.qtypename,pt.ptorder,pt.ptscore,pt.ptnum,ptq.questionid,ptq.ptqscore as score,ptq.ptqorder,ptq.qn
|
33
|
,q.questionid,ifnull(q.questionpid,q.questionid)as questionpid,q.qlevel,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze
|
34
|
,q.questionid,ifnull(q.questionpid,q.questionid)as questionpid,q.qlevel,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze
|
34
|
- ,q.hashear,q.hearfile,q.complexity,q.count,q.qtypename typename,pt.ctype pctype
|
|
|
|
|
35
|
+ ,q.hashear,q.hearfile,q.complexity,q.count,q.qtypeid typeid,q.qtypename typename,pt.ctype pctype
|
35
|
from t_paper_qtype pt left join t_paper_qtype_question ptq on pt.ptid = ptq.ptid
|
36
|
from t_paper_qtype pt left join t_paper_qtype_question ptq on pt.ptid = ptq.ptid
|
36
|
left join t_question q on ptq.questionid = q.questionid
|
37
|
left join t_question q on ptq.questionid = q.questionid
|
37
|
where pt.paperid=#{paperid} order by pt.ptorder,ptq.ptqid
|
38
|
where pt.paperid=#{paperid} order by pt.ptorder,ptq.ptqid
|
|
|
|
|
379
|
</select>
|
380
|
</select>
|
380
|
<!--作业母题列表-->
|
381
|
<!--作业母题列表-->
|
381
|
<select id="listQuestionByQuestionIds" resultType="com.xhkjedu.sstudy.vo.question.QuestionVo">
|
382
|
<select id="listQuestionByQuestionIds" resultType="com.xhkjedu.sstudy.vo.question.QuestionVo">
|
382
|
- select questionid,ctype,qstem,qoption,qanswer,qanalyze,q.hashear,q.hearfile
|
|
|
|
|
383
|
+ select questionid,ctype,qstem,qoption,qanswer,qanalyze,q.hashear,q.hearfile,q.count
|
383
|
from t_question q where questionid in
|
384
|
from t_question q where questionid in
|
384
|
<foreach collection="questionids" item="questionid" open="(" separator="," close=")">
|
385
|
<foreach collection="questionids" item="questionid" open="(" separator="," close=")">
|
385
|
#{questionid}
|
386
|
#{questionid}
|