|
@@ -11,7 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="endTime" column="end_time" />
|
|
<result property="endTime" column="end_time" />
|
|
<result property="reason" column="reason" />
|
|
<result property="reason" column="reason" />
|
|
<result property="classId" column="class_id" />
|
|
<result property="classId" column="class_id" />
|
|
- <result property="clasName" column="clas_name" />
|
|
|
|
|
|
+ <result property="className" column="class_name" />
|
|
<result property="absenteeId" column="absentee_id" />
|
|
<result property="absenteeId" column="absentee_id" />
|
|
<result property="absenteeName" column="absentee_name" />
|
|
<result property="absenteeName" column="absentee_name" />
|
|
<result property="examinersId" column="examiners_id" />
|
|
<result property="examinersId" column="examiners_id" />
|
|
@@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectRecordLeaveVo">
|
|
<sql id="selectRecordLeaveVo">
|
|
- select id, type, start_time, end_time, reason, class_id, clas_name, absentee_id, absentee_name, examiners_id, examiners_name, category, is_pass, photo, submit_time, create_by, create_time, update_by, update_time, remark from record_leave
|
|
|
|
|
|
+ select id, type, start_time, end_time, reason, class_id, class_name, absentee_id, absentee_name, examiners_id, examiners_name, category, is_pass, photo, submit_time, create_by, create_time, update_by, update_time, remark from record_leave
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectRecordLeaveList" parameterType="RecordLeave" resultMap="RecordLeaveResult">
|
|
<select id="selectRecordLeaveList" parameterType="RecordLeave" resultMap="RecordLeaveResult">
|
|
@@ -39,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="endTime != null "> and end_time = #{endTime}</if>
|
|
<if test="endTime != null "> and end_time = #{endTime}</if>
|
|
<if test="reason != null and reason != ''"> and reason = #{reason}</if>
|
|
<if test="reason != null and reason != ''"> and reason = #{reason}</if>
|
|
<if test="classId != null "> and class_id = #{classId}</if>
|
|
<if test="classId != null "> and class_id = #{classId}</if>
|
|
- <if test="clasName != null and clasName != ''"> and clas_name like concat('%', #{clasName}, '%')</if>
|
|
|
|
|
|
+ <if test="className != null and className != ''"> and class_name like concat('%', #{className}, '%')</if>
|
|
<if test="absenteeId != null and absenteeId != ''"> and absentee_id = #{absenteeId}</if>
|
|
<if test="absenteeId != null and absenteeId != ''"> and absentee_id = #{absenteeId}</if>
|
|
<if test="absenteeName != null and absenteeName != ''"> and absentee_name like concat('%', #{absenteeName}, '%')</if>
|
|
<if test="absenteeName != null and absenteeName != ''"> and absentee_name like concat('%', #{absenteeName}, '%')</if>
|
|
<if test="examinersId != null "> and examiners_id = #{examinersId}</if>
|
|
<if test="examinersId != null "> and examiners_id = #{examinersId}</if>
|
|
@@ -64,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="endTime != null">end_time,</if>
|
|
<if test="endTime != null">end_time,</if>
|
|
<if test="reason != null">reason,</if>
|
|
<if test="reason != null">reason,</if>
|
|
<if test="classId != null">class_id,</if>
|
|
<if test="classId != null">class_id,</if>
|
|
- <if test="clasName != null">clas_name,</if>
|
|
|
|
|
|
+ <if test="className != null">class_name,</if>
|
|
<if test="absenteeId != null">absentee_id,</if>
|
|
<if test="absenteeId != null">absentee_id,</if>
|
|
<if test="absenteeName != null">absentee_name,</if>
|
|
<if test="absenteeName != null">absentee_name,</if>
|
|
<if test="examinersId != null">examiners_id,</if>
|
|
<if test="examinersId != null">examiners_id,</if>
|
|
@@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="endTime != null">#{endTime},</if>
|
|
<if test="endTime != null">#{endTime},</if>
|
|
<if test="reason != null">#{reason},</if>
|
|
<if test="reason != null">#{reason},</if>
|
|
<if test="classId != null">#{classId},</if>
|
|
<if test="classId != null">#{classId},</if>
|
|
- <if test="clasName != null">#{clasName},</if>
|
|
|
|
|
|
+ <if test="className != null">#{className},</if>
|
|
<if test="absenteeId != null">#{absenteeId},</if>
|
|
<if test="absenteeId != null">#{absenteeId},</if>
|
|
<if test="absenteeName != null">#{absenteeName},</if>
|
|
<if test="absenteeName != null">#{absenteeName},</if>
|
|
<if test="examinersId != null">#{examinersId},</if>
|
|
<if test="examinersId != null">#{examinersId},</if>
|
|
@@ -110,7 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="endTime != null">end_time = #{endTime},</if>
|
|
<if test="endTime != null">end_time = #{endTime},</if>
|
|
<if test="reason != null">reason = #{reason},</if>
|
|
<if test="reason != null">reason = #{reason},</if>
|
|
<if test="classId != null">class_id = #{classId},</if>
|
|
<if test="classId != null">class_id = #{classId},</if>
|
|
- <if test="clasName != null">clas_name = #{clasName},</if>
|
|
|
|
|
|
+ <if test="className != null">class_name = #{className},</if>
|
|
<if test="absenteeId != null">absentee_id = #{absenteeId},</if>
|
|
<if test="absenteeId != null">absentee_id = #{absenteeId},</if>
|
|
<if test="absenteeName != null">absentee_name = #{absenteeName},</if>
|
|
<if test="absenteeName != null">absentee_name = #{absenteeName},</if>
|
|
<if test="examinersId != null">examiners_id = #{examinersId},</if>
|
|
<if test="examinersId != null">examiners_id = #{examinersId},</if>
|