优化交换机分表、新增丢包率clientId记录

This commit is contained in:
gaoyutao
2025-11-24 14:00:49 +08:00
parent c6e778c74e
commit c0f51ef007
17 changed files with 718 additions and 86 deletions
@@ -52,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="lastUpdateTime != null "> and last_update_time = #{lastUpdateTime}</if>
<if test="networkInfo != null and networkInfo != ''"> and network_info = #{networkInfo}</if>
</where>
order by create_time desc
</select>
<select id="selectRmMtrClientRegistrationById" parameterType="Long" resultMap="RmMtrClientRegistrationResult">
@@ -156,4 +157,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id}
</foreach>
</delete>
<select id="getAllLogicalNode" parameterType="RmMtrClientRegistration" resultMap="RmMtrClientRegistrationResult">
<include refid="selectRmMtrClientRegistrationVo"/>
<where>
and logical_node != ''
</where>
group by logical_node
</select>
<select id="getMsgByMtrClientId" parameterType="RmMtrClientRegistration" resultMap="RmMtrClientRegistrationResult">
<include refid="selectRmMtrClientRegistrationVo"/>
<where>
<if test="mtrClientId != null and mtrClientId != ''"> and mtr_client_id = #{mtrClientId}</if>
<if test="description != null and description != ''"> and description = #{description}</if>
<if test="version != null and version != ''"> and version = #{version}</if>
<if test="logicalNode != null and logicalNode != ''"> and logical_node = #{logicalNode}</if>
<if test="registerTime != null "> and register_time = #{registerTime}</if>
<if test="registerStatus != null and registerStatus != ''"> and register_status = #{registerStatus}</if>
<if test="onlineStatus != null and onlineStatus != ''"> and online_status = #{onlineStatus}</if>
</where>
order by create_time desc
limit 1
</select>
</mapper>