Helius
2020-07-29 fd7c15b0d7fff836fc26f1feaf72ccf7cb1f7efc
src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml
@@ -2,4 +2,20 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xcong.excoin.modules.documentary.dao.FollowFollowerProfitDao">
   <select id="selectFollowRecords" resultType="com.xcong.excoin.modules.documentary.vo.FollowRecordsVo">
      SELECT
         id,
         member_id memberId,
         trade_id tradeId,
         trade_member_id tradeMemberId,
         total_principal totalPrincipal,
         is_follow isFollow,
         total_profit totalProfit
      FROM
         follow_follower_profit
      WHERE
         trade_member_id = #{tradeMemberId}
      order by create_time desc
    </select>
</mapper>