| 
					
				 | 
			
			
				@@ -0,0 +1,83 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<?xml version="1.0" encoding="UTF-8" ?> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!-- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+这个文件是自动生成的。 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+不要修改此文件。所有改动将在下次重新自动生成时丢失。 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<mapper namespace="com.keao.edu.user.dao.ExamReviewDao"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<resultMap type="com.keao.edu.user.entity.ExamReview" id="ExamReview"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<result column="id_" property="id" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<result column="examination_basic_id_" property="examinationBasicId" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<result column="teacher_id_" property="teacherId" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<result column="student_id_" property="studentId" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<result column="evaluation_content_" property="evaluationContent" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<result column="evaluation_result_" property="evaluationResult" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<result column="create_time_" property="createTime" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<result column="update_time_" property="updateTime" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<result column="tenant_id_" property="tenantId" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<association property="examinationBasic" javaType="com.keao.edu.user.entity.ExaminationBasic"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	</resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<!-- 根据主键查询一条记录 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<select id="get" resultMap="ExamReview" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		SELECT * FROM exam_review WHERE id_ = #{id}  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	</select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<!-- 全查询 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<select id="findAll" resultMap="ExamReview"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		SELECT * FROM exam_review ORDER BY id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	</select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<!-- 向数据库增加一条记录 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<insert id="insert" parameterType="com.keao.edu.user.entity.ExamReview" useGeneratedKeys="true" keyColumn="id" keyProperty="id"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		INSERT INTO exam_review (id_,examination_basic_id_,teacher_id_,student_id_,evaluation_content_, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		evaluation_result_,create_time_,update_time_,tenant_id_) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		VALUES(#{id},#{examinationBasicId},#{teacherId},#{studentId},#{evaluationContent}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		#{evaluationResult},NOW(),NOW(),#{tenantId}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	</insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<!-- 根据主键查询一条记录 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<update id="update" parameterType="com.keao.edu.user.entity.ExamReview"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		UPDATE exam_review <set> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<if test="examinationBasicId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		examination_basic_id_ = #{examinationBasicId}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<if test="teacherId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		teacher_id_ = #{teacherId}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<if test="evaluationResult != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		evaluation_result_ = #{evaluationResult}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<if test="tenantId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		tenant_id_ = #{tenantId}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<if test="updateTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		update_time_ = #{updateTime}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<if test="studentId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		student_id_ = #{studentId}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<if test="evaluationContent != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		evaluation_content_ = #{evaluationContent}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		</set> WHERE id_ = #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	</update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<!-- 根据主键删除一条记录 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<delete id="delete" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		DELETE FROM exam_review WHERE id_ = #{id}  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	</delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<!-- 分页查询 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<select id="queryPage" resultMap="ExamReview" parameterType="map"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		SELECT * FROM exam_review 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		ORDER BY id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<include refid="global.limit"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	</select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<!-- 查询当前表的总记录数 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<select id="queryCount" resultType="int"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		SELECT COUNT(*) FROM exam_review 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	</select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+</mapper> 
			 |