<?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.cloud.attendance.dao.AttAbnormalRecordDao">
|
<resultMap id="BaseResultMap" type="com.cloud.attendance.model.AttAbnormalRecord">
|
<id column="id" jdbcType="INTEGER" property="id" />
|
<result column="orgId" jdbcType="INTEGER" property="orgId" />
|
<result column="employeeId" jdbcType="VARCHAR" property="employeeId" />
|
<result column="employeeName" jdbcType="VARCHAR" property="employeeName" />
|
<result column="operatorDay" jdbcType="VARCHAR" property="operatorDay" />
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
<result column="repairInTime" jdbcType="TIMESTAMP" property="repairInTime" />
|
<result column="repairInDevice" jdbcType="VARCHAR" property="repairInDevice" />
|
<result column="repairOutTime" jdbcType="TIMESTAMP" property="repairOutTime" />
|
<result column="repairOutDevice" jdbcType="VARCHAR" property="repairOutDevice" />
|
<result column="holidayType" jdbcType="VARCHAR" property="holidayType" />
|
<result column="revJson" jdbcType="VARCHAR" property="revJson" />
|
<result column="createBy" jdbcType="VARCHAR" property="createBy" />
|
<result column="createTime" jdbcType="TIMESTAMP" property="createTime" />
|
<result column="updateBy" jdbcType="VARCHAR" property="updateBy" />
|
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
|
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
|
<result column="delFlag" jdbcType="VARCHAR" property="delFlag" />
|
</resultMap>
|
<sql id="Base_Column_List">
|
id, orgId, employeeId, employeeName, operatorDay, type, repairInTime, repairInDevice,
|
repairOutTime, repairOutDevice, holidayType, revJson, createBy, createTime, updateBy,
|
updateTime, remarks, delFlag
|
</sql>
|
<select id="selectById" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
select
|
<include refid="Base_Column_List" />
|
from att_abnormal_record
|
where id = #{id,jdbcType=INTEGER}
|
</select>
|
<delete id="deleteById" parameterType="java.lang.Integer">
|
delete from att_abnormal_record
|
where id = #{id,jdbcType=INTEGER}
|
</delete>
|
<insert id="save" parameterType="com.cloud.attendance.model.AttAbnormalRecord">
|
insert into att_abnormal_record (orgId, employeeId, employeeName,
|
operatorDay, type, repairInTime,
|
repairInDevice, repairOutTime, repairOutDevice,
|
holidayType, revJson, createBy,
|
createTime, updateBy, updateTime,
|
remarks, delFlag)
|
values (#{orgId,jdbcType=INTEGER}, #{employeeId,jdbcType=VARCHAR}, #{employeeName,jdbcType=VARCHAR},
|
#{operatorDay,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{repairInTime,jdbcType=TIMESTAMP},
|
#{repairInDevice,jdbcType=VARCHAR}, #{repairOutTime,jdbcType=TIMESTAMP}, #{repairOutDevice,jdbcType=VARCHAR},
|
#{holidayType,jdbcType=VARCHAR}, #{revJson,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},
|
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
#{remarks,jdbcType=VARCHAR}, #{delFlag,jdbcType=VARCHAR})
|
</insert>
|
<insert id="saveSelective" parameterType="com.cloud.attendance.model.AttAbnormalRecord">
|
insert into att_abnormal_record
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="orgId != null">
|
orgId,
|
</if>
|
<if test="employeeId != null">
|
employeeId,
|
</if>
|
<if test="employeeName != null">
|
employeeName,
|
</if>
|
<if test="operatorDay != null">
|
operatorDay,
|
</if>
|
<if test="type != null">
|
type,
|
</if>
|
<if test="repairInTime != null">
|
repairInTime,
|
</if>
|
<if test="repairInDevice != null">
|
repairInDevice,
|
</if>
|
<if test="repairOutTime != null">
|
repairOutTime,
|
</if>
|
<if test="repairOutDevice != null">
|
repairOutDevice,
|
</if>
|
<if test="holidayType != null">
|
holidayType,
|
</if>
|
<if test="revJson != null">
|
revJson,
|
</if>
|
<if test="createBy != null">
|
createBy,
|
</if>
|
<if test="createTime != null">
|
createTime,
|
</if>
|
<if test="updateBy != null">
|
updateBy,
|
</if>
|
<if test="updateTime != null">
|
updateTime,
|
</if>
|
<if test="remarks != null">
|
remarks,
|
</if>
|
<if test="delFlag != null">
|
delFlag,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="orgId != null">
|
#{orgId,jdbcType=INTEGER},
|
</if>
|
<if test="employeeId != null">
|
#{employeeId,jdbcType=VARCHAR},
|
</if>
|
<if test="employeeName != null">
|
#{employeeName,jdbcType=VARCHAR},
|
</if>
|
<if test="operatorDay != null">
|
#{operatorDay,jdbcType=VARCHAR},
|
</if>
|
<if test="type != null">
|
#{type,jdbcType=VARCHAR},
|
</if>
|
<if test="repairInTime != null">
|
#{repairInTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="repairInDevice != null">
|
#{repairInDevice,jdbcType=VARCHAR},
|
</if>
|
<if test="repairOutTime != null">
|
#{repairOutTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="repairOutDevice != null">
|
#{repairOutDevice,jdbcType=VARCHAR},
|
</if>
|
<if test="holidayType != null">
|
#{holidayType,jdbcType=VARCHAR},
|
</if>
|
<if test="revJson != null">
|
#{revJson,jdbcType=VARCHAR},
|
</if>
|
<if test="createBy != null">
|
#{createBy,jdbcType=VARCHAR},
|
</if>
|
<if test="createTime != null">
|
#{createTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="updateBy != null">
|
#{updateBy,jdbcType=VARCHAR},
|
</if>
|
<if test="updateTime != null">
|
#{updateTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="remarks != null">
|
#{remarks,jdbcType=VARCHAR},
|
</if>
|
<if test="delFlag != null">
|
#{delFlag,jdbcType=VARCHAR},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByIdSelective" parameterType="com.cloud.attendance.model.AttAbnormalRecord">
|
update att_abnormal_record
|
<set>
|
<if test="orgId != null">
|
orgId = #{orgId,jdbcType=INTEGER},
|
</if>
|
<if test="employeeId != null">
|
employeeId = #{employeeId,jdbcType=VARCHAR},
|
</if>
|
<if test="employeeName != null">
|
employeeName = #{employeeName,jdbcType=VARCHAR},
|
</if>
|
<if test="operatorDay != null">
|
operatorDay = #{operatorDay,jdbcType=VARCHAR},
|
</if>
|
<if test="type != null">
|
type = #{type,jdbcType=VARCHAR},
|
</if>
|
<if test="repairInTime != null">
|
repairInTime = #{repairInTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="repairInDevice != null">
|
repairInDevice = #{repairInDevice,jdbcType=VARCHAR},
|
</if>
|
<if test="repairOutTime != null">
|
repairOutTime = #{repairOutTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="repairOutDevice != null">
|
repairOutDevice = #{repairOutDevice,jdbcType=VARCHAR},
|
</if>
|
<if test="holidayType != null">
|
holidayType = #{holidayType,jdbcType=VARCHAR},
|
</if>
|
<if test="revJson != null">
|
revJson = #{revJson,jdbcType=VARCHAR},
|
</if>
|
<if test="createBy != null">
|
createBy = #{createBy,jdbcType=VARCHAR},
|
</if>
|
<if test="createTime != null">
|
createTime = #{createTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="updateBy != null">
|
updateBy = #{updateBy,jdbcType=VARCHAR},
|
</if>
|
<if test="updateTime != null">
|
updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="remarks != null">
|
remarks = #{remarks,jdbcType=VARCHAR},
|
</if>
|
<if test="delFlag != null">
|
delFlag = #{delFlag,jdbcType=VARCHAR},
|
</if>
|
</set>
|
where id = #{id,jdbcType=INTEGER}
|
</update>
|
<update id="updateById" parameterType="com.cloud.attendance.model.AttAbnormalRecord">
|
update att_abnormal_record
|
set orgId = #{orgId,jdbcType=INTEGER},
|
employeeId = #{employeeId,jdbcType=VARCHAR},
|
employeeName = #{employeeName,jdbcType=VARCHAR},
|
operatorDay = #{operatorDay,jdbcType=VARCHAR},
|
type = #{type,jdbcType=VARCHAR},
|
repairInTime = #{repairInTime,jdbcType=TIMESTAMP},
|
repairInDevice = #{repairInDevice,jdbcType=VARCHAR},
|
repairOutTime = #{repairOutTime,jdbcType=TIMESTAMP},
|
repairOutDevice = #{repairOutDevice,jdbcType=VARCHAR},
|
holidayType = #{holidayType,jdbcType=VARCHAR},
|
revJson = #{revJson,jdbcType=VARCHAR},
|
createBy = #{createBy,jdbcType=VARCHAR},
|
createTime = #{createTime,jdbcType=TIMESTAMP},
|
updateBy = #{updateBy,jdbcType=VARCHAR},
|
updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
remarks = #{remarks,jdbcType=VARCHAR},
|
delFlag = #{delFlag,jdbcType=VARCHAR}
|
where id = #{id,jdbcType=INTEGER}
|
</update>
|
</mapper>
|