zainali5120
2020-10-25 b030eeff5a2cf97f25037be96e118a4c90bc2240
src/main/resources/mapper/documentary/FollowFollowerSettingDao.xml
@@ -1,5 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!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.FollowFollowerSettingDao">
   <select id="selectDocumentaryOrderSetInfoBymemberId" resultType="com.xcong.excoin.modules.documentary.entity.FollowFollowerSettingEntity">
      SELECT
         *
      FROM
         follow_follower_setting
      WHERE
         member_id = #{memberId}
    </select>
   <select id="selectOneBymemberIdAndTradeId" resultType="com.xcong.excoin.modules.documentary.entity.FollowFollowerSettingEntity">
      SELECT
         *
      FROM
         follow_follower_setting
      WHERE
         member_id = #{memberId}
         and trader_id = #{traderId}
    </select>
   <select id="selectAllFollowerSettingByTradeMemberId" resultType="com.xcong.excoin.modules.documentary.entity.FollowFollowerSettingEntity">
      select a.*
      from follow_follower_setting a, follow_follower_profit b
      where a.member_id=b.member_id and a.trader_member_id=b.trade_member_id and a.trader_member_id=#{memberId} and b.is_follow=1
   </select>
</mapper>