开发frpc接口、增加网卡绑定触发逻辑。
This commit is contained in:
+7
@@ -25,6 +25,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="reportedBandwidth" column="reported_bandwidth" />
|
||||
<result property="delAlarmTime" column="del_alarm_time" />
|
||||
<result property="frpcConnectionStatus" column="frpc_connection_status" />
|
||||
<result property="frpcRemotePort" column="frpc_remote_port" />
|
||||
<result property="frpcServerAddr" column="frpc_server_addr" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectRmResourceRegistrationVo">
|
||||
@@ -239,11 +242,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
a.reported_bandwidth as reportedBandwidth,
|
||||
a.del_alarm_time as delAlarmTime,
|
||||
b.machine_code as machineCode,
|
||||
c.frpc_connection_status frpcConnectionStatus,
|
||||
c.frpc_remote_port frpcRemotePort,
|
||||
c.frpc_server_addr frpcServerAddr,
|
||||
(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
|
||||
left join rm_frpc_config_manage c on a.client_id=c.client_id
|
||||
<where>
|
||||
<if test="hardwareSn != null and hardwareSn != ''"> and a.hardware_sn = #{hardwareSn}</if>
|
||||
<if test="resourceType != null and resourceType != ''"> and a.resource_type = #{resourceType}</if>
|
||||
|
||||
Reference in New Issue
Block a user