增加首页接口,心跳监控信息改为redis存储

This commit is contained in:
gaoyutao
2025-09-09 17:45:39 +08:00
parent 23bf338c8f
commit df7ed79fcb
17 changed files with 519 additions and 41 deletions
@@ -152,4 +152,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectEpsServerRevenueConfigVo"/>
where hardware_sn = #{hardwareSn}
</select>
<select id="countBusinessByTraffic" resultType="java.lang.Integer">
select count(1) from eps_server_revenue_config a left join rm_resource_registration b on a.hardware_sn=b.hardware_sn where a.revenue_method = '1' and b.online_status='1'
</select>
<select id="countDeviceNumTop5" resultType="java.util.Map">
select count(1) total,a.business_name businessName from eps_server_revenue_config a left join rm_resource_registration b on a.hardware_sn=b.hardware_sn where a.revenue_method = '1' and b.online_status='1' group by a.business_name order by total desc limit 5
</select>
</mapper>
@@ -267,6 +267,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updaterId != null">updater_id = #{updaterId},</if>
<if test="updaterName != null">updater_name = #{updaterName},</if>
</trim>
where id = #{id}
where ip_address = #{ipAddress}
</update>
</mapper>