|
@@ -9,47 +9,48 @@
|
9
|
9
|
|
10
|
10
|
<!--试卷题型试题信息(题库)-->
|
11
|
11
|
<resultMap id="qtypesQuestion" type="com.xhkjedu.smarking.vo.paper.MsPaperQtypeVo">
|
12
|
|
- <result column="mptid" property="mptid"></result>
|
13
|
|
- <result column="mpid" property="mpid"></result>
|
14
|
|
- <result column="mptname" property="mptname"></result>
|
15
|
|
- <result column="mptnum" property="mptnum"></result>
|
16
|
|
- <result column="mptorder" property="mptorder"></result>
|
17
|
|
- <result column="mptscore" property="mptscore"></result>
|
|
12
|
+ <result column="mptid" property="mptid" />
|
|
13
|
+ <result column="mpid" property="mpid" />
|
|
14
|
+ <result column="mptqn" property="mptqn" />
|
|
15
|
+ <result column="mptname" property="mptname" />
|
|
16
|
+ <result column="mptnum" property="mptnum" />
|
|
17
|
+ <result column="mptorder" property="mptorder" />
|
|
18
|
+ <result column="mptscore" property="mptscore" />
|
18
|
19
|
<collection property="questions" ofType="com.xhkjedu.smarking.vo.paper.MsPaperQtypeQuestionVo" javaType="java.util.List">
|
19
|
|
- <result column="mptqid" property="mptqid"></result>
|
20
|
|
- <result column="mptid" property="mptid"></result>
|
21
|
|
- <result column="questionid" property="questionid"></result>
|
22
|
|
- <result column="qscore" property="qscore"></result>
|
23
|
|
- <result column="qorder" property="qorder"></result>
|
24
|
|
- <result column="qn" property="qn"></result>
|
25
|
|
- <result column="qtypeid" property="qtypeid"></result>
|
26
|
|
- <result column="qtypename" property="qtypename"></result>
|
27
|
|
- <result column="answer" property="answer"></result>
|
28
|
|
- <result column="qctype" property="ctype"></result>
|
29
|
|
- <result column="qstem" property="qstem"></result>
|
30
|
|
- <result column="qstemtxt" property="qstemtxt"></result>
|
31
|
|
- <result column="qoption" property="qoption"></result>
|
32
|
|
- <result column="qanswer" property="qanswer"></result>
|
33
|
|
- <result column="qanalyze" property="qanalyze"></result>
|
34
|
|
- <result column="complexity" property="complexity"></result>
|
35
|
|
- <result column="hashear" property="hashear"></result>
|
36
|
|
- <result column="hearfile" property="hearfile"></result>
|
37
|
|
- <result column="qlevel" property="qlevel"></result>
|
38
|
|
- <result column="sorder" property="sorder"></result>
|
39
|
|
- <result column="snum" property="snum"></result>
|
40
|
|
- <result column="questionpid" property="questionpid"></result>
|
41
|
|
- <result column="mqstem" property="mqstem"></result>
|
42
|
|
- <result column="mcomplexity" property="mcomplexity"></result>
|
43
|
|
- <result column="mqtypeid" property="mqtypeid"></result>
|
44
|
|
- <result column="mqtypename" property="mqtypename"></result>
|
45
|
|
- <result column="mctype" property="mctype"></result>
|
46
|
|
- <result column="mqanswer" property="mqanswer"></result>
|
47
|
|
- <result column="mqanalyze" property="mqanalyze"></result>
|
48
|
|
- <result column="mqlevel" property="mqlevel"></result>
|
49
|
|
- <result column="mhashear" property="mhashear"></result>
|
50
|
|
- <result column="mhearfile" property="mhearfile"></result>
|
51
|
|
- <result column="loseoption" property="loseoption"></result>
|
52
|
|
- <result column="scoreset" property="scoreset"></result>
|
|
20
|
+ <result column="mptqid" property="mptqid" />
|
|
21
|
+ <result column="mptid" property="mptid" />
|
|
22
|
+ <result column="questionid" property="questionid" />
|
|
23
|
+ <result column="qscore" property="qscore" />
|
|
24
|
+ <result column="qorder" property="qorder" />
|
|
25
|
+ <result column="qn" property="qn" />
|
|
26
|
+ <result column="qtypeid" property="qtypeid" />
|
|
27
|
+ <result column="qtypename" property="qtypename" />
|
|
28
|
+ <result column="answer" property="answer" />
|
|
29
|
+ <result column="qctype" property="ctype" />
|
|
30
|
+ <result column="qstem" property="qstem" />
|
|
31
|
+ <result column="qstemtxt" property="qstemtxt" />
|
|
32
|
+ <result column="qoption" property="qoption" />
|
|
33
|
+ <result column="qanswer" property="qanswer" />
|
|
34
|
+ <result column="qanalyze" property="qanalyze" />
|
|
35
|
+ <result column="complexity" property="complexity" />
|
|
36
|
+ <result column="hashear" property="hashear" />
|
|
37
|
+ <result column="hearfile" property="hearfile" />
|
|
38
|
+ <result column="qlevel" property="qlevel" />
|
|
39
|
+ <result column="sorder" property="sorder" />
|
|
40
|
+ <result column="snum" property="snum" />
|
|
41
|
+ <result column="questionpid" property="questionpid" />
|
|
42
|
+ <result column="mqstem" property="mqstem" />
|
|
43
|
+ <result column="mcomplexity" property="mcomplexity" />
|
|
44
|
+ <result column="mqtypeid" property="mqtypeid" />
|
|
45
|
+ <result column="mqtypename" property="mqtypename" />
|
|
46
|
+ <result column="mctype" property="mctype" />
|
|
47
|
+ <result column="mqanswer" property="mqanswer" />
|
|
48
|
+ <result column="mqanalyze" property="mqanalyze" />
|
|
49
|
+ <result column="mqlevel" property="mqlevel" />
|
|
50
|
+ <result column="mhashear" property="mhashear" />
|
|
51
|
+ <result column="mhearfile" property="mhearfile" />
|
|
52
|
+ <result column="loseoption" property="loseoption" />
|
|
53
|
+ <result column="scoreset" property="scoreset" />
|
53
|
54
|
<collection property="points" ofType="java.util.Map" javaType="java.util.List"
|
54
|
55
|
column="{questionid=questionid,qlevel=qlevel,questionpid=questionpid}" select="listQuestionPoints">
|
55
|
56
|
<result column="pointid" property="pointid"></result>
|
|
@@ -59,7 +60,7 @@
|
59
|
60
|
</resultMap>
|
60
|
61
|
<!--试题详情-->
|
61
|
62
|
<select id="listPaperQtypeQuestions" resultMap="qtypesQuestion">
|
62
|
|
- select t.mptid,t.mpid,t.mptname,t.mptnum,t.mptorder,t.mptscore,tq.mptqid,tq.questionid,tq.qanswer as answer,tq.qscore,tq.qn,
|
|
63
|
+ select t.mptid,t.mpid,t.mptqn,t.mptname,t.mptnum,t.mptorder,t.mptscore,tq.mptqid,tq.questionid,tq.qanswer as answer,tq.qscore,tq.qn,
|
63
|
64
|
tq.qorder,tq.loseoption,tq.scoreset,COALESCE(tq.complexity, q.complexity) as complexity,q.qtypeid,q.qtypename,q.ctype qctype,
|
64
|
65
|
q.qstem,q.qstemtxt,q.qoption,q.qanswer,q.qanalyze,q.hashear,q.hearfile,q.qlevel,q.sorder,q.questionpid,
|
65
|
66
|
fq.snum,fq.qstem as mqstem,fq.complexity as mcomplexity,fq.qtypeid mqtypeid,fq.qtypename mqtypename,fq.ctype mctype,
|
|
@@ -85,36 +86,37 @@
|
85
|
86
|
|
86
|
87
|
<!--试卷题型试题信息(附件)-->
|
87
|
88
|
<resultMap id="fjtypeQuestions" type="com.xhkjedu.smarking.vo.paper.MsPaperQtypeVo">
|
88
|
|
- <result column="mptid" property="mptid"></result>
|
89
|
|
- <result column="mpid" property="mpid"></result>
|
90
|
|
- <result column="mptname" property="mptname"></result>
|
91
|
|
- <result column="mptnum" property="mptnum"></result>
|
92
|
|
- <result column="mptorder" property="mptorder"></result>
|
93
|
|
- <result column="mptscore" property="mptscore"></result>
|
94
|
|
- <result column="mptctype" property="ctype"></result>
|
|
89
|
+ <result column="mptid" property="mptid" />
|
|
90
|
+ <result column="mpid" property="mpid" />
|
|
91
|
+ <result column="mptqn" property="mptqn" />
|
|
92
|
+ <result column="mptname" property="mptname" />
|
|
93
|
+ <result column="mptnum" property="mptnum" />
|
|
94
|
+ <result column="mptorder" property="mptorder" />
|
|
95
|
+ <result column="mptscore" property="mptscore" />
|
|
96
|
+ <result column="mptctype" property="ctype" />
|
95
|
97
|
<collection property="questions" ofType="com.xhkjedu.smarking.vo.paper.MsPaperQtypeQuestionVo" javaType="java.util.List">
|
96
|
|
- <result column="mptqid" property="mptqid"></result>
|
97
|
|
- <result column="mptid" property="mptid"></result>
|
98
|
|
- <result column="qscore" property="qscore"></result>
|
99
|
|
- <result column="qorder" property="qorder"></result>
|
100
|
|
- <result column="qtypeid" property="qtypeid"></result>
|
101
|
|
- <result column="qtypename" property="qtypename"></result>
|
102
|
|
- <result column="ctype" property="ctype"></result>
|
103
|
|
- <result column="qn" property="qn"></result>
|
104
|
|
- <result column="optionnum" property="optionnum"></result>
|
105
|
|
- <result column="qanswer" property="qanswer"></result>
|
106
|
|
- <result column="complexity" property="complexity"></result>
|
107
|
|
- <result column="loseoption" property="loseoption"></result>
|
108
|
|
- <result column="scoreset" property="scoreset"></result>
|
|
98
|
+ <result column="mptqid" property="mptqid" />
|
|
99
|
+ <result column="mptid" property="mptid" />
|
|
100
|
+ <result column="qscore" property="qscore" />
|
|
101
|
+ <result column="qorder" property="qorder" />
|
|
102
|
+ <result column="qtypeid" property="qtypeid" />
|
|
103
|
+ <result column="qtypename" property="qtypename" />
|
|
104
|
+ <result column="ctype" property="ctype" />
|
|
105
|
+ <result column="qn" property="qn" />
|
|
106
|
+ <result column="optionnum" property="optionnum" />
|
|
107
|
+ <result column="qanswer" property="qanswer" />
|
|
108
|
+ <result column="complexity" property="complexity" />
|
|
109
|
+ <result column="loseoption" property="loseoption" />
|
|
110
|
+ <result column="scoreset" property="scoreset" />
|
109
|
111
|
<collection property="points" ofType="java.util.Map" javaType="java.util.List"
|
110
|
112
|
column="{mptqid=mptqid}" select="listQuestionPointsFj">
|
111
|
|
- <result column="pointid" property="pointid"></result>
|
112
|
|
- <result column="pointname" property="pointname"></result>
|
|
113
|
+ <result column="pointid" property="pointid" />
|
|
114
|
+ <result column="pointname" property="pointname" />
|
113
|
115
|
</collection>
|
114
|
116
|
</collection>
|
115
|
117
|
</resultMap>
|
116
|
118
|
<select id="listPaperQtypeQuesitonsForFj" resultMap="fjtypeQuestions">
|
117
|
|
- select t.mptid,t.mpid,t.ctype as mptctype,t.mptname,t.mptnum,t.mptorder,t.mptscore,q.mptqid,q.qtypeid,q.qtypename,
|
|
119
|
+ select t.mptid,t.mpid,t.ctype as mptctype,t.mptqn,t.mptname,t.mptnum,t.mptorder,t.mptscore,q.mptqid,q.qtypeid,q.qtypename,
|
118
|
120
|
q.ctype,q.qscore,q.qn,q.qorder,q.optionnum,q.qanswer,q.optionnum,q.complexity,q.loseoption,q.scoreset
|
119
|
121
|
from ms_paper_qtype_question q left join ms_paper_qtype t on t.mptid=q.mptid
|
120
|
122
|
where t.mpid=#{mpid} order by t.mptorder,q.qorder
|
|
@@ -128,6 +130,7 @@
|
128
|
130
|
<!--获取试卷所有主观题-->
|
129
|
131
|
<resultMap id="subjectiveQuestions" type="java.util.Map">
|
130
|
132
|
<result column="mptid" property="mptid" />
|
|
133
|
+ <result column="mptqn" property="mptqn" />
|
131
|
134
|
<result column="mptname" property="mptname" />
|
132
|
135
|
<result column="mptnum" property="mptnum" />
|
133
|
136
|
<result column="mptorder" property="mptorder" />
|
|
@@ -143,7 +146,7 @@
|
143
|
146
|
</collection>
|
144
|
147
|
</resultMap>
|
145
|
148
|
<select id="listSubjectiveQuestionsFj" resultMap="subjectiveQuestions">
|
146
|
|
- select t.mptid,t.mptname,t.mptnum,t.mptorder,t.mptscore,
|
|
149
|
+ select t.mptid,t.mptqn,t.mptname,t.mptnum,t.mptorder,t.mptscore,
|
147
|
150
|
q.mptqid,q.qtypeid,q.qtypename,q.ctype,q.qscore,q.qn,q.qorder
|
148
|
151
|
from ms_paper_qtype_question q left join ms_paper_qtype t on t.mptid=q.mptid
|
149
|
152
|
where t.mpid=#{mpid} and q.ctype in
|
|
@@ -154,7 +157,7 @@
|
154
|
157
|
</select>
|
155
|
158
|
|
156
|
159
|
<select id="listSubjectiveQuestionsTk" resultMap="subjectiveQuestions">
|
157
|
|
- select t.mptid,t.mptname,t.mptnum,t.mptorder,t.mptscore,
|
|
160
|
+ select t.mptid,t.mptqn,t.mptname,t.mptnum,t.mptorder,t.mptscore,
|
158
|
161
|
q.mptqid,q.qtypeid,q.qtypename,q.ctype,q.qscore,q.qn,q.qorder
|
159
|
162
|
from ms_paper_qtype_question q left join ms_paper_qtype t on t.mptid=q.mptid
|
160
|
163
|
where t.mpid=#{mpid} and q.ctype in
|