| | |
| | | <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" />
|
| | | <result column="extraInfo" property="extraInfo" jdbcType="VARCHAR"/>
|
| | | <association property="user" column="ma_uid"
|
| | | javaType="com.yeshi.fanli.entity.bus.user.UserInfo">
|
| | | <id column="ma_uid" property="id" jdbcType="BIGINT" />
|
| | |
| | |
|
| | |
|
| | | <select id="listByUid" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_msg_account where ma_uid = #{uid,jdbcType=BIGINT} order
|
| | | by ma_update_time desc limit #{start},#{count}
|
| | | select d.*,t.`mea_content` AS extraInfo from yeshi_ec_msg_account d
|
| | | LEFT JOIN `yeshi_ec_msg_extra` t ON (t.`mea_rid` = d.`ma_id` AND t.`mea_type` = 'account')
|
| | | where d.ma_uid = #{uid,jdbcType=BIGINT} |
| | | order by d.ma_update_time desc |
| | | limit #{start},#{count}
|
| | | </select>
|
| | |
|
| | | <select id="countByUid" resultType="java.lang.Long"
|