|
@@ -246,7 +246,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="getWithdrawSum" resultType="java.math.BigDecimal">
|
|
|
select
|
|
|
|
|
|
- ifnull(sum(money), 0.00) as diamondCoinSum
|
|
|
+ ifnull(sum(votes), 0.00) as diamondCoinSum
|
|
|
|
|
|
from app_users_cashrecord where status = 1
|
|
|
|
|
@@ -259,7 +259,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select
|
|
|
|
|
|
type,
|
|
|
- ifnull(sum(money), 0.00) as moneySum,
|
|
|
+ ifnull(sum(votes), 0.00) as moneySum,
|
|
|
ifnull(sum(actual_money), 0.00) as actualMoneySum,
|
|
|
ifnull(sum(platform_service), 0.00) as platformServiceSum
|
|
|
|
|
@@ -279,18 +279,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
type,
|
|
|
|
|
|
- ifnull(sum(case when coin_type = 0 and rule_id > 0 then (money + platform_service) else 0.00 end) ,0.00) as coinUpSum,
|
|
|
- ifnull(sum(case when coin_type = 0 and rule_id > 0 then money else 0.00 end) ,0.00) as actualCoinUpSum,
|
|
|
+ ifnull(sum(case when coin_type = 0 and rule_id > 0 then (coin + platform_service) else 0.00 end) ,0.00) as coinUpSum,
|
|
|
+ ifnull(sum(case when coin_type = 0 and rule_id > 0 then coin else 0.00 end) ,0.00) as actualCoinUpSum,
|
|
|
ifnull(sum(case when coin_type = 0 and rule_id > 0 then platform_service else 0.00 end) ,0.00) as platformServiceCoinUpSum,
|
|
|
- ifnull(sum(case when coin_type = 1 and rule_id > 0 then (money + platform_service) else 0.00 end) ,0.00) as diamondCoinUpSum,
|
|
|
- ifnull(sum(case when coin_type = 1 and rule_id > 0 then money else 0.00 end) ,0.00) as actualDiamondCoinUpSum,
|
|
|
+ ifnull(sum(case when coin_type = 1 and rule_id > 0 then (coin + platform_service) else 0.00 end) ,0.00) as diamondCoinUpSum,
|
|
|
+ ifnull(sum(case when coin_type = 1 and rule_id > 0 then coin else 0.00 end) ,0.00) as actualDiamondCoinUpSum,
|
|
|
ifnull(sum(case when coin_type = 1 and rule_id > 0 then platform_service else 0.00 end) ,0.00) as platformServiceDiamondCoinUpSum,
|
|
|
|
|
|
- ifnull(sum(case when coin_type = 0 and rule_id = 0 then (money + platform_service) else 0.00 end) ,0.00) as coinDownSum,
|
|
|
- ifnull(sum(case when coin_type = 0 and rule_id = 0 then money else 0.00 end) ,0.00) as actualCoinDownSum,
|
|
|
+ ifnull(sum(case when coin_type = 0 and rule_id = 0 then (coin + platform_service) else 0.00 end) ,0.00) as coinDownSum,
|
|
|
+ ifnull(sum(case when coin_type = 0 and rule_id = 0 then coin else 0.00 end) ,0.00) as actualCoinDownSum,
|
|
|
ifnull(sum(case when coin_type = 0 and rule_id = 0 then platform_service else 0.00 end) ,0.00) as platformServiceCoinDownSum,
|
|
|
- ifnull(sum(case when coin_type = 1 and rule_id = 0 then (money + platform_service) else 0.00 end) ,0.00) as diamondCoinDownSum,
|
|
|
- ifnull(sum(case when coin_type = 1 and rule_id = 0 then money else 0.00 end) ,0.00) as actualDiamondCoinDownSum,
|
|
|
+ ifnull(sum(case when coin_type = 1 and rule_id = 0 then (coin + platform_service) else 0.00 end) ,0.00) as diamondCoinDownSum,
|
|
|
+ ifnull(sum(case when coin_type = 1 and rule_id = 0 then coin else 0.00 end) ,0.00) as actualDiamondCoinDownSum,
|
|
|
ifnull(sum(case when coin_type = 1 and rule_id = 0 then platform_service else 0.00 end) ,0.00) as platformServiceDiamondCoinDownSum
|
|
|
|
|
|
from app_users_charge where status = 1
|