| | |
| | | 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"> |
| | |
| | | <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"> |
| | |
| | | <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=","> |
| | |
| | | <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 |
| | |
| | | #{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 |
| | |
| | | <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> |