38 lines
1.7 KiB
XML
38 lines
1.7 KiB
XML
<?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.evo.personnelMatters.mapper.BsOverTimeMapper">
|
|
|
|
<resultMap type="SpecialOverTime" id="SpecialOverTimeResult">
|
|
<result property="id" column="id" />
|
|
<result property="workStart" column="work_start" />
|
|
<result property="workEnd" column="work_end" />
|
|
<result property="remarks" column="remarks" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateTime" column="update_time" />
|
|
</resultMap>
|
|
|
|
<select id="selectSpecialOverTimeById" resultMap="SpecialOverTimeResult">
|
|
select id, work_start,work_end, remarks,del_flag, create_by, create_time, update_by, update_time from bs_over_time
|
|
</select>
|
|
|
|
<update id="updateSpecialOverTime" parameterType="SpecialOverTime">
|
|
update bs_over_time
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="workStart != null">work_start = #{workStart},</if>
|
|
<if test="workEnd != null">work_end = #{workEnd},</if>
|
|
<if test="remarks != null">remarks = #{remarks},</if>
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
</trim>
|
|
where id = #{id}
|
|
</update>
|
|
|
|
|
|
</mapper>
|