|  | @@ -11,6 +11,7 @@
 | 
	
		
			
				|  |  |  		<result column="examination_basic_id_" property="examinationBasicId" />
 | 
	
		
			
				|  |  |  		<result column="student_id_" property="studentId" />
 | 
	
		
			
				|  |  |  		<result column="result_" property="result" typeHandler="com.keao.edu.common.dal.CustomEnumTypeHandler" />
 | 
	
		
			
				|  |  | +		<result column="avg_score_" property="avgScore"/>
 | 
	
		
			
				|  |  |  		<result column="confirm_status_" property="confirmStatus" />
 | 
	
		
			
				|  |  |  		<result column="is_finished_exam_" property="isFinishedExam" />
 | 
	
		
			
				|  |  |  		<result column="memo_" property="memo" />
 | 
	
	
		
			
				|  | @@ -33,16 +34,16 @@
 | 
	
		
			
				|  |  |  	
 | 
	
		
			
				|  |  |  	<!-- 向数据库增加一条记录 -->
 | 
	
		
			
				|  |  |  	<insert id="insert" parameterType="com.keao.edu.user.entity.StudentExamResult" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
 | 
	
		
			
				|  |  | -		INSERT INTO student_exam_result (id_,examination_basic_id_,student_id_,result_,confirm_status_,memo_,operator_id_,is_finished_exam_,create_time_,update_time_,tenant_id_)
 | 
	
		
			
				|  |  | -		VALUES(#{id},#{examinationBasicId},#{studentId},#{result,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{confirmStatus},#{memo},#{operatorId},#{isFinishedExam},NOW(),NOW(),#{tenantId})
 | 
	
		
			
				|  |  | +		INSERT INTO student_exam_result (id_,examination_basic_id_,student_id_,result_,avg_score_,confirm_status_,memo_,operator_id_,is_finished_exam_,create_time_,update_time_,tenant_id_)
 | 
	
		
			
				|  |  | +		VALUES(#{id},#{examinationBasicId},#{studentId},#{result,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{avgScore},#{confirmStatus},#{memo},#{operatorId},#{isFinishedExam},NOW(),NOW(),#{tenantId})
 | 
	
		
			
				|  |  |  	</insert>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	<insert id="batchInsert" parameterType="com.keao.edu.user.entity.StudentExamResult" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
 | 
	
		
			
				|  |  | -		INSERT INTO student_exam_result (examination_basic_id_,student_id_,result_,confirm_status_,memo_,operator_id_,is_finished_exam_,create_time_,update_time_,tenant_id_)
 | 
	
		
			
				|  |  | +		INSERT INTO student_exam_result (examination_basic_id_,student_id_,result_,#{avg_score_},confirm_status_,memo_,operator_id_,is_finished_exam_,create_time_,update_time_,tenant_id_)
 | 
	
		
			
				|  |  |  		VALUES
 | 
	
		
			
				|  |  |  		<foreach collection="results" item="result" separator=",">
 | 
	
		
			
				|  |  |  			(#{result.examinationBasicId},#{result.studentId},#{result.result,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  | -			#{result.confirmStatus},#{result.memo},#{result.operatorId},#{result.isFinishedExam},NOW(),NOW(),#{result.tenantId})
 | 
	
		
			
				|  |  | +			#{result.avgScore},#{result.confirmStatus},#{result.memo},#{result.operatorId},#{result.isFinishedExam},NOW(),NOW(),#{result.tenantId})
 | 
	
		
			
				|  |  |  		</foreach>
 | 
	
		
			
				|  |  |  	</insert>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -68,6 +69,9 @@
 | 
	
		
			
				|  |  |  			<if test="result != null">
 | 
	
		
			
				|  |  |  				result_ = #{result,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  | +			<if test="avgScore != null">
 | 
	
		
			
				|  |  | +				avg_score_ = #{avgScore},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  |  			<if test="memo != null">
 | 
	
		
			
				|  |  |  				memo_ = #{memo},
 | 
	
		
			
				|  |  |  			</if>
 |