| | |
| | | <result column="mi_read" property="read" jdbcType="BOOLEAN" />
|
| | | <result column="mi_create_time" property="createTime" jdbcType="TIMESTAMP" />
|
| | | <result column="mi_update_time" property="updateTime" jdbcType="TIMESTAMP" />
|
| | |
|
| | | <result column="extraInfo" property="extraInfo" jdbcType="VARCHAR"/>
|
| | | <association property="inviteUser" column="mi_invite_id"
|
| | | javaType="com.yeshi.fanli.entity.bus.user.ThreeSale">
|
| | | <id column="mi_invite_id" property="id" jdbcType="BIGINT" />
|
| | |
| | |
|
| | |
|
| | | <select id="listByUid" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | ,u.`id`,u.`nick_name`,u.`portrait` FROM yeshi_ec_msg_invite i LEFT
|
| | | JOIN yeshi_ec_threesale t ON t.`id`=i.`mi_invite_id` LEFT JOIN
|
| | | yeshi_ec_user u ON u.`id`=t.`worker_id` where mi_uid = #{uid} order by
|
| | | mi_update_time desc limit #{start},#{count}
|
| | | select <include refid="Base_Column_List" />,u.`id`,u.`nick_name`,u.`portrait`,
|
| | | te.`mea_content` AS extraInfo FROM yeshi_ec_msg_invite i |
| | | LEFT JOIN yeshi_ec_threesale t ON t.`id`=i.`mi_invite_id` |
| | | LEFT JOIN yeshi_ec_user u ON u.`id`=t.`worker_id` |
| | | LEFT JOIN `yeshi_ec_msg_extra` te ON (te.`mea_rid` = i.`mi_id` AND te.`mea_type` = 'invite')
|
| | | where mi_uid = #{uid} |
| | | order by mi_update_time desc |
| | | limit #{start},#{count}
|
| | | </select>
|
| | |
|
| | |
|