|
|
@ -141,12 +141,14 @@ |
|
|
select market,recharge as sumRechargePermanent,money as sumMoney, |
|
|
select market,recharge as sumRechargePermanent,money as sumMoney, |
|
|
(recharge - money) as sumRechargeFree, |
|
|
(recharge - money) as sumRechargeFree, |
|
|
consume_permanent as sumConsumePermanent, |
|
|
consume_permanent as sumConsumePermanent, |
|
|
sum(consume_free_june + consume_free_december) as sumConsumeFree, |
|
|
|
|
|
|
|
|
(consume_free_june + consume_free_december) as sumConsumeFree, |
|
|
consume_task as sumConsumeTask, |
|
|
consume_task as sumConsumeTask, |
|
|
current_datetime |
|
|
|
|
|
|
|
|
current_datetime as currentDate |
|
|
from statistics where market=#{market} |
|
|
from statistics where market=#{market} |
|
|
and current_datetime between #{startDate} and #{endDate} |
|
|
|
|
|
order by current_datetime |
|
|
|
|
|
|
|
|
and DATE(current_datetime) >= #{startDate} |
|
|
|
|
|
AND DATE(current_datetime) < #{endDate} |
|
|
|
|
|
order by current_datetime desc |
|
|
|
|
|
|
|
|
</select> |
|
|
</select> |
|
|
<!--40天以上单个地区的图表数据 按月 首尾截断--> |
|
|
<!--40天以上单个地区的图表数据 按月 首尾截断--> |
|
|
<select id="getMonthStatistics" resultType="com.example.demo.domain.vo.coin.WorkbenchMarketGraph"> |
|
|
<select id="getMonthStatistics" resultType="com.example.demo.domain.vo.coin.WorkbenchMarketGraph"> |
|
|
@ -157,10 +159,12 @@ |
|
|
sum(recharge - money) as sumRechargeFree, |
|
|
sum(recharge - money) as sumRechargeFree, |
|
|
sum(consume_permanent) as sumConsumePermanent, |
|
|
sum(consume_permanent) as sumConsumePermanent, |
|
|
sum(consume_free_june + consume_free_december) as sumConsumeFree, |
|
|
sum(consume_free_june + consume_free_december) as sumConsumeFree, |
|
|
sum(consume_task) as sumConsumeTask |
|
|
|
|
|
|
|
|
sum(consume_task) as sumConsumeTask, |
|
|
|
|
|
current_datetime as currentMonth |
|
|
from statistics |
|
|
from statistics |
|
|
where market = #{market} |
|
|
where market = #{market} |
|
|
and current_datetime between #{startDate} and #{endDate} |
|
|
|
|
|
|
|
|
and current_datetime >= #{startDate} |
|
|
|
|
|
and current_datetime < #{endDate} |
|
|
group by month |
|
|
group by month |
|
|
order by month |
|
|
order by month |
|
|
</select> |
|
|
</select> |
|
|
|