解决查询条件默认生效问题,日95计算值覆盖问题。

This commit is contained in:
gaoyutao
2025-09-08 11:45:58 +08:00
parent 3a45714100
commit 6fa30134e8
14 changed files with 147 additions and 114 deletions
@@ -33,18 +33,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectInitialCpuInfoVo"/>
<where>
<if test="clientId != null and clientId != ''"> and client_id = #{clientId}</if>
<if test="avg1 != null "> and avg1 = #{avg1}</if>
<if test="avg5 != null "> and avg5 = #{avg5}</if>
<if test="avg15 != null "> and avg15 = #{avg15}</if>
<if test="interrupt != null "> and interrupt = #{interrupt}</if>
<if test="uti != null "> and uti = #{uti}</if>
<if test="num != null "> and num = #{num}</if>
<if test="normal != null "> and normal = #{normal}</if>
<if test="idle != null "> and idle = #{idle}</if>
<if test="iowait != null "> and iowait = #{iowait}</if>
<if test="system != null "> and system = #{system}</if>
<if test="noresp != null "> and noresp = #{noresp}</if>
<if test="user != null "> and user = #{user}</if>
</where>
order by create_time desc
</select>
@@ -30,15 +30,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectInitialDiskInfoVo"/>
<where>
<if test="clientId != null and clientId != ''"> and client_id = #{clientId}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="serial != null and serial != ''"> and serial = #{serial}</if>
<if test="total != null "> and total = #{total}</if>
<if test="writeSpeed != null "> and write_speed = #{writeSpeed}</if>
<if test="readSpeed != null "> and read_speed = #{readSpeed}</if>
<if test="writeTimes != null "> and write_times = #{writeTimes}</if>
<if test="readTimes != null "> and read_times = #{readTimes}</if>
<if test="writeBytes != null "> and write_bytes = #{writeBytes}</if>
<if test="readBytes != null "> and read_bytes = #{readBytes}</if>
</where>
order by create_time desc
</select>
@@ -27,12 +27,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectInitialDockerInfoList" parameterType="InitialDockerInfo" resultMap="InitialDockerInfoResult">
<include refid="selectInitialDockerInfoVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="cpuUtil != null and cpuUtil != ''"> and cpu_util = #{cpuUtil}</if>
<if test="memUtil != null and memUtil != ''"> and mem_util = #{memUtil}</if>
<if test="netInSpeed != null and netInSpeed != ''"> and net_in_speed = #{netInSpeed}</if>
<if test="netOutSpeed != null and netOutSpeed != ''"> and net_out_speed = #{netOutSpeed}</if>
<if test="clientId != null and clientId != ''"> and client_id = #{clientId}</if>
</where>
order by create_time desc
@@ -27,12 +27,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectInitialMemoryInfoVo"/>
<where>
<if test="clientId != null and clientId != ''"> and client_id = #{clientId}</if>
<if test="swapSizeFree != null "> and swap_size_free = #{swapSizeFree}</if>
<if test="untilzation != null "> and untilzation = #{untilzation}</if>
<if test="swapSizePercent != null "> and swap_size_percent = #{swapSizePercent}</if>
<if test="available != null "> and available = #{available}</if>
<if test="percent != null "> and percent = #{percent}</if>
<if test="total != null "> and total = #{total}</if>
</where>
order by create_time desc
</select>
@@ -26,11 +26,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectInitialMountPointInfoVo"/>
<where>
<if test="clientId != null and clientId != ''"> and client_id = #{clientId}</if>
<if test="mount != null and mount != ''"> and mount = #{mount}</if>
<if test="vfsType != null and vfsType != ''"> and vfs_type = #{vfsType}</if>
<if test="vfsFree != null "> and vfs_free = #{vfsFree}</if>
<if test="vfsTotal != null "> and vfs_total = #{vfsTotal}</if>
<if test="vfsUtil != null "> and vfs_util = #{vfsUtil}</if>
</where>
order by create_time desc
</select>
@@ -34,19 +34,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectInitialSystemInfoVo"/>
<where>
<if test="clientId != null and clientId != ''"> and client_id = #{clientId}</if>
<if test="os != null and os != ''"> and os = #{os}</if>
<if test="arch != null and arch != ''"> and arch = #{arch}</if>
<if test="maxProc != null "> and max_proc = #{maxProc}</if>
<if test="runProcNum != null "> and run_proc_num = #{runProcNum}</if>
<if test="usersNum != null "> and users_num = #{usersNum}</if>
<if test="diskSizeTotal != null "> and disk_size_total = #{diskSizeTotal}</if>
<if test="bootTime != null "> and boot_time = #{bootTime}</if>
<if test="uname != null and uname != ''"> and uname like concat('%', #{uname}, '%')</if>
<if test="localTime != null and localTime != ''"> and local_time = #{localTime}</if>
<if test="upTime != null "> and up_time = #{upTime}</if>
<if test="procNum != null "> and proc_num = #{procNum}</if>
<if test="timeStamp != null "> and time_stamp = #{timeStamp}</if>
<if test="uuid != null "> and uuid = #{uuid}</if>
</where>
order by create_time desc
</select>