admin
2020-04-15 ee5c8055b1c0dd7c67a9025a76b10bd287c93d9a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?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.yeshi.fanli.dao.mybatis.user.vip.TeamUserLevelStatisticMapper">
    <resultMap id="BaseResultMap"
        type="com.yeshi.fanli.entity.bus.user.vip.TeamUserLevelStatistic">
        <id column="tuls_uid" property="id" jdbcType="BIGINT" />
        <result column="tuls_level" property="level" jdbcType="VARCHAR" />
        <result column="tuls_normal_first_count" property="normalFirstCount"
            jdbcType="INTEGER" />
        <result column="tuls_normal_second_count" property="normalSecondCount"
            jdbcType="INTEGER" />
        <result column="tuls_high_first_count" property="highFirstCount"
            jdbcType="INTEGER" />
        <result column="tuls_high_second_count" property="highSecondCount"
            jdbcType="INTEGER" />
        <result column="tuls_super_first_count" property="superFirstCount"
            jdbcType="INTEGER" />
        <result column="tuls_super_second_count" property="superSecondCount"
            jdbcType="INTEGER" />
        <result column="tuls_create_time" property="createTime"
            jdbcType="TIMESTAMP" />
        <result column="tuls_update_time" property="updateTime"
            jdbcType="TIMESTAMP" />
        <result column="tuls_tearcher_first_count" property="tearcherFirstCount"
            jdbcType="INTEGER" />
        <result column="tuls_tearcher_second_count" property="tearcherSecondCount"
            jdbcType="INTEGER" />
        <result column="tuls_daren_first_count" property="daRenFirstCount"
            jdbcType="INTEGER" />
        <result column="tuls_daren_second_count" property="daRenSecondCount"
            jdbcType="INTEGER" />
    </resultMap>
    <sql id="Base_Column_List">tuls_uid,tuls_level,tuls_normal_first_count,tuls_normal_second_count,tuls_high_first_count,tuls_high_second_count,tuls_super_first_count,tuls_super_second_count,tuls_create_time,tuls_update_time,tuls_tearcher_first_count,tuls_tearcher_second_count,tuls_daren_first_count,tuls_daren_second_count
    </sql>
    <select id="selectByPrimaryKey" resultMap="BaseResultMap"
        parameterType="java.lang.Long">
        select
        <include refid="Base_Column_List" />
        from yeshi_ec_team_user_level_statistic where tuls_uid =
        #{id,jdbcType=BIGINT}
    </select>
    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
        yeshi_ec_team_user_level_statistic where tuls_uid =
        #{id,jdbcType=BIGINT}
    </delete>
    <insert id="insert"
        parameterType="com.yeshi.fanli.entity.bus.user.vip.TeamUserLevelStatistic"
        useGeneratedKeys="true" keyProperty="id">insert into
        yeshi_ec_team_user_level_statistic
        (tuls_uid,tuls_level,tuls_normal_first_count,tuls_normal_second_count,tuls_high_first_count,tuls_high_second_count,tuls_super_first_count,tuls_super_second_count,tuls_create_time,tuls_update_time,tuls_tearcher_first_count,tuls_tearcher_second_count,tuls_daren_first_count,tuls_daren_second_count)
        values
        (#{id,jdbcType=BIGINT},#{level,jdbcType=VARCHAR},#{normalFirstCount,jdbcType=INTEGER},#{normalSecondCount,jdbcType=INTEGER},#{highFirstCount,jdbcType=INTEGER},#{highSecondCount,jdbcType=INTEGER},#{superFirstCount,jdbcType=INTEGER},#{superSecondCount,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP},#{tearcherFirstCount,jdbcType=INTEGER},#{tearcherSecondCount,jdbcType=INTEGER},#{daRenFirstCount,jdbcType=INTEGER},#{daRenSecondCount,jdbcType=INTEGER})
    </insert>
    <insert id="insertSelective"
        parameterType="com.yeshi.fanli.entity.bus.user.vip.TeamUserLevelStatistic"
        useGeneratedKeys="true" keyProperty="id">
        insert into yeshi_ec_team_user_level_statistic
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null">tuls_uid,</if>
            <if test="level != null">tuls_level,</if>
            <if test="normalFirstCount != null">tuls_normal_first_count,</if>
            <if test="normalSecondCount != null">tuls_normal_second_count,</if>
            <if test="highFirstCount != null">tuls_high_first_count,</if>
            <if test="highSecondCount != null">tuls_high_second_count,</if>
            <if test="superFirstCount != null">tuls_super_first_count,</if>
            <if test="superSecondCount != null">tuls_super_second_count,</if>
            <if test="createTime != null">tuls_create_time,</if>
            <if test="updateTime != null">tuls_update_time,</if>
            <if test="tearcherFirstCount != null">tuls_tearcher_first_count,</if>
            <if test="tearcherSecondCount != null">tuls_tearcher_second_count,</if>
            <if test="daRenFirstCount != null">tuls_daren_first_count,</if>
            <if test="daRenSecondCount != null">tuls_daren_second_count,</if>
        </trim>
        values
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null">#{id,jdbcType=BIGINT},</if>
            <if test="level != null">#{level,jdbcType=VARCHAR},</if>
            <if test="normalFirstCount != null">#{normalFirstCount,jdbcType=INTEGER},</if>
            <if test="normalSecondCount != null">#{normalSecondCount,jdbcType=INTEGER},</if>
            <if test="highFirstCount != null">#{highFirstCount,jdbcType=INTEGER},</if>
            <if test="highSecondCount != null">#{highSecondCount,jdbcType=INTEGER},</if>
            <if test="superFirstCount != null">#{superFirstCount,jdbcType=INTEGER},</if>
            <if test="superSecondCount != null">#{superSecondCount,jdbcType=INTEGER},</if>
            <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
            <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
            <if test="tearcherFirstCount != null">#{tearcherFirstCount,jdbcType=INTEGER},</if>
            <if test="tearcherSecondCount != null">#{tearcherSecondCount,jdbcType=INTEGER},</if>
            <if test="daRenFirstCount != null">#{daRenFirstCount,jdbcType=INTEGER},</if>
            <if test="daRenSecondCount != null">#{daRenSecondCount,jdbcType=INTEGER},</if>
        </trim>
    </insert>
    <update id="updateByPrimaryKey"
        parameterType="com.yeshi.fanli.entity.bus.user.vip.TeamUserLevelStatistic">update yeshi_ec_team_user_level_statistic set tuls_level
        = #{level,jdbcType=VARCHAR},tuls_normal_first_count =
        #{normalFirstCount,jdbcType=INTEGER},tuls_normal_second_count =
        #{normalSecondCount,jdbcType=INTEGER},tuls_high_first_count =
        #{highFirstCount,jdbcType=INTEGER},tuls_high_second_count =
        #{highSecondCount,jdbcType=INTEGER},tuls_super_first_count =
        #{superFirstCount,jdbcType=INTEGER},tuls_super_second_count =
        #{superSecondCount,jdbcType=INTEGER},tuls_create_time =
        #{createTime,jdbcType=TIMESTAMP},tuls_update_time =
        #{updateTime,jdbcType=TIMESTAMP} ,tuls_tearcher_first_count
        =#{tearcherFirstCount,jdbcType=INTEGER} ,tuls_tearcher_second_count
        =#{tearcherSecondCount,jdbcType=INTEGER} ,tuls_daren_first_count
        =#{daRenFirstCount,jdbcType=INTEGER} ,tuls_daren_second_count
        =#{daRenSecondCount,jdbcType=INTEGER} where tuls_uid =
        #{id,jdbcType=BIGINT}
    </update>
    <update id="updateByPrimaryKeySelective"
        parameterType="com.yeshi.fanli.entity.bus.user.vip.TeamUserLevelStatistic">
        update yeshi_ec_team_user_level_statistic
        <set>
            <if test="level != null">tuls_level=#{level,jdbcType=VARCHAR},</if>
            <if test="normalFirstCount != null">tuls_normal_first_count=#{normalFirstCount,jdbcType=INTEGER},
            </if>
            <if test="normalSecondCount != null">tuls_normal_second_count=#{normalSecondCount,jdbcType=INTEGER},
            </if>
            <if test="highFirstCount != null">tuls_high_first_count=#{highFirstCount,jdbcType=INTEGER},
            </if>
            <if test="highSecondCount != null">tuls_high_second_count=#{highSecondCount,jdbcType=INTEGER},
            </if>
            <if test="superFirstCount != null">tuls_super_first_count=#{superFirstCount,jdbcType=INTEGER},
            </if>
            <if test="superSecondCount != null">tuls_super_second_count=#{superSecondCount,jdbcType=INTEGER},
            </if>
            <if test="createTime != null">tuls_create_time=#{createTime,jdbcType=TIMESTAMP},</if>
            <if test="updateTime != null">tuls_update_time=#{updateTime,jdbcType=TIMESTAMP},</if>
            <if test="tearcherFirstCount !=null">tuls_tearcher_first_count
                =#{tearcherFirstCount,jdbcType=INTEGER},
            </if>
            <if test="tearcherSecondCount !=null">tuls_tearcher_second_count
                =#{tearcherSecondCount,jdbcType=INTEGER},
            </if>
            <if test="daRenFirstCount !=null">tuls_daren_first_count
                =#{daRenFirstCount,jdbcType=INTEGER},
            </if>
            <if test="daRenSecondCount !=null">tuls_daren_second_count
                =#{daRenSecondCount,jdbcType=INTEGER},
            </if>
        </set>
        where tuls_uid = #{id,jdbcType=BIGINT}
    </update>
</mapper>