| | |
| | | <resultMap id="BaseResultMap" |
| | | type="com.yeshi.fanli.entity.bus.msg.MsgAccountDetail"> |
| | | <id column="ma_id" property="id" jdbcType="BIGINT" /> |
| | | <result column="ma_type" property="type" |
| | | <result column="ma_type" property="type" |
| | | typeHandler="com.yeshi.fanli.util.mybatishandler.msg.MsgTypeAccountTypeEnumHandler" /> |
| | | <result column="ma_title" property="title" jdbcType="VARCHAR" /> |
| | | <result column="ma_content" property="content" jdbcType="VARCHAR" /> |
| | |
| | | <result column="ma_read" property="read" jdbcType="BOOLEAN" /> |
| | | <result column="ma_create_time" property="createTime" jdbcType="TIMESTAMP" /> |
| | | <result column="ma_update_time" property="updateTime" jdbcType="TIMESTAMP" /> |
| | | <association property="user" column="ma_uid"> |
| | | <association property="user" column="ma_uid" |
| | | javaType="com.yeshi.fanli.entity.bus.user.UserInfo"> |
| | | <id column="ma_uid" property="id" jdbcType="BIGINT" /> |
| | | </association> |
| | | </resultMap> |
| | |
| | | </set> |
| | | where ma_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | |
| | | |
| | | <update id="setMsgReadByUid" parameterType="java.lang.Long"> |
| | | update |
| | | yeshi_ec_msg_account set ma_read=1 where ma_uid=#{0} |
| | | </update> |
| | | |
| | | |
| | | </mapper> |