admin
2019-11-23 51a4ff5d777028d52a19c314a99f796334cb7b51
fanli/src/main/java/com/yeshi/fanli/mapping/msg/UserMsgUnReadNumMapper.xml
@@ -14,15 +14,20 @@
      <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">
      <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_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">
@@ -30,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_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},#{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">
@@ -62,8 +63,10 @@
         <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>
         <if test="guanXuanReadTime != null">mrs_type_guanxuan_read_time,</if>
      </trim>
      values
      <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -75,8 +78,10 @@
         <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>
         <if test="guanXuanReadTime != null">#{guanXuanReadTime,jdbcType=TIMESTAMP}</if>
      </trim>
   </insert>
   <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.msg.UserMsgUnReadNum">update
@@ -87,9 +92,12 @@
      #{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}
      #{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
@@ -101,8 +109,14 @@
         <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>
         <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>