优化服务器管理搜索、监控看板优化

This commit is contained in:
gaoyutao
2025-11-19 11:31:43 +08:00
parent 12ca2b2066
commit 54fafb90bd
6 changed files with 9 additions and 7 deletions
@@ -56,7 +56,7 @@
<if test="switchPassword != null and switchPassword != ''"> and switch_password = #{switchPassword}</if>
<if test="clientId != null and clientId != ''"> and client_id = #{clientId}</if>
<if test="queryName != null and queryName != ''">
and (snmp_address = #{snmpAddress} or switch_name like concat('%', #{switchName}, '%'))
and (snmp_address = #{queryName} or switch_name like concat('%', #{queryName}, '%'))
</if>
</where>
order by create_time desc