|
|
@@ -15,6 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
15
|
15
|
<result property="examStatus" column="exam_status" />
|
|
16
|
16
|
<result property="passScore" column="pass_score" />
|
|
17
|
17
|
<result property="isLimit" column="is_limit" />
|
|
|
18
|
+ <result column="isSubjective" property="is_subjective" />
|
|
18
|
19
|
<result property="remark" column="remark" />
|
|
19
|
20
|
<result property="createTime" column="create_time" />
|
|
20
|
21
|
<result property="updateTime" column="update_time" />
|
|
|
@@ -24,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
24
|
25
|
</resultMap>
|
|
25
|
26
|
|
|
26
|
27
|
<sql id="selectExamVo">
|
|
27
|
|
- select id, exam_category_id, exam_name, paper_id, exam_start_time, exam_end_time, exam_duration, exam_status, pass_score, is_limit, remark, create_time, update_time, create_by, update_by, del_flag from exam
|
|
|
28
|
+ select id, exam_category_id, exam_name, paper_id, exam_start_time, exam_end_time, exam_duration, exam_status, pass_score, is_limit, is_subjective, remark, create_time, update_time, create_by, update_by, del_flag from exam
|
|
28
|
29
|
</sql>
|
|
29
|
30
|
|
|
30
|
31
|
<select id="selectExamList" parameterType="Exam" resultMap="ExamResult">
|
|
|
@@ -39,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
39
|
40
|
<if test="examStatus != null and examStatus != ''"> and exam_status = #{examStatus}</if>
|
|
40
|
41
|
<if test="passScore != null "> and pass_score = #{passScore}</if>
|
|
41
|
42
|
<if test="isLimit != null "> and is_limit = #{isLimit}</if>
|
|
|
43
|
+ <if test="isSubjective != null "> and is_subjective = #{isSubjective}</if>
|
|
42
|
44
|
<!-- 如果有station_id字段,则增加站点集合查询条件 -->
|
|
43
|
45
|
</where>
|
|
44
|
46
|
</select>
|
|
|
@@ -53,6 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
53
|
55
|
<result column="exam_end_time" property="examEndTime"/>
|
|
54
|
56
|
<result column="exam_status" property="examStatus"/>
|
|
55
|
57
|
<result column="is_limit" property="isLimit"/>
|
|
|
58
|
+ <result column="is_subjective" property="isSubjective"/>
|
|
56
|
59
|
<result column="pass_score" property="passScore"/>
|
|
57
|
60
|
<!-- 新增答题/批改字段映射 -->
|
|
58
|
61
|
<result column="exam_score" property="score"/>
|
|
|
@@ -172,6 +175,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
172
|
175
|
<if test="examStatus != null and examStatus != ''">exam_status,</if>
|
|
173
|
176
|
<if test="passScore != null">pass_score,</if>
|
|
174
|
177
|
<if test="isLimit != null">is_limit,</if>
|
|
|
178
|
+ <if test="isSubjective != null">is_subjective,</if>
|
|
175
|
179
|
<if test="remark != null">remark,</if>
|
|
176
|
180
|
<if test="createTime != null">create_time,</if>
|
|
177
|
181
|
<if test="updateTime != null">update_time,</if>
|
|
|
@@ -189,6 +193,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
189
|
193
|
<if test="examStatus != null and examStatus != ''">#{examStatus},</if>
|
|
190
|
194
|
<if test="passScore != null">#{passScore},</if>
|
|
191
|
195
|
<if test="isLimit != null">#{isLimit},</if>
|
|
|
196
|
+ <if test="isSubjective != null">#{isSubjective},</if>
|
|
192
|
197
|
<if test="remark != null">#{remark},</if>
|
|
193
|
198
|
<if test="createTime != null">#{createTime},</if>
|
|
194
|
199
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
@@ -210,6 +215,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
210
|
215
|
<if test="examStatus != null and examStatus != ''">exam_status = #{examStatus},</if>
|
|
211
|
216
|
<if test="passScore != null">pass_score = #{passScore},</if>
|
|
212
|
217
|
<if test="isLimit != null">is_limit = #{isLimit},</if>
|
|
|
218
|
+ <if test="isSubjective != null">is_subjective = #{isSubjective},</if>
|
|
213
|
219
|
<if test="remark != null">remark = #{remark},</if>
|
|
214
|
220
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
215
|
221
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|