|
@@ -7,14 +7,14 @@
|
7
|
7
|
</delete>
|
8
|
8
|
|
9
|
9
|
<resultMap id="qtypeSacn" type="com.xhkjedu.sstudy.vo.paper.PaperScantronQtypeVo">
|
|
10
|
+ <result property="psqtypeid" column="psqtypeid"></result>
|
10
|
11
|
<result property="qtypeid" column="qtypeid"></result>
|
11
|
12
|
<result property="qtypename" column="qtypename"></result>
|
12
|
13
|
<result property="pstorder" column="pstorder"></result>
|
13
|
14
|
<result property="pstscore" column="pstscore"></result>
|
14
|
15
|
<result property="pstnum" column="pstnum"></result>
|
15
|
|
- <result property="ctype" column="ctype"></result>
|
16
|
|
- <collection property="scantrons" ofType="com.xhkjedu.sstudy.vo.paper.ScantronVo">
|
17
|
|
- <result property="psid" column="psid"></result>
|
|
16
|
+ <collection property="scantrons" ofType="com.xhkjedu.sstudy.vo.paper.ScantronVo" javaType="java.util.List">
|
|
17
|
+ <result property="pscaid" column="pscaid"></result>
|
18
|
18
|
<result property="qtypeid" column="qtypeid"></result>
|
19
|
19
|
<result property="qtypename" column="qtypename"></result>
|
20
|
20
|
<result property="ctype" column="ctype"></result>
|
|
@@ -27,7 +27,7 @@
|
27
|
27
|
|
28
|
28
|
<!-- 获取题型以及题型下试题 -->
|
29
|
29
|
<select id="listQtypeScans" resultMap="qtypeSacn">
|
30
|
|
- SELECT psq.qtypeid,psq.qtypename,psq.pstorder,psq.pstscore,psq.pstnum,
|
|
30
|
+ SELECT psq.psqtypeid,psq.qtypeid,psq.qtypename,psq.pstorder,psq.pstscore,psq.pstnum,ps.pscaid,
|
31
|
31
|
ps.qtypeid,ps.qtypename,ps.ctype,ps.psorder,ps.psscore,ps.psanswer,ps.optionnum
|
32
|
32
|
FROM t_paper_scantron_qtype psq LEFT JOIN t_paper_scantron ps ON psq.psqtypeid=ps.psqtypeid
|
33
|
33
|
WHERE psq.paperid=#{paperid} ORDER BY psq.pstorder,ps.psorder
|