123
This commit is contained in:
@@ -46,6 +46,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</where>
|
||||
order by t1.create_time desc
|
||||
</select>
|
||||
<select id="incomeStatistics" resultType="com.ruoyi.cai.controller.admin.incomeStatis.AccountCashCountDTO">
|
||||
select
|
||||
sum(cash_money) as cash_money,
|
||||
count(id) as cash_money
|
||||
from cai_account_cash
|
||||
where status = 2 and verify_time between #{startTime} and #{endTime}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -46,6 +46,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</where>
|
||||
order by t1.create_time desc
|
||||
</select>
|
||||
<select id="incomeStatistics"
|
||||
resultType="com.ruoyi.cai.controller.admin.incomeStatis.RechargeOrderCountDTO">
|
||||
select
|
||||
pay_time,
|
||||
sum(if(admin=1 and recharge_type=1 and recharge_coin > 0,recharge_coin,0)) as modify_coin_add,
|
||||
sum(if(admin=1 and recharge_type=1 and recharge_coin < 0,-recharge_coin,0)) as modify_coin_sub,
|
||||
sum(if(admin=1 and recharge_type=2 and recharge_coin > 0,recharge_coin,0)) as modify_income_add,
|
||||
sum(if(admin=1 and recharge_type=2 and recharge_coin < 0,-recharge_coin,0)) as modify_income_sub,
|
||||
sum(if(admin=0,price,0)) as exp_in_money,
|
||||
count(if(admin=0,1,0)) as order_count
|
||||
from cai_recharge_order
|
||||
where pay_status in (1,10)
|
||||
and pay_time between #{startTime} and #{endTime}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -44,6 +44,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</where>
|
||||
order by t1.create_time desc
|
||||
</select>
|
||||
<select id="incomeStatistics" resultType="com.ruoyi.cai.controller.admin.incomeStatis.VipOrderCountDTO">
|
||||
select
|
||||
sum(price) as vip_money,
|
||||
count(id) as vip_count
|
||||
from cai_vip_order
|
||||
where admin = 0
|
||||
and pay_time between #{startTime} and #{endTime};
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user