| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- <?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.PublicReleaseDateClockMapper">
- <resultMap id="BaseResultMap" type="com.goafanti.common.model.PublicReleaseDateClock">
- <id property="id" column="id" jdbcType="INTEGER"/>
- <result property="prid" column="prid" jdbcType="INTEGER"/>
- <result property="prdid" column="prdid" jdbcType="INTEGER"/>
- <result property="status" column="status" jdbcType="INTEGER"/>
- <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,
- status,clock_in_time,create_time
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from public_release_date_clock
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
- delete from public_release_date_clock
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicReleaseDateClock" useGeneratedKeys="true">
- insert into public_release_date_clock
- ( id,prid,prdid
- ,status,clock_in_time,create_time
- )
- values (#{id,jdbcType=INTEGER},#{prid,jdbcType=INTEGER},#{prdid,jdbcType=INTEGER}
- ,#{status,jdbcType=INTEGER},#{clockInTime,jdbcType=TIMESTAMP},#{createTime,jdbcType=TIMESTAMP}
- )
- </insert>
- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicReleaseDateClock" useGeneratedKeys="true">
- insert into public_release_date_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="status != null">status,</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="status != null">#{status,jdbcType=INTEGER},</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.PublicReleaseDateClock">
- update public_release_date_clock
- <set>
- <if test="prid != null">
- prid = #{prid,jdbcType=INTEGER},
- </if>
- <if test="prdid != null">
- prdid = #{prdid,jdbcType=INTEGER},
- </if>
- <if test="status != null">
- status = #{status,jdbcType=INTEGER},
- </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.PublicReleaseDateClock">
- update public_release_date_clock
- set
- prid = #{prid,jdbcType=INTEGER},
- prdid = #{prdid,jdbcType=INTEGER},
- status = #{status,jdbcType=INTEGER},
- clock_in_time = #{clockInTime,jdbcType=TIMESTAMP},
- create_time = #{createTime,jdbcType=TIMESTAMP}
- where id = #{id,jdbcType=INTEGER}
- </update>
- <delete id="deleteByPrid">
- delete from public_release_date_clock
- where prid = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insertBatch">
- insert into public_release_date_clock
- (prid,prdid,status,clock_in_time)
- values
- <foreach collection="list" item="item" index="index" separator=",">
- (#{item.prid,jdbcType=INTEGER},#{item.prdid,jdbcType=INTEGER},#{item.status,jdbcType=INTEGER},#{item.clockInTime,jdbcType=TIMESTAMP})
- </foreach>
- </insert>
- <select id="selectByPrid" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from public_release_date_clock
- where prid = #{id,jdbcType=INTEGER}
- </select>
- </mapper>
|