| | |
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectTotalAmountUsdtBForBasicData" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(a.amount),'0') as amount
|
| | | FROM
|
| | | member_coin_charge a
|
| | | WHERE
|
| | | a.symbol = 'USDT'
|
| | | </select>
|
| | | <select id="selectTotalAmountUsdtSForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(a.amount),'0') as amount
|
| | |
| | | account_type = '2'
|
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectTotalAmountUsdtSForBasicData" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(a.amount),'0') as amount
|
| | | FROM
|
| | | member_coin_withdraw a
|
| | | WHERE
|
| | | a. STATUS = 2
|
| | | AND a.is_inside = 'N'
|
| | | </select>
|
| | |
|
| | | <select id="selectTotalAmountUsdtCZForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | |
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectTotalAmountUsdtCZForBasicData" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(amount_usdt),'0')
|
| | | FROM
|
| | | member_quick_buy_sale
|
| | | WHERE
|
| | | order_type = 'B'
|
| | | AND order_status = 3
|
| | | </select>
|
| | | <select id="selectTotalAmountUsdtTXForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(amount_usdt),'0')
|
| | |
| | | account_type = '2'
|
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectTotalAmountUsdtTXForBasicData" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(amount_usdt),'0')
|
| | | FROM
|
| | | member_quick_buy_sale
|
| | | WHERE
|
| | | order_type = 'S'
|
| | | AND order_status = 2
|
| | | </select>
|
| | | <select id="selectReturnMoneyForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | |
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectClosingpriceForBasicData" 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'
|
| | | </select>
|
| | | <select id="selectSellClosingpriceForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(a.closing_fee_amount),'0')
|
| | |
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectSellClosingpriceForBasicData" 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'
|
| | | </select>
|
| | | <select id="selectRewardratioForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(a.reward_amount), '0')
|
| | |
| | | account_type = '2'
|
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectRewardratioForBasicData" 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'
|
| | | </select>
|
| | | <select id="selectRewardratioForBasicRealDataBymid" resultType="java.lang.String">
|
| | | SELECT
|
| | |
| | | s.member_id
|
| | | ) b
|
| | | </select>
|
| | | <select id="selectSFCCForBasicData" resultType="java.lang.String">
|
| | | SELECT
|
| | | COUNT(b.id)
|
| | | FROM
|
| | | (
|
| | | SELECT
|
| | | s.id
|
| | | FROM
|
| | | contract_hold_order s
|
| | | GROUP BY
|
| | | s.member_id
|
| | | ) b
|
| | | </select>
|
| | | <select id="selectBBZHForBasicRealData" resultType="java.lang.String">
|
| | | SELECT
|
| | | COUNT(a.id)
|
| | |
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectBBZHForBasicData" resultType="java.lang.String">
|
| | | SELECT
|
| | | COUNT(a.id)
|
| | | FROM
|
| | | member_wallet_coin a
|
| | | WHERE
|
| | | a.wallet_code = 'USDT'
|
| | | AND a.available_balance > 1
|
| | | </select>
|
| | | <select id="selectHYZHForBasicRealData" resultType="java.lang.String">
|
| | | SELECT
|
| | | COUNT(a.id)
|
| | |
| | | account_type = '2'
|
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectHYZHForBasicData" resultType="java.lang.String">
|
| | | SELECT
|
| | | COUNT(a.id)
|
| | | FROM
|
| | | member_wallet_contract a
|
| | | WHERE
|
| | | a.wallet_code = 'USDT'
|
| | | AND a.total_balance > 1
|
| | | </select>
|
| | | <select id="selectprepriceForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | |
| | | account_type = '2'
|
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectprepriceForBasicData" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(a.hold_amount),'0')
|
| | | FROM
|
| | | contract_order a
|
| | | </select>
|
| | | <select id="selectBBZCForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | |
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectBBZCForBasicData" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(available_balance),'0')
|
| | | FROM
|
| | | member_wallet_coin
|
| | | WHERE
|
| | | wallet_code = 'USDT'
|
| | | </select>
|
| | | <select id="selectHYZCForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(total_balance),'0')
|
| | |
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectHYZCForBasicData" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(total_balance),'0')
|
| | | FROM
|
| | | member_wallet_contract
|
| | | </select>
|
| | | <select id="selectDLZCForBasicRealDataBymemberId" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(total_balance),'0')
|
| | |
| | | AND account_status = '1'
|
| | | )
|
| | | </select>
|
| | | <select id="selectDLZCForBasicData" resultType="java.lang.String">
|
| | | SELECT
|
| | | IFNULL(SUM(total_balance),'0')
|
| | | FROM
|
| | | member_wallet_agent
|
| | | </select>
|
| | |
|
| | | <select id="selectMemberBylowLevelInviteId" resultType="java.lang.String">
|
| | | select id from member where FIND_IN_SET(#{inviteId},referer_ids)
|