| | |
| | | select COUNT(m.id) as memberCount from member m
|
| | | </select>
|
| | |
|
| | | <select id="selectTotalAmountUsdtBForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(a.amount),'0') as amount
|
| | | FROM
|
| | | member_coin_charge a
|
| | | WHERE
|
| | | a.symbol = 'USDT'
|
| | | AND a.member_id = #{memberId}
|
| | | </select>
|
| | | <select id="selectTotalAmountUsdtBForBasicRealData" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(a.amount),'0') as amount
|
| | |
| | | account_type = '2'
|
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectTotalAmountUsdtSForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(a.amount),'0') as amount
|
| | | FROM
|
| | | member_coin_withdraw a
|
| | | WHERE
|
| | | a. STATUS = 2
|
| | | AND a.member_id = #{memberId}
|
| | | </select>
|
| | | <select id="selectTotalAmountUsdtSForBasicRealData" resultType="java.lang.String">
|
| | | SELECT
|
| | |
| | | )
|
| | | </select>
|
| | |
|
| | | <select id="selectTotalAmountUsdtCZForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(amount_usdt),'0')
|
| | | FROM
|
| | | member_quick_buy_sale
|
| | | WHERE
|
| | | order_type = 'B'
|
| | | AND order_status = 3
|
| | | AND member_id = #{memberId}
|
| | | </select>
|
| | | <select id="selectTotalAmountUsdtCZForBasicRealData" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(amount_usdt),'0')
|
| | |
| | | account_type = '2'
|
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectTotalAmountUsdtTXForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(amount_usdt),'0')
|
| | | FROM
|
| | | member_quick_buy_sale
|
| | | WHERE
|
| | | order_type = 'S'
|
| | | AND order_status = 2
|
| | | AND member_id = #{memberId}
|
| | | </select>
|
| | | <select id="selectTotalAmountUsdtTXForBasicRealData" resultType="java.lang.String">
|
| | | SELECT
|
| | |
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectReturnMoneyForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(s.amount), '0')
|
| | | FROM
|
| | | member_account_money_change s
|
| | | WHERE
|
| | | s.type = 3
|
| | | AND s.content LIKE '%佣金到账%'
|
| | | AND s.STATUS = '1'
|
| | | AND s.member_id = #{memberId}
|
| | | </select>
|
| | | <select id="selectReturnMoneyForBasicRealData" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(s.amount), '0')
|
| | |
| | | s.type = 3
|
| | | AND s.content LIKE '%佣金到账%'
|
| | | AND s. STATUS = '1'
|
| | | </select>
|
| | | <select id="selectClosingpriceForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(a.opening_fee_amount),'0')
|
| | | FROM
|
| | | contract_order a
|
| | | WHERE
|
| | | a.closing_type = '0'
|
| | | and a.order_status = '1'
|
| | | AND a.member_id = #{memberId}
|
| | | </select>
|
| | | <select id="selectClosingpriceForBasicRealData" resultType="java.lang.String">
|
| | | SELECT
|
| | |
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectSellClosingpriceForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(a.closing_fee_amount),'0')
|
| | | FROM
|
| | | contract_order a
|
| | | WHERE
|
| | | a.closing_type IN (2,3,4, 5, 6, 7, 8, 9)
|
| | | and a.order_status = '1'
|
| | | AND a.member_id = #{memberId}
|
| | | </select>
|
| | | <select id="selectSellClosingpriceForBasicRealData" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(a.closing_fee_amount),'0')
|
| | |
| | | account_type = '2'
|
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectRewardratioForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(a.reward_amount), '0')
|
| | | FROM
|
| | | contract_order a
|
| | | WHERE
|
| | | a.closing_type IN (2,3,4, 5, 6, 7, 8, 9)
|
| | | AND a.order_status = '1'
|
| | | AND a.member_id = #{memberId}
|
| | | </select>
|
| | | <select id="selectRewardratioForBasicRealData" resultType="java.lang.String">
|
| | | SELECT
|
| | |
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectprepriceForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(a.hold_amount),'0')
|
| | | FROM
|
| | | contract_order a
|
| | | WHERE
|
| | | a.member_id = #{memberId}
|
| | | </select>
|
| | | <select id="selectprepriceForBasicRealData" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(a.hold_amount),'0')
|
| | |
| | | account_type = '2'
|
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectBBZCForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(available_balance),'0')
|
| | | FROM
|
| | | member_wallet_coin
|
| | | WHERE
|
| | | wallet_code = 'USDT'
|
| | | AND member_id = #{memberId}
|
| | | </select>
|
| | | <select id="selectBBZCForBasicRealData" resultType="java.lang.String">
|
| | | SELECT
|
| | |
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectHYZCForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(total_balance),'0')
|
| | | FROM
|
| | | member_wallet_contract
|
| | | WHERE
|
| | | member_id = #{memberId}
|
| | | </select>
|
| | | <select id="selectHYZCForBasicRealData" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(total_balance),'0')
|
| | |
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectDLZCForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(total_balance),'0')
|
| | | FROM
|
| | | member_wallet_agent
|
| | | WHERE
|
| | | member_id = #{memberId}
|
| | | </select>
|
| | | <select id="selectDLZCForBasicRealData" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(total_balance),'0')
|