首页订单数据新增汇总字段

This commit is contained in:
Lemon
2025-01-08 09:15:56 +08:00
parent 351e03d4e8
commit 82e1f4a1c8
3 changed files with 29 additions and 1 deletions

View File

@@ -2802,9 +2802,13 @@
<select id="getIndexOrderDetail" resultType="com.jsowell.pile.vo.web.IndexOrderInfoVO">
select
sum(sharp_used_electricity) AS totalSharpUsedElectricity,
sum(sharp_amount) as totalSharpAmount,
sum(peak_used_electricity) AS totalPeakUsedElectricity,
sum(peak_amount) as totalPeakAmount,
sum(flat_used_electricity) AS totalFlatUsedElectricity,
sum(valley_used_electricity) AS totalValleyUsedElectricity
sum(flat_amount) as totalFlatAmount,
sum(valley_used_electricity) AS totalValleyUsedElectricity,
sum(valley_amount) as totalValleyAmount
from order_detail
<if test="list != null and list.size() != 0">
where order_code in