yujian
2020-06-09 554de444b87aab5f93cb1593a8095612cf9479a7
fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgAccountDetailMapper.xml
@@ -13,6 +13,7 @@
      <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" />
@@ -29,10 +30,11 @@
   <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"