update m2pool 最近一次矿池算力数据查询新增时间限制

This commit is contained in:
yyb
2026-01-28 16:57:06 +08:00
parent a22908ba18
commit f4872d91a2

View File

@@ -406,7 +406,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id="getNowPoolDailyPower" resultType="java.lang.Double">
select sum(mhs30m) from ${table} group by `date` order by `date` desc limit 1;
select sum(mhs30m) from ${table} where `date` >= DATE_SUB(NOW(), INTERVAL 30 MINUTE) group by `date` order by `date` desc limit 1;
</select>
<select id="get24hAccountPowerListByAccount" resultType="com.m2pool.pool.dto.PowerLineDto">