|
|
@@ -0,0 +1,91 @@
|
|
|
+<?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.goafanti.common.dao.PublicReleaseClockMapper">
|
|
|
+
|
|
|
+ <resultMap id="BaseResultMap" type="com.goafanti.common.model.PublicReleaseClock">
|
|
|
+ <id property="id" column="id" jdbcType="INTEGER"/>
|
|
|
+ <result property="prid" column="prid" jdbcType="INTEGER"/>
|
|
|
+ <result property="prdid" column="prdid" jdbcType="INTEGER"/>
|
|
|
+ <result property="photoUrl" column="photo_url" jdbcType="VARCHAR"/>
|
|
|
+ <result property="clockInTime" column="clock_in_time" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ id,prid,prdid,
|
|
|
+ photo_url,clock_in_time,create_time
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from public_release_clock
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
+ delete from public_release_clock
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicReleaseClock" useGeneratedKeys="true">
|
|
|
+ insert into public_release_clock
|
|
|
+ ( id,prid,prdid
|
|
|
+ ,photo_url,clock_in_time,create_time
|
|
|
+ )
|
|
|
+ values (#{id,jdbcType=INTEGER},#{prid,jdbcType=INTEGER},#{prdid,jdbcType=INTEGER}
|
|
|
+ ,#{photoUrl,jdbcType=VARCHAR},#{clockInTime,jdbcType=TIMESTAMP},#{createTime,jdbcType=TIMESTAMP}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicReleaseClock" useGeneratedKeys="true">
|
|
|
+ insert into public_release_clock
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">id,</if>
|
|
|
+ <if test="prid != null">prid,</if>
|
|
|
+ <if test="prdid != null">prdid,</if>
|
|
|
+ <if test="photoUrl != null">photo_url,</if>
|
|
|
+ <if test="clockInTime != null">clock_in_time,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">#{id,jdbcType=INTEGER},</if>
|
|
|
+ <if test="prid != null">#{prid,jdbcType=INTEGER},</if>
|
|
|
+ <if test="prdid != null">#{prdid,jdbcType=INTEGER},</if>
|
|
|
+ <if test="photoUrl != null">#{photoUrl,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="clockInTime != null">#{clockInTime,jdbcType=TIMESTAMP},</if>
|
|
|
+ <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PublicReleaseClock">
|
|
|
+ update public_release_clock
|
|
|
+ <set>
|
|
|
+ <if test="prid != null">
|
|
|
+ prid = #{prid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="prdid != null">
|
|
|
+ prdid = #{prdid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="photoUrl != null">
|
|
|
+ photo_url = #{photoUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="clockInTime != null">
|
|
|
+ clock_in_time = #{clockInTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.PublicReleaseClock">
|
|
|
+ update public_release_clock
|
|
|
+ set
|
|
|
+ prid = #{prid,jdbcType=INTEGER},
|
|
|
+ prdid = #{prdid,jdbcType=INTEGER},
|
|
|
+ photo_url = #{photoUrl,jdbcType=VARCHAR},
|
|
|
+ clock_in_time = #{clockInTime,jdbcType=TIMESTAMP},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+</mapper>
|