<?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>
|
|
|
|
<select id="listByUids" resultMap="BaseResultMap">
|
select
|
<include refid="Base_Column_List" />
|
from yeshi_ec_team_user_level_statistic where
|
<foreach collection="uidList" open="(" separator=" or " close=")"
|
item="uid">
|
tuls_uid =#{uid}
|
</foreach>
|
</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>
|