From 073d2e0dd261bae87d8f26092988dc176c940eaa Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 26 二月 2019 19:01:29 +0800 Subject: [PATCH] 券相关的通知消息 --- fanli/src/main/java/com/yeshi/fanli/mapping/msg/UserMsgUnReadNumMapper.xml | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/msg/UserMsgUnReadNumMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/msg/UserMsgUnReadNumMapper.xml index a847f33..e75d808 100644 --- a/fanli/src/main/java/com/yeshi/fanli/mapping/msg/UserMsgUnReadNumMapper.xml +++ b/fanli/src/main/java/com/yeshi/fanli/mapping/msg/UserMsgUnReadNumMapper.xml @@ -14,15 +14,17 @@ <result column="mrs_type_score" property="typeScore" jdbcType="INTEGER" /> <result column="mrs_type_system" property="typeSystem" jdbcType="INTEGER" /> + <result column="mrs_type_other" property="typeOther" jdbcType="INTEGER" /> <result column="mrs_create_time" property="createTime" jdbcType="TIMESTAMP" /> <result column="mrs_update_time" property="updateTime" jdbcType="TIMESTAMP" /> - <association property="user" column="mrs_uid" javaType="com.yeshi.fanli.entity.bus.user.UserInfo"> + <association property="user" column="mrs_uid" + javaType="com.yeshi.fanli.entity.bus.user.UserInfo"> <id column="mrs_uid" property="id" jdbcType="BIGINT" /> </association> </resultMap> - <sql id="Base_Column_List">mrs_id,mrs_uid,mrs_type_order,mrs_type_money,mrs_type_account,mrs_type_invite,mrs_type_score,mrs_type_system,mrs_create_time,mrs_update_time + <sql id="Base_Column_List">mrs_id,mrs_uid,mrs_type_order,mrs_type_money,mrs_type_account,mrs_type_invite,mrs_type_score,mrs_type_system,mrs_type_other,mrs_create_time,mrs_update_time </sql> <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long"> @@ -46,9 +48,9 @@ <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.msg.UserMsgUnReadNum" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_msg_read_state - (mrs_id,mrs_uid,mrs_type_order,mrs_type_money,mrs_type_account,mrs_type_invite,mrs_type_score,mrs_type_system,mrs_create_time,mrs_update_time) + (mrs_id,mrs_uid,mrs_type_order,mrs_type_money,mrs_type_account,mrs_type_invite,mrs_type_score,mrs_type_system,mrs_type_other,mrs_create_time,mrs_update_time) values - (#{id,jdbcType=BIGINT},#{user.id,jdbcType=BIGINT},#{typeOrder,jdbcType=INTEGER},#{typeMoney,jdbcType=INTEGER},#{typeAccount,jdbcType=INTEGER},#{typeInvite,jdbcType=INTEGER},#{typeScore,jdbcType=INTEGER},#{typeSystem,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP}) + (#{id,jdbcType=BIGINT},#{user.id,jdbcType=BIGINT},#{typeOrder,jdbcType=INTEGER},#{typeMoney,jdbcType=INTEGER},#{typeAccount,jdbcType=INTEGER},#{typeInvite,jdbcType=INTEGER},#{typeScore,jdbcType=INTEGER},#{typeSystem,jdbcType=INTEGER},#{typeOther,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP}) </insert> <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.msg.UserMsgUnReadNum" useGeneratedKeys="true" keyProperty="id"> @@ -62,6 +64,7 @@ <if test="typeInvite != null">mrs_type_invite,</if> <if test="typeScore != null">mrs_type_score,</if> <if test="typeSystem != null">mrs_type_system,</if> + <if test="typeOther != null">mrs_type_other,</if> <if test="createTime != null">mrs_create_time,</if> <if test="updateTime != null">mrs_update_time,</if> </trim> @@ -75,6 +78,7 @@ <if test="typeInvite != null">#{typeInvite,jdbcType=INTEGER},</if> <if test="typeScore != null">#{typeScore,jdbcType=INTEGER},</if> <if test="typeSystem != null">#{typeSystem,jdbcType=INTEGER},</if> + <if test="typeOther != null">#{typeOther,jdbcType=INTEGER},</if> <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if> </trim> @@ -87,7 +91,8 @@ #{typeAccount,jdbcType=INTEGER},mrs_type_invite = #{typeInvite,jdbcType=INTEGER},mrs_type_score = #{typeScore,jdbcType=INTEGER},mrs_type_system = - #{typeSystem,jdbcType=INTEGER},mrs_create_time = + #{typeSystem,jdbcType=INTEGER},mrs_type_other = + #{typeOther,jdbcType=INTEGER},mrs_create_time = #{createTime,jdbcType=TIMESTAMP},mrs_update_time = #{updateTime,jdbcType=TIMESTAMP} where mrs_id = #{id,jdbcType=BIGINT} </update> @@ -101,6 +106,7 @@ <if test="typeInvite != null">mrs_type_invite=#{typeInvite,jdbcType=INTEGER},</if> <if test="typeScore != null">mrs_type_score=#{typeScore,jdbcType=INTEGER},</if> <if test="typeSystem != null">mrs_type_system=#{typeSystem,jdbcType=INTEGER},</if> + <if test="typeOther != null">mrs_type_other=#{typeOther,jdbcType=INTEGER},</if> <if test="createTime != null">mrs_create_time=#{createTime,jdbcType=TIMESTAMP},</if> <if test="updateTime != null">mrs_update_time=#{updateTime,jdbcType=TIMESTAMP},</if> </set> -- Gitblit v1.8.0