| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- <?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.PublicReleaseCountMapper">
- <resultMap id="BaseResultMap" type="com.goafanti.common.model.PublicReleaseCount">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jun 02 11:08:16 CST 2021.
- -->
- <id column="id" jdbcType="INTEGER" property="id" />
- <result column="aid" jdbcType="VARCHAR" property="aid" />
- <result column="count" jdbcType="INTEGER" property="count" />
- <result column="hour" jdbcType="DOUBLE" property="hour" />
- <result column="no_approved" jdbcType="INTEGER" property="noApproved" />
- <result column="reject" jdbcType="INTEGER" property="reject" />
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
- </resultMap>
- <sql id="Base_Column_List">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jun 02 11:08:16 CST 2021.
- -->
- id, aid, `count`, `hour`, no_approved, reject, create_time
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jun 02 11:08:16 CST 2021.
- -->
- select
- <include refid="Base_Column_List" />
- from public_release_count
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jun 02 11:08:16 CST 2021.
- -->
- delete from public_release_count
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.goafanti.common.model.PublicReleaseCount">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jun 02 11:08:16 CST 2021.
- -->
- insert into public_release_count (id, aid, `count`,
- `hour`, no_approved, reject,
- create_time)
- values (#{id,jdbcType=INTEGER}, #{aid,jdbcType=VARCHAR}, #{count,jdbcType=INTEGER},
- #{hour,jdbcType=DOUBLE}, #{noApproved,jdbcType=INTEGER}, #{reject,jdbcType=INTEGER},
- #{createTime,jdbcType=TIMESTAMP})
- </insert>
- <insert id="insertSelective" parameterType="com.goafanti.common.model.PublicReleaseCount">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jun 02 11:08:16 CST 2021.
- -->
- insert into public_release_count
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="aid != null">
- aid,
- </if>
- <if test="count != null">
- `count`,
- </if>
- <if test="hour != null">
- `hour`,
- </if>
- <if test="noApproved != null">
- no_approved,
- </if>
- <if test="reject != null">
- reject,
- </if>
- <if test="createTime != null">
- create_time,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">
- #{id,jdbcType=INTEGER},
- </if>
- <if test="aid != null">
- #{aid,jdbcType=VARCHAR},
- </if>
- <if test="count != null">
- #{count,jdbcType=INTEGER},
- </if>
- <if test="hour != null">
- #{hour,jdbcType=DOUBLE},
- </if>
- <if test="noApproved != null">
- #{noApproved,jdbcType=INTEGER},
- </if>
- <if test="reject != null">
- #{reject,jdbcType=INTEGER},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PublicReleaseCount">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jun 02 11:08:16 CST 2021.
- -->
- update public_release_count
- <set>
- <if test="aid != null">
- aid = #{aid,jdbcType=VARCHAR},
- </if>
- <if test="count != null">
- `count` = #{count,jdbcType=INTEGER},
- </if>
- <if test="hour != null">
- `hour` = #{hour,jdbcType=DOUBLE},
- </if>
- <if test="noApproved != null">
- no_approved = #{noApproved,jdbcType=INTEGER},
- </if>
- <if test="reject != null">
- reject = #{reject,jdbcType=INTEGER},
- </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.PublicReleaseCount">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jun 02 11:08:16 CST 2021.
- -->
- update public_release_count
- set aid = #{aid,jdbcType=VARCHAR},
- `count` = #{count,jdbcType=INTEGER},
- `hour` = #{hour,jdbcType=DOUBLE},
- no_approved = #{noApproved,jdbcType=INTEGER},
- reject = #{reject,jdbcType=INTEGER},
- create_time = #{createTime,jdbcType=TIMESTAMP}
- where id = #{id,jdbcType=INTEGER}
- </update>
-
- <select id="selectByAid" parameterType="java.lang.Integer" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from public_release_count
- where aid = #{aid}
- </select>
- </mapper>
|