From 51a4ff5d777028d52a19c314a99f796334cb7b51 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 23 十一月 2019 18:30:01 +0800 Subject: [PATCH] 配置文件修改 --- fanli/src/main/java/com/yeshi/fanli/mapping/msg/UserMsgUnReadNumMapper.xml | 24 ++++++++++++++++-------- 1 files changed, 16 insertions(+), 8 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 e75d808..1eaa1bd 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 @@ -19,12 +19,15 @@ jdbcType="TIMESTAMP" /> <result column="mrs_update_time" property="updateTime" jdbcType="TIMESTAMP" /> + <result column="mrs_type_guanxuan_read_time" property="guanXuanReadTime" + jdbcType="TIMESTAMP" /> <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_type_other,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,mrs_type_guanxuan_read_time </sql> <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long"> @@ -32,25 +35,21 @@ <include refid="Base_Column_List" /> from yeshi_ec_msg_read_state where mrs_id = #{id,jdbcType=BIGINT} </select> - - <select id="selectByUid" resultMap="BaseResultMap" parameterType="java.lang.Long"> select <include refid="Base_Column_List" /> from yeshi_ec_msg_read_state where mrs_uid = #{uid,jdbcType=BIGINT} </select> - - <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_msg_read_state where mrs_id = #{id,jdbcType=BIGINT} </delete> <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_type_other,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,mrs_type_zhushou_read_time,mrs_type_guanxuan_read_time,mrs_type_recommend_read_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},#{typeOther,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},#{guanXuanReadTime,jdbcType=TIMESTAMP}) </insert> <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.msg.UserMsgUnReadNum" useGeneratedKeys="true" keyProperty="id"> @@ -67,6 +66,7 @@ <if test="typeOther != null">mrs_type_other,</if> <if test="createTime != null">mrs_create_time,</if> <if test="updateTime != null">mrs_update_time,</if> + <if test="guanXuanReadTime != null">mrs_type_guanxuan_read_time,</if> </trim> values <trim prefix="(" suffix=")" suffixOverrides=","> @@ -81,6 +81,7 @@ <if test="typeOther != null">#{typeOther,jdbcType=INTEGER},</if> <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if> + <if test="guanXuanReadTime != null">#{guanXuanReadTime,jdbcType=TIMESTAMP}</if> </trim> </insert> <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.msg.UserMsgUnReadNum">update @@ -94,7 +95,9 @@ #{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} + #{updateTime,jdbcType=TIMESTAMP} ,mrs_type_guanxuan_read_time + =#{guanXuanReadTime,jdbcType=TIMESTAMP} where mrs_id = + #{id,jdbcType=BIGINT} </update> <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.msg.UserMsgUnReadNum"> update yeshi_ec_msg_read_state @@ -109,6 +112,11 @@ <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> + <if test="id !=null">mrs_id =#{id,jdbcType=BIGINT},</if> + + <if test="guanXuanReadTime !=null">mrs_type_guanxuan_read_time + =#{guanXuanReadTime,jdbcType=TIMESTAMP}, + </if> </set> where mrs_id = #{id,jdbcType=BIGINT} </update> -- Gitblit v1.8.0