xiaoyong931011
2021-04-06 d76ed8abc8f31e210f4e93f173f41bc2861870dd
src/main/resources/mapper/documentary/FollowTraderInfoDao.xml
@@ -8,6 +8,25 @@
   <select id="selectTraderInfoByMemberId" resultType="com.xcong.excoin.modules.documentary.entity.FollowTraderInfoEntity">
      select * from follow_trader_info where member_id=#{memberId}
      select * from follow_trader_info where member_id=#{memberId} and verify_status in (1,3)
   </select>
   <select id="selectTraderInfoByOrderId" resultType="com.xcong.excoin.modules.documentary.entity.FollowTraderInfoEntity">
      select a.*
      from follow_trader_info a, follow_follower_order_relation b
      where a.member_id=b.trade_member_id and b.order_id=#{orderId} and b.order_type=1
   </select>
   <select id="selectAllTraderInfo" resultType="com.xcong.excoin.modules.documentary.entity.FollowTraderInfoEntity">
      select *
      from follow_trader_info
      where verify_status=1
   </select>
   <select id="selectBeTraderCondition" resultType="com.xcong.excoin.modules.documentary.vo.BeTraderConditionVo">
      select *
      from common_configuration
      where state=1 and type = #{type}
   </select>
</mapper>