|
|
@@ -0,0 +1,171 @@
|
|
|
+<?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.AdminUserCountMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.goafanti.common.model.AdminUserCount">
|
|
|
+ <id column="id" jdbcType="INTEGER" property="id" />
|
|
|
+ <result column="aid" jdbcType="VARCHAR" property="aid" />
|
|
|
+ <result column="private_count" jdbcType="INTEGER" property="privateCount" />
|
|
|
+ <result column="sign_count" jdbcType="INTEGER" property="signCount" />
|
|
|
+ <result column="channel_count" jdbcType="INTEGER" property="channelCount" />
|
|
|
+ <result column="public_release_count" jdbcType="INTEGER" property="publicReleaseCount" />
|
|
|
+ <result column="follow_count" jdbcType="INTEGER" property="followCount" />
|
|
|
+ <result column="order_count" jdbcType="INTEGER" property="orderCount" />
|
|
|
+ <result column="date_time" jdbcType="DATE" property="dateTime" />
|
|
|
+ <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ id, aid, private_count, sign_count, channel_count, public_release_count, follow_count,
|
|
|
+ order_count, date_time, create_time
|
|
|
+ </sql>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from admin_user_count
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
+ delete from admin_user_count
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.AdminUserCount" useGeneratedKeys="true">
|
|
|
+ insert into admin_user_count (aid, private_count, sign_count,
|
|
|
+ channel_count, public_release_count, follow_count,
|
|
|
+ order_count, date_time, create_time
|
|
|
+ )
|
|
|
+ values (#{aid,jdbcType=VARCHAR}, #{privateCount,jdbcType=INTEGER}, #{signCount,jdbcType=INTEGER},
|
|
|
+ #{channelCount,jdbcType=INTEGER}, #{publicReleaseCount,jdbcType=INTEGER}, #{followCount,jdbcType=INTEGER},
|
|
|
+ #{orderCount,jdbcType=INTEGER}, #{dateTime,jdbcType=DATE}, #{createTime,jdbcType=TIMESTAMP}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.AdminUserCount" useGeneratedKeys="true">
|
|
|
+ insert into admin_user_count
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="aid != null">
|
|
|
+ aid,
|
|
|
+ </if>
|
|
|
+ <if test="privateCount != null">
|
|
|
+ private_count,
|
|
|
+ </if>
|
|
|
+ <if test="signCount != null">
|
|
|
+ sign_count,
|
|
|
+ </if>
|
|
|
+ <if test="channelCount != null">
|
|
|
+ channel_count,
|
|
|
+ </if>
|
|
|
+ <if test="publicReleaseCount != null">
|
|
|
+ public_release_count,
|
|
|
+ </if>
|
|
|
+ <if test="followCount != null">
|
|
|
+ follow_count,
|
|
|
+ </if>
|
|
|
+ <if test="orderCount != null">
|
|
|
+ order_count,
|
|
|
+ </if>
|
|
|
+ <if test="dateTime != null">
|
|
|
+ date_time,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="aid != null">
|
|
|
+ #{aid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="privateCount != null">
|
|
|
+ #{privateCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="signCount != null">
|
|
|
+ #{signCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="channelCount != null">
|
|
|
+ #{channelCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="publicReleaseCount != null">
|
|
|
+ #{publicReleaseCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="followCount != null">
|
|
|
+ #{followCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="orderCount != null">
|
|
|
+ #{orderCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="dateTime != null">
|
|
|
+ #{dateTime,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.AdminUserCount">
|
|
|
+ update admin_user_count
|
|
|
+ <set>
|
|
|
+ <if test="aid != null">
|
|
|
+ aid = #{aid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="privateCount != null">
|
|
|
+ private_count = #{privateCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="signCount != null">
|
|
|
+ sign_count = #{signCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="channelCount != null">
|
|
|
+ channel_count = #{channelCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="publicReleaseCount != null">
|
|
|
+ public_release_count = #{publicReleaseCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="followCount != null">
|
|
|
+ follow_count = #{followCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="orderCount != null">
|
|
|
+ order_count = #{orderCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="dateTime != null">
|
|
|
+ date_time = #{dateTime,jdbcType=DATE},
|
|
|
+ </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.AdminUserCount">
|
|
|
+ update admin_user_count
|
|
|
+ set aid = #{aid,jdbcType=VARCHAR},
|
|
|
+ private_count = #{privateCount,jdbcType=INTEGER},
|
|
|
+ sign_count = #{signCount,jdbcType=INTEGER},
|
|
|
+ channel_count = #{channelCount,jdbcType=INTEGER},
|
|
|
+ public_release_count = #{publicReleaseCount,jdbcType=INTEGER},
|
|
|
+ follow_count = #{followCount,jdbcType=INTEGER},
|
|
|
+ order_count = #{orderCount,jdbcType=INTEGER},
|
|
|
+ date_time = #{dateTime,jdbcType=DATE},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <update id="updateByAidAndDateSelective">
|
|
|
+ update admin_user_count
|
|
|
+ <set>
|
|
|
+ <if test="privateCount != null">
|
|
|
+ private_count = #{privateCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="signCount != null">
|
|
|
+ sign_count = #{signCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="channelCount != null">
|
|
|
+ channel_count = #{channelCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="publicReleaseCount != null">
|
|
|
+ public_release_count = #{publicReleaseCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="followCount != null">
|
|
|
+ follow_count = #{followCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="orderCount != null">
|
|
|
+ order_count = #{orderCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where aid = #{aid,jdbcType=VARCHAR} and date_time = #{dateTime,jdbcType=DATE}
|
|
|
+ </update>
|
|
|
+</mapper>
|