|
|
|
@@ -7,6 +7,9 @@
|
|
|
|
|
<resultMap type="EducationPaperParam" id="EducationPaperParamResult">
|
|
|
|
|
<result property="paramId" column="param_id" />
|
|
|
|
|
<result property="taskId" column="task_id" />
|
|
|
|
|
<result property="isNumber" column="is_number" />
|
|
|
|
|
<result property="isContent" column="is_content" />
|
|
|
|
|
<result property="isAnswerId" column="is_answer_id" />
|
|
|
|
|
<result property="isExamPassword" column="is_exam_password" />
|
|
|
|
|
<result property="examPassword" column="exam_password" />
|
|
|
|
|
<result property="usb" column="usb" />
|
|
|
|
@@ -23,7 +26,7 @@
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectEducationPaperParamVo">
|
|
|
|
|
select param_id, task_id, is_exam_password, exam_password, usb, save_grades, driver, directory, upload_time, is_del,is_repeat ,is_answer,is_look,is_connect,is_session from education_paper_param
|
|
|
|
|
select param_id, task_id, is_number,is_content,is_answer_id,is_exam_password, exam_password, usb, save_grades, driver, directory, upload_time, is_del,is_repeat ,is_answer,is_look,is_connect,is_session from education_paper_param
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectEducationPaperParamList" parameterType="EducationPaperParam" resultMap="EducationPaperParamResult">
|
|
|
|
@@ -55,6 +58,9 @@
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="paramId != null">param_id,</if>
|
|
|
|
|
<if test="taskId != null">task_id,</if>
|
|
|
|
|
<if test="isNumber != null">is_number,</if>
|
|
|
|
|
<if test="isContent != null">is_content,</if>
|
|
|
|
|
<if test="isAnswerId != null">is_answer_id,</if>
|
|
|
|
|
<if test="isExamPassword != null">is_exam_password,</if>
|
|
|
|
|
<if test="examPassword != null">exam_password,</if>
|
|
|
|
|
<if test="usb != null">usb,</if>
|
|
|
|
@@ -73,6 +79,9 @@
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="paramId != null">#{paramId},</if>
|
|
|
|
|
<if test="taskId != null">#{taskId},</if>
|
|
|
|
|
<if test="isNumber != null">#{isNumber},</if>
|
|
|
|
|
<if test="isContent != null">#{isContent},</if>
|
|
|
|
|
<if test="isAnswerId != null">#{isAnswerId},</if>
|
|
|
|
|
<if test="isExamPassword != null">#{isExamPassword},</if>
|
|
|
|
|
<if test="examPassword != null">#{examPassword},</if>
|
|
|
|
|
<if test="usb != null">#{usb},</if>
|
|
|
|
@@ -94,6 +103,9 @@
|
|
|
|
|
update education_paper_param
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="taskId != null">task_id = #{taskId},</if>
|
|
|
|
|
<if test="isNumber != null">is_number = #{isNumber},</if>
|
|
|
|
|
<if test="isContent != null">is_content = #{isContent},</if>
|
|
|
|
|
<if test="isAnswerId != null">is_answer_id = #{isAnswerId},</if>
|
|
|
|
|
<if test="isExamPassword != null">is_exam_password = #{isExamPassword},</if>
|
|
|
|
|
<if test="examPassword != null">exam_password = #{examPassword},</if>
|
|
|
|
|
<if test="usb != null">usb = #{usb},</if>
|
|
|
|
|