1、优化服务器管理列表运营商、省、ip展示。

2、服务器管理列表搜索条件增加子网卡ip筛选。
This commit is contained in:
gaoyutao
2026-02-09 13:45:12 +08:00
parent 0fdce6b13b
commit 5b28479625
6 changed files with 144 additions and 11 deletions
@@ -86,4 +86,6 @@ public class RmNetworkInterfaceChild extends BaseEntity
private String tableName;
/** ping丢包率 */
private Double pingDropped;
/** 服务器列表传参 */
public String queryParam;
}
@@ -42,6 +42,11 @@
<if test="province != null and province != ''"> and province = #{province}</if>
<if test="city != null and city != ''"> and city = #{city}</if>
<if test="publicIp != null and publicIp != ''"> and public_ip = #{publicIp}</if>
<if test="queryParam != null and queryParam != ''">
and (public_ip like concat('%', #{queryParam}, '%')
or ipv4_address like concat('%', #{queryParam}, '%')
or ipv6_address like concat('%', #{queryParam}, '%'))
</if>
<if test="interfaceName != null and interfaceName != ''"> and interface_name like concat('%', #{interfaceName}, '%')</if>
<if test="macAddress != null and macAddress != ''"> and mac_address = #{macAddress}</if>
<if test="interfaceType != null and interfaceType != ''"> and interface_type = #{interfaceType}</if>