优化排序和查询速度

This commit is contained in:
gaoyutao
2025-12-05 19:46:35 +08:00
parent 802e668d9a
commit cbf017a8e2
3 changed files with 18 additions and 28 deletions
@@ -210,7 +210,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.onboard_time as onboardTime,
a.remark as remark,
a.reported_bandwidth as reportedBandwidth,
b.machine_code as machineCode
b.machine_code as machineCode,
(select bandwidth_result from eps_node_bandwidth
where client_id=a.client_id and calculation_mode='1000' and bandwidth_type=1
AND create_time = DATE(DATE_SUB(NOW(), INTERVAL 1 DAY)) limit 1) as bandwidthResult
from rm_resource_registration a
left join rm_registration_machine b on a.client_id = b.client_id
<where>