源数据表+入库逻辑+计算95带宽值/日

This commit is contained in:
gaoyutao
2025-08-26 19:14:12 +08:00
parent 259398bfcc
commit daa0a8779f
76 changed files with 7101 additions and 92 deletions
@@ -0,0 +1,191 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.rocketmq.mapper.InitialCpuInfoMapper">
<resultMap type="InitialCpuInfo" id="InitialCpuInfoResult">
<result property="id" column="id" />
<result property="clientId" column="client_id" />
<result property="avg1" column="avg1" />
<result property="avg5" column="avg5" />
<result property="avg15" column="avg15" />
<result property="interrupt" column="interrupt" />
<result property="uti" column="uti" />
<result property="num" column="num" />
<result property="normal" column="normal" />
<result property="idle" column="idle" />
<result property="iowait" column="iowait" />
<result property="system" column="system" />
<result property="noresp" column="noresp" />
<result property="user" column="user" />
<result property="createBy" column="create_by" />
<result property="updateBy" column="update_by" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectInitialCpuInfoVo">
select id, client_id, avg1, avg5, avg15, interrupt, uti, num, normal, idle, iowait, system, noresp, user, create_by, update_by, create_time, update_time from initial_cpu_info
</sql>
<select id="selectInitialCpuInfoList" parameterType="InitialCpuInfo" resultMap="InitialCpuInfoResult">
<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>
</select>
<select id="selectInitialCpuInfoById" parameterType="Long" resultMap="InitialCpuInfoResult">
<include refid="selectInitialCpuInfoVo"/>
where id = #{id}
</select>
<insert id="insertInitialCpuInfo" parameterType="InitialCpuInfo" useGeneratedKeys="true" keyProperty="id">
insert into initial_cpu_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="clientId != null and clientId != ''">client_id,</if>
<if test="avg1 != null">avg1,</if>
<if test="avg5 != null">avg5,</if>
<if test="avg15 != null">avg15,</if>
<if test="interrupt != null">interrupt,</if>
<if test="uti != null">uti,</if>
<if test="num != null">num,</if>
<if test="normal != null">normal,</if>
<if test="idle != null">idle,</if>
<if test="iowait != null">iowait,</if>
<if test="system != null">system,</if>
<if test="noresp != null">noresp,</if>
<if test="user != null">user,</if>
<if test="createBy != null">create_by,</if>
<if test="updateBy != null">update_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="clientId != null and clientId != ''">#{clientId},</if>
<if test="avg1 != null">#{avg1},</if>
<if test="avg5 != null">#{avg5},</if>
<if test="avg15 != null">#{avg15},</if>
<if test="interrupt != null">#{interrupt},</if>
<if test="uti != null">#{uti},</if>
<if test="num != null">#{num},</if>
<if test="normal != null">#{normal},</if>
<if test="idle != null">#{idle},</if>
<if test="iowait != null">#{iowait},</if>
<if test="system != null">#{system},</if>
<if test="noresp != null">#{noresp},</if>
<if test="user != null">#{user},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateInitialCpuInfo" parameterType="InitialCpuInfo">
update initial_cpu_info
<trim prefix="SET" suffixOverrides=",">
<if test="clientId != null and clientId != ''">client_id = #{clientId},</if>
<if test="avg1 != null">avg1 = #{avg1},</if>
<if test="avg5 != null">avg5 = #{avg5},</if>
<if test="avg15 != null">avg15 = #{avg15},</if>
<if test="interrupt != null">interrupt = #{interrupt},</if>
<if test="uti != null">uti = #{uti},</if>
<if test="num != null">num = #{num},</if>
<if test="normal != null">normal = #{normal},</if>
<if test="idle != null">idle = #{idle},</if>
<if test="iowait != null">iowait = #{iowait},</if>
<if test="system != null">system = #{system},</if>
<if test="noresp != null">noresp = #{noresp},</if>
<if test="user != null">user = #{user},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteInitialCpuInfoById" parameterType="Long">
delete from initial_cpu_info where id = #{id}
</delete>
<delete id="deleteInitialCpuInfoByIds" parameterType="String">
delete from initial_cpu_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<insert id="batchInsertInitialCpuInfo" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
INSERT INTO initial_cpu_info
(
client_id,
avg1,
avg5,
avg15,
interrupt,
uti,
num,
normal,
idle,
iowait,
`system`,
noresp,
`user`,
create_by,
update_by,
create_time,
update_time
)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.clientId},
#{item.avg1},
#{item.avg5},
#{item.avg15},
#{item.interrupt},
#{item.uti},
#{item.num},
#{item.normal},
#{item.idle},
#{item.iowait},
#{item.system},
#{item.noresp},
#{item.user},
#{item.createBy},
#{item.updateBy},
<choose>
<when test="item.createTime != null">
#{item.createTime}
</when>
<otherwise>
NOW()
</otherwise>
</choose>,
<choose>
<when test="item.updateTime != null">
#{item.updateTime}
</when>
<otherwise>
NOW()
</otherwise>
</choose>
)
</foreach>
</insert>
</mapper>
@@ -0,0 +1,174 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.rocketmq.mapper.InitialDiskInfoMapper">
<resultMap type="InitialDiskInfo" id="InitialDiskInfoResult">
<result property="id" column="id" />
<result property="clientId" column="client_id" />
<result property="name" column="name" />
<result property="serial" column="serial" />
<result property="total" column="total" />
<result property="writeSpeed" column="write_speed" />
<result property="readSpeed" column="read_speed" />
<result property="writeTimes" column="write_times" />
<result property="readTimes" column="read_times" />
<result property="writeBytes" column="write_bytes" />
<result property="readBytes" column="read_bytes" />
<result property="createBy" column="create_by" />
<result property="updateBy" column="update_by" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectInitialDiskInfoVo">
select id, client_id, name, serial, total, write_speed, read_speed, write_times, read_times, write_bytes, read_bytes, create_by, update_by, create_time, update_time from initial_disk_info
</sql>
<select id="selectInitialDiskInfoList" parameterType="InitialDiskInfo" resultMap="InitialDiskInfoResult">
<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>
</select>
<select id="selectInitialDiskInfoById" parameterType="Long" resultMap="InitialDiskInfoResult">
<include refid="selectInitialDiskInfoVo"/>
where id = #{id}
</select>
<insert id="insertInitialDiskInfo" parameterType="InitialDiskInfo">
insert into initial_disk_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="clientId != null and clientId != ''">client_id,</if>
<if test="name != null and name != ''">name,</if>
<if test="serial != null">serial,</if>
<if test="total != null">total,</if>
<if test="writeSpeed != null">write_speed,</if>
<if test="readSpeed != null">read_speed,</if>
<if test="writeTimes != null">write_times,</if>
<if test="readTimes != null">read_times,</if>
<if test="writeBytes != null">write_bytes,</if>
<if test="readBytes != null">read_bytes,</if>
<if test="createBy != null">create_by,</if>
<if test="updateBy != null">update_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="clientId != null and clientId != ''">#{clientId},</if>
<if test="name != null and name != ''">#{name},</if>
<if test="serial != null">#{serial},</if>
<if test="total != null">#{total},</if>
<if test="writeSpeed != null">#{writeSpeed},</if>
<if test="readSpeed != null">#{readSpeed},</if>
<if test="writeTimes != null">#{writeTimes},</if>
<if test="readTimes != null">#{readTimes},</if>
<if test="writeBytes != null">#{writeBytes},</if>
<if test="readBytes != null">#{readBytes},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateInitialDiskInfo" parameterType="InitialDiskInfo">
update initial_disk_info
<trim prefix="SET" suffixOverrides=",">
<if test="clientId != null and clientId != ''">client_id = #{clientId},</if>
<if test="name != null and name != ''">name = #{name},</if>
<if test="serial != null">serial = #{serial},</if>
<if test="total != null">total = #{total},</if>
<if test="writeSpeed != null">write_speed = #{writeSpeed},</if>
<if test="readSpeed != null">read_speed = #{readSpeed},</if>
<if test="writeTimes != null">write_times = #{writeTimes},</if>
<if test="readTimes != null">read_times = #{readTimes},</if>
<if test="writeBytes != null">write_bytes = #{writeBytes},</if>
<if test="readBytes != null">read_bytes = #{readBytes},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteInitialDiskInfoById" parameterType="Long">
delete from initial_disk_info where id = #{id}
</delete>
<delete id="deleteInitialDiskInfoByIds" parameterType="String">
delete from initial_disk_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<insert id="batchInsertInitialDiskInfo" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
INSERT INTO initial_disk_info
(
id,
client_id,
`name`,
serial,
total,
write_speed,
read_speed,
write_times,
read_times,
write_bytes,
read_bytes,
create_by,
update_by,
create_time,
update_time
)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.id},
#{item.clientId},
#{item.name},
#{item.serial},
#{item.total},
#{item.writeSpeed},
#{item.readSpeed},
#{item.writeTimes},
#{item.readTimes},
#{item.writeBytes},
#{item.readBytes},
#{item.createBy},
#{item.updateBy},
<choose>
<when test="item.createTime != null">
#{item.createTime}
</when>
<otherwise>
NOW()
</otherwise>
</choose>,
<choose>
<when test="item.updateTime != null">
#{item.updateTime}
</when>
<otherwise>
NOW()
</otherwise>
</choose>
)
</foreach>
</insert>
</mapper>
@@ -0,0 +1,155 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.rocketmq.mapper.InitialDockerInfoMapper">
<resultMap type="InitialDockerInfo" id="InitialDockerInfoResult">
<result property="autoId" column="auto_id" />
<result property="id" column="id" />
<result property="name" column="name" />
<result property="status" column="status" />
<result property="cpuUtil" column="cpu_util" />
<result property="memUtil" column="mem_util" />
<result property="netInSpeed" column="net_in_speed" />
<result property="netOutSpeed" column="net_out_speed" />
<result property="clientId" column="client_id" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="createBy" column="create_by" />
<result property="updateBy" column="update_by" />
</resultMap>
<sql id="selectInitialDockerInfoVo">
select auto_id, id, name, status, cpu_util, mem_util, net_in_speed, net_out_speed, client_id, create_time, update_time, create_by, update_by from initial_docker_info
</sql>
<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>
</select>
<select id="selectInitialDockerInfoById" parameterType="Long" resultMap="InitialDockerInfoResult">
<include refid="selectInitialDockerInfoVo"/>
where auto_id = #{autoId}
</select>
<insert id="insertInitialDockerInfo" parameterType="InitialDockerInfo" useGeneratedKeys="true" keyProperty="auto_id">
insert into initial_docker_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">id,</if>
<if test="name != null and name != ''">name,</if>
<if test="status != null and status != ''">status,</if>
<if test="cpuUtil != null">cpu_util,</if>
<if test="memUtil != null">mem_util,</if>
<if test="netInSpeed != null">net_in_speed,</if>
<if test="netOutSpeed != null">net_out_speed,</if>
<if test="clientId != null">client_id,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateBy != null">update_by,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">#{id},</if>
<if test="name != null and name != ''">#{name},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="cpuUtil != null">#{cpuUtil},</if>
<if test="memUtil != null">#{memUtil},</if>
<if test="netInSpeed != null">#{netInSpeed},</if>
<if test="netOutSpeed != null">#{netOutSpeed},</if>
<if test="clientId != null">#{clientId},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateBy != null">#{updateBy},</if>
</trim>
</insert>
<update id="updateInitialDockerInfo" parameterType="InitialDockerInfo">
update initial_docker_info
<trim prefix="SET" suffixOverrides=",">
<if test="id != null and id != ''">id = #{id},</if>
<if test="name != null and name != ''">name = #{name},</if>
<if test="status != null and status != ''">status = #{status},</if>
<if test="cpuUtil != null">cpu_util = #{cpuUtil},</if>
<if test="memUtil != null">mem_util = #{memUtil},</if>
<if test="netInSpeed != null">net_in_speed = #{netInSpeed},</if>
<if test="netOutSpeed != null">net_out_speed = #{netOutSpeed},</if>
<if test="clientId != null">client_id = #{clientId},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteInitialDockerInfoById" parameterType="Long">
delete from initial_docker_info where auto_id = #{autoId}
</delete>
<delete id="deleteInitialDockerInfoByIds" parameterType="String">
delete from initial_docker_info where auto_id in
<foreach item="autoId" collection="array" open="(" separator="," close=")">
#{autoId}
</foreach>
</delete>
<insert id="batchInsertInitialDockerInfo" parameterType="java.util.List">
INSERT INTO initial_docker_info
(
`id`,
`name`,
status,
cpu_util,
mem_util,
net_in_speed,
net_out_speed,
client_id,
create_time,
update_time,
create_by,
update_by
)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.id},
#{item.name},
#{item.status},
#{item.cpuUtil},
#{item.memUtil},
#{item.netInSpeed},
#{item.netOutSpeed},
#{item.clientId},
<choose>
<when test="item.createTime != null">
#{item.createTime}
</when>
<otherwise>
NOW()
</otherwise>
</choose>,
<choose>
<when test="item.updateTime != null">
#{item.updateTime}
</when>
<otherwise>
NOW()
</otherwise>
</choose>,
#{item.createBy},
#{item.updateBy}
)
</foreach>
</insert>
</mapper>
@@ -0,0 +1,149 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.rocketmq.mapper.InitialMemoryInfoMapper">
<resultMap type="InitialMemoryInfo" id="InitialMemoryInfoResult">
<result property="id" column="id" />
<result property="clientId" column="client_id" />
<result property="swapSizeFree" column="swap_size_free" />
<result property="untilzation" column="untilzation" />
<result property="swapSizePercent" column="swap_size_percent" />
<result property="available" column="available" />
<result property="percent" column="percent" />
<result property="total" column="total" />
<result property="createBy" column="create_by" />
<result property="updateBy" column="update_by" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectInitialMemoryInfoVo">
select id, client_id, swap_size_free, untilzation, swap_size_percent, available, percent, total, create_by, update_by, create_time, update_time from initial_memory_info
</sql>
<select id="selectInitialMemoryInfoList" parameterType="InitialMemoryInfo" resultMap="InitialMemoryInfoResult">
<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>
</select>
<select id="selectInitialMemoryInfoById" parameterType="Long" resultMap="InitialMemoryInfoResult">
<include refid="selectInitialMemoryInfoVo"/>
where id = #{id}
</select>
<insert id="insertInitialMemoryInfo" parameterType="InitialMemoryInfo" useGeneratedKeys="true" keyProperty="id">
insert into initial_memory_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="clientId != null and clientId != ''">client_id,</if>
<if test="swapSizeFree != null">swap_size_free,</if>
<if test="untilzation != null">untilzation,</if>
<if test="swapSizePercent != null">swap_size_percent,</if>
<if test="available != null">available,</if>
<if test="percent != null">percent,</if>
<if test="total != null">total,</if>
<if test="createBy != null">create_by,</if>
<if test="updateBy != null">update_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="clientId != null and clientId != ''">#{clientId},</if>
<if test="swapSizeFree != null">#{swapSizeFree},</if>
<if test="untilzation != null">#{untilzation},</if>
<if test="swapSizePercent != null">#{swapSizePercent},</if>
<if test="available != null">#{available},</if>
<if test="percent != null">#{percent},</if>
<if test="total != null">#{total},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateInitialMemoryInfo" parameterType="InitialMemoryInfo">
update initial_memory_info
<trim prefix="SET" suffixOverrides=",">
<if test="clientId != null and clientId != ''">client_id = #{clientId},</if>
<if test="swapSizeFree != null">swap_size_free = #{swapSizeFree},</if>
<if test="untilzation != null">untilzation = #{untilzation},</if>
<if test="swapSizePercent != null">swap_size_percent = #{swapSizePercent},</if>
<if test="available != null">available = #{available},</if>
<if test="percent != null">percent = #{percent},</if>
<if test="total != null">total = #{total},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteInitialMemoryInfoById" parameterType="Long">
delete from initial_memory_info where id = #{id}
</delete>
<delete id="deleteInitialMemoryInfoByIds" parameterType="String">
delete from initial_memory_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<insert id="batchInsertInitialMemoryInfo" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
INSERT INTO initial_memory_info
(
client_id,
swap_size_free,
untilzation,
swap_size_percent,
available,
percent,
total,
create_by,
update_by,
create_time,
update_time
)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.clientId},
#{item.swapSizeFree},
#{item.untilzation},
#{item.swapSizePercent},
#{item.available},
#{item.percent},
#{item.total},
#{item.createBy},
#{item.updateBy},
<choose>
<when test="item.createTime != null">
#{item.createTime}
</when>
<otherwise>
NOW()
</otherwise>
</choose>,
<choose>
<when test="item.updateTime != null">
#{item.updateTime}
</when>
<otherwise>
NOW()
</otherwise>
</choose>
)
</foreach>
</insert>
</mapper>
@@ -0,0 +1,142 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.rocketmq.mapper.InitialMountPointInfoMapper">
<resultMap type="InitialMountPointInfo" id="InitialMountPointInfoResult">
<result property="id" column="id" />
<result property="clientId" column="client_id" />
<result property="mount" column="mount" />
<result property="vfsType" column="vfs_type" />
<result property="vfsFree" column="vfs_free" />
<result property="vfsTotal" column="vfs_total" />
<result property="vfsUtil" column="vfs_util" />
<result property="createBy" column="create_by" />
<result property="updateBy" column="update_by" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectInitialMountPointInfoVo">
select id, client_id, mount, vfs_type, vfs_free, vfs_total, vfs_util, create_by, update_by, create_time, update_time from initial_mount_point_info
</sql>
<select id="selectInitialMountPointInfoList" parameterType="InitialMountPointInfo" resultMap="InitialMountPointInfoResult">
<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>
</select>
<select id="selectInitialMountPointInfoById" parameterType="Long" resultMap="InitialMountPointInfoResult">
<include refid="selectInitialMountPointInfoVo"/>
where id = #{id}
</select>
<insert id="insertInitialMountPointInfo" parameterType="InitialMountPointInfo" useGeneratedKeys="true" keyProperty="id">
insert into initial_mount_point_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="clientId != null and clientId != ''">client_id,</if>
<if test="mount != null and mount != ''">mount,</if>
<if test="vfsType != null">vfs_type,</if>
<if test="vfsFree != null">vfs_free,</if>
<if test="vfsTotal != null">vfs_total,</if>
<if test="vfsUtil != null">vfs_util,</if>
<if test="createBy != null">create_by,</if>
<if test="updateBy != null">update_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="clientId != null and clientId != ''">#{clientId},</if>
<if test="mount != null and mount != ''">#{mount},</if>
<if test="vfsType != null">#{vfsType},</if>
<if test="vfsFree != null">#{vfsFree},</if>
<if test="vfsTotal != null">#{vfsTotal},</if>
<if test="vfsUtil != null">#{vfsUtil},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateInitialMountPointInfo" parameterType="InitialMountPointInfo">
update initial_mount_point_info
<trim prefix="SET" suffixOverrides=",">
<if test="clientId != null and clientId != ''">client_id = #{clientId},</if>
<if test="mount != null and mount != ''">mount = #{mount},</if>
<if test="vfsType != null">vfs_type = #{vfsType},</if>
<if test="vfsFree != null">vfs_free = #{vfsFree},</if>
<if test="vfsTotal != null">vfs_total = #{vfsTotal},</if>
<if test="vfsUtil != null">vfs_util = #{vfsUtil},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteInitialMountPointInfoById" parameterType="Long">
delete from initial_mount_point_info where id = #{id}
</delete>
<delete id="deleteInitialMountPointInfoByIds" parameterType="String">
delete from initial_mount_point_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<insert id="batchInsertInitialMountPointInfo" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
INSERT INTO initial_mount_point_info
(
client_id,
mount,
vfs_type,
vfs_free,
vfs_total,
vfs_util,
create_by,
update_by,
create_time,
update_time
)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.clientId},
#{item.mount},
#{item.vfsType},
#{item.vfsFree},
#{item.vfsTotal},
#{item.vfsUtil},
#{item.createBy},
#{item.updateBy},
<choose>
<when test="item.createTime != null">
#{item.createTime}
</when>
<otherwise>
NOW()
</otherwise>
</choose>,
<choose>
<when test="item.updateTime != null">
#{item.updateTime}
</when>
<otherwise>
NOW()
</otherwise>
</choose>
)
</foreach>
</insert>
</mapper>
@@ -0,0 +1,150 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.rocketmq.mapper.InitialSwitchInfoMapper">
<resultMap type="InitialSwitchInfo" id="InitialSwitchInfoResult">
<id property="id" column="id"/>
<result property="clientId" column="client_id"/>
<result property="name" column="name"/>
<result property="inBytes" column="in_bytes"/>
<result property="outBytes" column="out_bytes"/>
<result property="status" column="status"/>
<result property="type" column="type"/>
<result property="inSpeed" column="in_speed"/>
<result property="outSpeed" column="out_speed"/>
<result property="createBy" column="create_by"/>
<result property="updateBy" column="update_by"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<sql id="selectInitialSwitchInfoVo">
SELECT
id, client_id, `name`, in_bytes, out_bytes, status, `type`,
in_speed, out_speed, create_by, update_by, create_time, update_time
FROM initial_switch_info
</sql>
<select id="selectInitialSwitchInfoList" parameterType="InitialSwitchInfo" resultMap="InitialSwitchInfoResult">
<include refid="selectInitialSwitchInfoVo"/>
<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="status != null and status != ''">
AND status = #{status}
</if>
<if test="type != null and type != ''">
AND type = #{type}
</if>
<if test="params.beginTime != null and params.beginTime != ''">
AND create_time &gt;= #{params.beginTime}
</if>
<if test="params.endTime != null and params.endTime != ''">
AND create_time &lt;= #{params.endTime}
</if>
</where>
ORDER BY create_time DESC
</select>
<select id="selectInitialSwitchInfoById" parameterType="Long" resultMap="InitialSwitchInfoResult">
<include refid="selectInitialSwitchInfoVo"/>
where id = #{id}
</select>
<insert id="insertInitialSwitchInfo" parameterType="InitialSwitchInfo" useGeneratedKeys="true" keyProperty="id">
INSERT INTO initial_switch_info
<trim prefix="(" suffix=")" suffixOverrides=",">
client_id,
<if test="name != null">name,</if>
<if test="inBytes != null">in_bytes,</if>
<if test="outBytes != null">out_bytes,</if>
<if test="status != null">status,</if>
<if test="type != null">type,</if>
<if test="inSpeed != null">in_speed,</if>
<if test="outSeppd != null">out_speed,</if>
<if test="createBy != null">create_by,</if>
<if test="updateBy != null">update_by,</if>
create_time,
update_time
</trim>
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
#{clientId},
<if test="name != null">#{name},</if>
<if test="inBytes != null">#{inBytes},</if>
<if test="outBytes != null">#{outBytes},</if>
<if test="status != null">#{status},</if>
<if test="type != null">#{type},</if>
<if test="inSpeed != null">#{inSpeed},</if>
<if test="outSeppd != null">#{outSpeed},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateBy != null">#{updateBy},</if>
NOW(),
NOW()
</trim>
</insert>
<update id="updateInitialSwitchInfo" parameterType="InitialSwitchInfo">
UPDATE initial_switch_info
<set>
<if test="clientId != null">client_id = #{clientId},</if>
<if test="name != null">name = #{name},</if>
<if test="inBytes != null">in_bytes = #{inBytes},</if>
<if test="outBytes != null">out_bytes = #{outBytes},</if>
<if test="status != null">status = #{status},</if>
<if test="type != null">type = #{type},</if>
<if test="inSpeed != null">in_speed = #{inSpeed}</if>
<if test="outSeppd != null">out_speed = #{outSpeed}</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
update_time = NOW()
</set>
WHERE id = #{id}
</update>
<delete id="deleteInitialSwitchInfoById" parameterType="Long">
delete from initial_switch_info where id = #{id}
</delete>
<delete id="deleteInitialSwitchInfoByIds" parameterType="String">
delete from initial_switch_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<insert id="batchInsertInitialSwitchInfo" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
INSERT INTO initial_switch_info
(
client_id, name, in_bytes, out_bytes, status, type, in_speed, out_speed,
create_by, update_by, create_time, update_time
)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.clientId}, #{item.name}, #{item.inBytes}, #{item.outBytes},
#{item.status}, #{item.type}, #{item.inSpeed}, #{item.outSpeed}, #{item.createBy}, #{item.updateBy},
<choose>
<when test="item.createTime != null">
#{item.createTime}
</when>
<otherwise>
NOW()
</otherwise>
</choose>,
<choose>
<when test="item.updateTime != null">
#{item.updateTime}
</when>
<otherwise>
NOW()
</otherwise>
</choose>
)
</foreach>
</insert>
</mapper>
@@ -0,0 +1,140 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.rocketmq.mapper.InitialSwitchInfoTempMapper">
<resultMap type="InitialSwitchInfoTemp" id="InitialSwitchInfoTempResult">
<result property="id" column="id" />
<result property="clientId" column="client_id" />
<result property="name" column="name" />
<result property="inBytes" column="in_bytes" />
<result property="outBytes" column="out_bytes" />
<result property="status" column="status" />
<result property="type" column="type" />
<result property="inSpeed" column="in_speed" />
<result property="outSpeed" column="out_speed" />
<result property="createBy" column="create_by" />
<result property="updateBy" column="update_by" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectInitialSwitchInfoTempVo">
select id, client_id, name, in_bytes, out_bytes, status, type, in_speed, out_speed, create_by, update_by, create_time, update_time from initial_switch_info_temp
</sql>
<select id="selectInitialSwitchInfoTempList" parameterType="InitialSwitchInfoTemp" resultMap="InitialSwitchInfoTempResult">
<include refid="selectInitialSwitchInfoTempVo"/>
<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="inBytes != null "> and in_bytes = #{inBytes}</if>
<if test="outBytes != null "> and out_bytes = #{outBytes}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="inSpeed != null "> and in_speed = #{inSpeed}</if>
<if test="outSpeed != null "> and out_speed = #{outSpeed}</if>
</where>
</select>
<select id="selectInitialSwitchInfoTempById" parameterType="Long" resultMap="InitialSwitchInfoTempResult">
<include refid="selectInitialSwitchInfoTempVo"/>
where id = #{id}
</select>
<insert id="insertInitialSwitchInfoTemp" parameterType="InitialSwitchInfoTemp" useGeneratedKeys="true" keyProperty="id">
insert into initial_switch_info_temp
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="clientId != null and clientId != ''">client_id,</if>
<if test="name != null and name != ''">name,</if>
<if test="inBytes != null">in_bytes,</if>
<if test="outBytes != null">out_bytes,</if>
<if test="status != null">status,</if>
<if test="type != null">type,</if>
<if test="inSpeed != null">in_speed,</if>
<if test="outSpeed != null">out_speed,</if>
<if test="createBy != null">create_by,</if>
<if test="updateBy != null">update_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="clientId != null and clientId != ''">#{clientId},</if>
<if test="name != null and name != ''">#{name},</if>
<if test="inBytes != null">#{inBytes},</if>
<if test="outBytes != null">#{outBytes},</if>
<if test="status != null">#{status},</if>
<if test="type != null">#{type},</if>
<if test="inSpeed != null">#{inSpeed},</if>
<if test="outSpeed != null">#{outSpeed},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateInitialSwitchInfoTemp" parameterType="InitialSwitchInfoTemp">
update initial_switch_info_temp
<trim prefix="SET" suffixOverrides=",">
<if test="clientId != null and clientId != ''">client_id = #{clientId},</if>
<if test="name != null and name != ''">name = #{name},</if>
<if test="inBytes != null">in_bytes = #{inBytes},</if>
<if test="outBytes != null">out_bytes = #{outBytes},</if>
<if test="status != null">status = #{status},</if>
<if test="type != null">type = #{type},</if>
<if test="inSpeed != null">in_speed = #{inSpeed},</if>
<if test="outSpeed != null">out_speed = #{outSpeed},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteInitialSwitchInfoTempById" parameterType="Long">
delete from initial_switch_info_temp where id = #{id}
</delete>
<delete id="deleteInitialSwitchInfoTempByIds" parameterType="String">
delete from initial_switch_info_temp where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<insert id="batchInsertInitialSwitchInfoTemp" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
INSERT INTO initial_switch_info_temp
(
client_id, name, in_bytes, out_bytes, status, type, in_speed, out_speed,
create_by, update_by, create_time, update_time
)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.clientId}, #{item.name}, #{item.inBytes}, #{item.outBytes},
#{item.status}, #{item.type}, #{item.inSpeed}, #{item.outSpeed}, #{item.createBy}, #{item.updateBy},
<choose>
<when test="item.createTime != null">
#{item.createTime}
</when>
<otherwise>
NOW()
</otherwise>
</choose>,
<choose>
<when test="item.updateTime != null">
#{item.updateTime}
</when>
<otherwise>
NOW()
</otherwise>
</choose>
)
</foreach>
</insert>
<update id="truncateSwitchInfoTemp">
truncate table initial_switch_info_temp
</update>
</mapper>
@@ -0,0 +1,197 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.rocketmq.mapper.InitialSystemInfoMapper">
<resultMap type="InitialSystemInfo" id="InitialSystemInfoResult">
<result property="id" column="id" />
<result property="clientId" column="client_id" />
<result property="os" column="os" />
<result property="arch" column="arch" />
<result property="maxProc" column="max_proc" />
<result property="runProcNum" column="run_proc_num" />
<result property="usersNum" column="users_num" />
<result property="diskSizeTotal" column="disk_size_total" />
<result property="bootTime" column="boot_time" />
<result property="uname" column="uname" />
<result property="localTime" column="local_time" />
<result property="upTime" column="up_time" />
<result property="procNum" column="proc_num" />
<result property="timeStamp" column="time_stamp" />
<result property="createBy" column="create_by" />
<result property="updateBy" column="update_by" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="uuid" column="uuid" />
</resultMap>
<sql id="selectInitialSystemInfoVo">
select id, client_id, os, arch, max_proc, run_proc_num, users_num, disk_size_total, boot_time, uname, local_time, up_time, proc_num, time_stamp, create_by, update_by, create_time, update_time, uuid from initial_system_info
</sql>
<select id="selectInitialSystemInfoList" parameterType="InitialSystemInfo" resultMap="InitialSystemInfoResult">
<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>
</select>
<select id="selectInitialSystemInfoById" parameterType="Long" resultMap="InitialSystemInfoResult">
<include refid="selectInitialSystemInfoVo"/>
where id = #{id}
</select>
<insert id="insertInitialSystemInfo" parameterType="InitialSystemInfo" useGeneratedKeys="true" keyProperty="id">
insert into initial_system_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="clientId != null and clientId != ''">client_id,</if>
<if test="os != null">os,</if>
<if test="arch != null">arch,</if>
<if test="maxProc != null">max_proc,</if>
<if test="runProcNum != null">run_proc_num,</if>
<if test="usersNum != null">users_num,</if>
<if test="diskSizeTotal != null">disk_size_total,</if>
<if test="bootTime != null">boot_time,</if>
<if test="uname != null">uname,</if>
<if test="localTime != null">local_time,</if>
<if test="upTime != null">up_time,</if>
<if test="procNum != null">proc_num,</if>
<if test="timeStamp != null">time_stamp,</if>
<if test="createBy != null">create_by,</if>
<if test="updateBy != null">update_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="uuid != null">uuid,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="clientId != null and clientId != ''">#{clientId},</if>
<if test="os != null">#{os},</if>
<if test="arch != null">#{arch},</if>
<if test="maxProc != null">#{maxProc},</if>
<if test="runProcNum != null">#{runProcNum},</if>
<if test="usersNum != null">#{usersNum},</if>
<if test="diskSizeTotal != null">#{diskSizeTotal},</if>
<if test="bootTime != null">#{bootTime},</if>
<if test="uname != null">#{uname},</if>
<if test="localTime != null">#{localTime},</if>
<if test="upTime != null">#{upTime},</if>
<if test="procNum != null">#{procNum},</if>
<if test="timeStamp != null">#{timeStamp},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="uuid != null">#{uuid},</if>
</trim>
</insert>
<update id="updateInitialSystemInfo" parameterType="InitialSystemInfo">
update initial_system_info
<trim prefix="SET" suffixOverrides=",">
<if test="clientId != null and clientId != ''">client_id = #{clientId},</if>
<if test="os != null">os = #{os},</if>
<if test="arch != null">arch = #{arch},</if>
<if test="maxProc != null">max_proc = #{maxProc},</if>
<if test="runProcNum != null">run_proc_num = #{runProcNum},</if>
<if test="usersNum != null">users_num = #{usersNum},</if>
<if test="diskSizeTotal != null">disk_size_total = #{diskSizeTotal},</if>
<if test="bootTime != null">boot_time = #{bootTime},</if>
<if test="uname != null">uname = #{uname},</if>
<if test="localTime != null">local_time = #{localTime},</if>
<if test="upTime != null">up_time = #{upTime},</if>
<if test="procNum != null">proc_num = #{procNum},</if>
<if test="timeStamp != null">time_stamp = #{timeStamp},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="uuid != null">uuid = #{uuid},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteInitialSystemInfoById" parameterType="Long">
delete from initial_system_info where id = #{id}
</delete>
<delete id="deleteInitialSystemInfoByIds" parameterType="String">
delete from initial_system_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<insert id="batchInsertInitialSystemInfo" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
INSERT INTO initial_system_info
(
client_id,
os,
arch,
max_proc,
run_proc_num,
users_num,
disk_size_total,
boot_time,
uname,
local_time,
up_time,
proc_num,
time_stamp,
create_by,
update_by,
create_time,
update_time,
uuid
)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.clientId},
#{item.os},
#{item.arch},
#{item.maxProc},
#{item.runProcNum},
#{item.usersNum},
#{item.diskSizeTotal},
#{item.bootTime},
#{item.uname},
#{item.localTime},
#{item.upTime},
#{item.procNum},
#{item.timeStamp},
#{item.createBy},
#{item.updateBy},
<choose>
<when test="item.createTime != null">
#{item.createTime}
</when>
<otherwise>
NOW()
</otherwise>
</choose>,
<choose>
<when test="item.updateTime != null">
#{item.updateTime}
</when>
<otherwise>
NOW()
</otherwise>
</choose>,
#{item.uuid}
)
</foreach>
</insert>
</mapper>