|
|
|
@ -4,7 +4,6 @@
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.financial_bigdata.entity.TeaExamManage">
|
|
|
|
|
<id column="exam_manage_id" jdbcType="VARCHAR" property="examManageId" />
|
|
|
|
|
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
|
|
|
|
<result column="tea_and_student_exam_id" jdbcType="VARCHAR" property="teaAndStudentExamId" />
|
|
|
|
|
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
|
|
|
|
<result column="exam_name" jdbcType="VARCHAR" property="examName" />
|
|
|
|
|
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
|
|
|
|
@ -86,9 +85,9 @@
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
exam_manage_id, school_id, tea_and_student_exam_id, user_id, exam_name, start_time,
|
|
|
|
|
end_time, logo_address, exam_Description, Objective_weight, case_weight, single_score,
|
|
|
|
|
many_score, judge_score, case_score
|
|
|
|
|
exam_manage_id, school_id, user_id, exam_name, start_time, end_time, logo_address,
|
|
|
|
|
exam_Description, Objective_weight, case_weight, single_score, many_score, judge_score,
|
|
|
|
|
case_score
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Blob_Column_List">
|
|
|
|
|
single_idList, many_idList, judge_idList, case_idList, single_answer, many_answer,
|
|
|
|
@ -143,22 +142,22 @@
|
|
|
|
|
</if>
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.financial_bigdata.entity.TeaExamManageWithBLOBs">
|
|
|
|
|
insert into tea_exam_manage (exam_manage_id, school_id, tea_and_student_exam_id,
|
|
|
|
|
user_id, exam_name, start_time,
|
|
|
|
|
end_time, logo_address, exam_Description,
|
|
|
|
|
Objective_weight, case_weight, single_score,
|
|
|
|
|
many_score, judge_score, case_score,
|
|
|
|
|
single_idList, many_idList, judge_idList,
|
|
|
|
|
case_idList, single_answer, many_answer,
|
|
|
|
|
judge_answer)
|
|
|
|
|
values (#{examManageId,jdbcType=VARCHAR}, #{schoolId,jdbcType=VARCHAR}, #{teaAndStudentExamId,jdbcType=VARCHAR},
|
|
|
|
|
#{userId,jdbcType=VARCHAR}, #{examName,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{endTime,jdbcType=TIMESTAMP}, #{logoAddress,jdbcType=VARCHAR}, #{examDescription,jdbcType=VARCHAR},
|
|
|
|
|
#{objectiveWeight,jdbcType=DECIMAL}, #{caseWeight,jdbcType=DECIMAL}, #{singleScore,jdbcType=DECIMAL},
|
|
|
|
|
#{manyScore,jdbcType=DECIMAL}, #{judgeScore,jdbcType=DECIMAL}, #{caseScore,jdbcType=DECIMAL},
|
|
|
|
|
#{singleIdlist,jdbcType=LONGVARCHAR}, #{manyIdlist,jdbcType=LONGVARCHAR}, #{judgeIdlist,jdbcType=LONGVARCHAR},
|
|
|
|
|
#{caseIdlist,jdbcType=LONGVARCHAR}, #{singleAnswer,jdbcType=LONGVARCHAR}, #{manyAnswer,jdbcType=LONGVARCHAR},
|
|
|
|
|
#{judgeAnswer,jdbcType=LONGVARCHAR})
|
|
|
|
|
insert into tea_exam_manage (exam_manage_id, school_id, user_id,
|
|
|
|
|
exam_name, start_time, end_time,
|
|
|
|
|
logo_address, exam_Description, Objective_weight,
|
|
|
|
|
case_weight, single_score, many_score,
|
|
|
|
|
judge_score, case_score, single_idList,
|
|
|
|
|
many_idList, judge_idList, case_idList,
|
|
|
|
|
single_answer, many_answer, judge_answer
|
|
|
|
|
)
|
|
|
|
|
values (#{examManageId,jdbcType=VARCHAR}, #{schoolId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR},
|
|
|
|
|
#{examName,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{logoAddress,jdbcType=VARCHAR}, #{examDescription,jdbcType=VARCHAR}, #{objectiveWeight,jdbcType=DECIMAL},
|
|
|
|
|
#{caseWeight,jdbcType=DECIMAL}, #{singleScore,jdbcType=DECIMAL}, #{manyScore,jdbcType=DECIMAL},
|
|
|
|
|
#{judgeScore,jdbcType=DECIMAL}, #{caseScore,jdbcType=DECIMAL}, #{singleIdlist,jdbcType=LONGVARCHAR},
|
|
|
|
|
#{manyIdlist,jdbcType=LONGVARCHAR}, #{judgeIdlist,jdbcType=LONGVARCHAR}, #{caseIdlist,jdbcType=LONGVARCHAR},
|
|
|
|
|
#{singleAnswer,jdbcType=LONGVARCHAR}, #{manyAnswer,jdbcType=LONGVARCHAR}, #{judgeAnswer,jdbcType=LONGVARCHAR}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.financial_bigdata.entity.TeaExamManageWithBLOBs">
|
|
|
|
|
insert into tea_exam_manage
|
|
|
|
@ -169,9 +168,6 @@
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
school_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="teaAndStudentExamId != null">
|
|
|
|
|
tea_and_student_exam_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
user_id,
|
|
|
|
|
</if>
|
|
|
|
@ -237,9 +233,6 @@
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
#{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="teaAndStudentExamId != null">
|
|
|
|
|
#{teaAndStudentExamId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
#{userId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -314,9 +307,6 @@
|
|
|
|
|
<if test="record.schoolId != null">
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.teaAndStudentExamId != null">
|
|
|
|
|
tea_and_student_exam_id = #{record.teaAndStudentExamId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.userId != null">
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -383,7 +373,6 @@
|
|
|
|
|
update tea_exam_manage
|
|
|
|
|
set exam_manage_id = #{record.examManageId,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
|
tea_and_student_exam_id = #{record.teaAndStudentExamId,jdbcType=VARCHAR},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
exam_name = #{record.examName,jdbcType=VARCHAR},
|
|
|
|
|
start_time = #{record.startTime,jdbcType=TIMESTAMP},
|
|
|
|
@ -411,7 +400,6 @@
|
|
|
|
|
update tea_exam_manage
|
|
|
|
|
set exam_manage_id = #{record.examManageId,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
|
tea_and_student_exam_id = #{record.teaAndStudentExamId,jdbcType=VARCHAR},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
exam_name = #{record.examName,jdbcType=VARCHAR},
|
|
|
|
|
start_time = #{record.startTime,jdbcType=TIMESTAMP},
|
|
|
|
@ -434,9 +422,6 @@
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
school_id = #{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="teaAndStudentExamId != null">
|
|
|
|
|
tea_and_student_exam_id = #{teaAndStudentExamId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -500,7 +485,6 @@
|
|
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.financial_bigdata.entity.TeaExamManageWithBLOBs">
|
|
|
|
|
update tea_exam_manage
|
|
|
|
|
set school_id = #{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
tea_and_student_exam_id = #{teaAndStudentExamId,jdbcType=VARCHAR},
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
exam_name = #{examName,jdbcType=VARCHAR},
|
|
|
|
|
start_time = #{startTime,jdbcType=TIMESTAMP},
|
|
|
|
@ -525,7 +509,6 @@
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.financial_bigdata.entity.TeaExamManage">
|
|
|
|
|
update tea_exam_manage
|
|
|
|
|
set school_id = #{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
tea_and_student_exam_id = #{teaAndStudentExamId,jdbcType=VARCHAR},
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
exam_name = #{examName,jdbcType=VARCHAR},
|
|
|
|
|
start_time = #{startTime,jdbcType=TIMESTAMP},
|
|
|
|
|