<?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>
|
<select id="selectDocumentaryOrderSetInfosBymemberId" resultType="com.xcong.excoin.modules.documentary.entity.FollowFollowerSettingEntity">
|
SELECT
|
*
|
FROM
|
follow_follower_setting
|
WHERE
|
member_id = #{memberId}
|
</select>
|
|
</mapper>
|