This commit is contained in:
Lemon
2024-06-17 08:47:06 +08:00
14 changed files with 88 additions and 34 deletions

View File

@@ -2701,7 +2701,8 @@
use_electricity AS totalElectricity,
total_amount as totalOrderAmount
from settle_order_report
where date(trade_date) >= DATE_SUB(CURDATE(), INTERVAL 30 day)
where del_flag = '0'
and date(trade_date) >= DATE_SUB(CURDATE(), INTERVAL 30 day)
<if test="dto.stationId != null and dto.stationId != ''">
and station_id = #{dto.stationId,jdbcType=VARCHAR}
</if>