From aa774af6df16ef11e1e34ac5aeed9aae0cb3e8e2 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 09 四月 2020 16:25:03 +0800 Subject: [PATCH] 团队分红完善 --- fanli/src/main/java/com/yeshi/fanli/mapping/user/vip/TeamUserLevelStatisticMapper.xml | 28 ++++++++++++++++++++-------- 1 files changed, 20 insertions(+), 8 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/user/vip/TeamUserLevelStatisticMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/user/vip/TeamUserLevelStatisticMapper.xml index 37ac927..c945e23 100644 --- a/fanli/src/main/java/com/yeshi/fanli/mapping/user/vip/TeamUserLevelStatisticMapper.xml +++ b/fanli/src/main/java/com/yeshi/fanli/mapping/user/vip/TeamUserLevelStatisticMapper.xml @@ -23,8 +23,12 @@ 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" /> </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 + <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 </sql> <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long"> @@ -35,15 +39,14 @@ </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_team_user_level_statistic where tuls_uid = - #{id,jdbcType=BIGINT} - </delete> + #{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_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) 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}) + (#{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}) </insert> <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.vip.TeamUserLevelStatistic" @@ -60,6 +63,8 @@ <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> </trim> values <trim prefix="(" suffix=")" suffixOverrides=","> @@ -73,6 +78,8 @@ <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> </trim> </insert> <update id="updateByPrimaryKey" @@ -85,9 +92,10 @@ #{superFirstCount,jdbcType=INTEGER},tuls_super_second_count = #{superSecondCount,jdbcType=INTEGER},tuls_create_time = #{createTime,jdbcType=TIMESTAMP},tuls_update_time = - #{updateTime,jdbcType=TIMESTAMP} where tuls_uid = - #{id,jdbcType=BIGINT} - </update> + #{updateTime,jdbcType=TIMESTAMP} ,tuls_tearcher_first_count + =#{tearcherFirstCount,jdbcType=INTEGER} ,tuls_tearcher_second_count + =#{tearcherSecondCount,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 @@ -107,6 +115,10 @@ </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> </set> where tuls_uid = #{id,jdbcType=BIGINT} </update> -- Gitblit v1.8.0