新增MySQL和pg数据库的同步

This commit is contained in:
2025-08-27 14:36:52 +08:00
parent a97619d459
commit 984d19bbb4
6 changed files with 27 additions and 19 deletions

View File

@@ -8,10 +8,11 @@
<result column="create_time" property="createTime" />
<result column="db_type" property="dbType" />
<result column="db_name" property="dbName" />
<result column="host" property="host" />
<result column="port" property="port" />
<result column="username" property="username" />
<result column="password" property="password" />
<result column="db_schema" property="dbSchema" />
<result column="db_host" property="dbHost" />
<result column="db_port" property="dbPort" />
<result column="link_username" property="linkUsername" />
<result column="link_password" property="linkPassword" />
<result column="driver_class" property="driverClass" />
<result column="url_template" property="urlTemplate" />
<result column="is_active" property="isActive" />
@@ -24,7 +25,7 @@
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_time, db_id, db_type, db_name, host, port, username, password, driver_class, url_template, is_active, update_time, f_tenant_id, f_flow_id, f_flow_task_id, f_flow_state
create_time, db_id, db_type, db_name, db_schema, db_host, db_port, link_username, link_password, driver_class, url_template, is_active, update_time, f_tenant_id, f_flow_id, f_flow_task_id, f_flow_state
</sql>
</mapper>

View File

@@ -11,7 +11,9 @@
<result column="size_kb" property="sizeKb" />
<result column="used_kb" property="usedKb" />
<result column="avail_kb" property="availKb" />
<result column="use_ratio" property="useRatio" />
<result column="mount_point" property="mountPoint" />
<result column="update_time" property="updateTime" />
<result column="f_tenant_id" property="fTenantId" />
<result column="f_flow_id" property="fFlowId" />
<result column="f_flow_task_id" property="fFlowTaskId" />
@@ -20,7 +22,7 @@
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_time, sys_host_id, disk_fs, size_kb, used_kb, avail_kb, mount_point, disk_mount_id, f_tenant_id, f_flow_id, f_flow_task_id, f_flow_state
create_time, sys_host_id, disk_fs, size_kb, used_kb, avail_kb, use_ratio, mount_point, disk_mount_id, update_time, f_tenant_id, f_flow_id, f_flow_task_id, f_flow_state
</sql>
</mapper>

View File

@@ -4,23 +4,27 @@
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.mini.capi.biz.domain.DockerContainerInfo">
<id column="id" property="id" />
<result column="get_time" property="getTime" />
<result column="id" property="id" />
<result column="container_id" property="containerId" />
<result column="image_name" property="imageName" />
<result column="command" property="command" />
<result column="created_at" property="createdAt" />
<result column="status" property="status" />
<result column="ustatus" property="ustatus" />
<result column="ports" property="ports" />
<result column="names" property="names" />
<result column="unames" property="unames" />
<result column="host_ip" property="hostIp" />
<result column="sys_name" property="sysName" />
<result column="user_id" property="userId" />
<result column="doker_host_id" property="dokerHostId" />
<result column="update_time" property="updateTime" />
<result column="f_tenant_id" property="fTenantId" />
<result column="f_flow_id" property="fFlowId" />
<result column="f_flow_task_id" property="fFlowTaskId" />
<result column="f_flow_state" property="fFlowState" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
get_time, id, container_id, image_name, command, created_at, status, ports, names, host_ip, sys_name, user_id
get_time, id, container_id, image_name, command, created_at, ustatus, ports, unames, host_ip, doker_host_id, update_time, f_tenant_id, f_flow_id, f_flow_task_id, f_flow_state
</sql>
</mapper>

View File

@@ -11,6 +11,7 @@
<result column="host_ip" property="hostIp" />
<result column="all_num" property="allNum" />
<result column="run_num" property="runNum" />
<result column="update_time" property="updateTime" />
<result column="remark" property="remark" />
<result column="f_tenant_id" property="fTenantId" />
<result column="f_flow_id" property="fFlowId" />
@@ -20,7 +21,7 @@
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_time, doker_host_id, user_id, host_id, host_ip, all_num, run_num, remark, f_tenant_id, f_flow_id, f_flow_task_id, f_flow_state
create_time, doker_host_id, user_id, host_id, host_ip, all_num, run_num, update_time, remark, f_tenant_id, f_flow_id, f_flow_task_id, f_flow_state
</sql>
</mapper>

View File

@@ -6,14 +6,10 @@
<resultMap id="BaseResultMap" type="com.mini.capi.biz.domain.Municipalities">
<id column="id" property="id" />
<result column="create_time" property="createTime" />
<result column="province_name" property="provinceName" />
<result column="city_name" property="cityName" />
<result column="county_name" property="countyName" />
<result column="province_code" property="provinceCode" />
<result column="city_code" property="cityCode" />
<result column="county_code" property="countyCode" />
<result column="city_type" property="cityType" />
<result column="area_code" property="areaCode" />
<result column="town_name" property="townName" />
<result column="town_code" property="townCode" />
<result column="village_name" property="villageName" />
@@ -21,11 +17,14 @@
<result column="update_time" property="updateTime" />
<result column="data_status" property="dataStatus" />
<result column="f_tenant_id" property="fTenantId" />
<result column="f_flow_id" property="fFlowId" />
<result column="f_flow_task_id" property="fFlowTaskId" />
<result column="f_flow_state" property="fFlowState" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id, create_time, province_name, city_name, county_name, province_code, city_code, county_code, city_type, area_code, town_name, town_code, village_name, village_code, update_time, data_status, f_tenant_id
id, create_time, county_name, province_code, city_code, county_code, town_name, town_code, village_name, village_code, update_time, data_status, f_tenant_id, f_flow_id, f_flow_task_id, f_flow_state
</sql>
</mapper>

View File

@@ -13,6 +13,7 @@
<result column="cpu_cores" property="cpuCores" />
<result column="cpu_usage" property="cpuUsage" />
<result column="doker_host_id" property="dokerHostId" />
<result column="update_time" property="updateTime" />
<result column="f_tenant_id" property="fTenantId" />
<result column="f_flow_id" property="fFlowId" />
<result column="f_flow_task_id" property="fFlowTaskId" />
@@ -21,7 +22,7 @@
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_time, sys_host_id, host_tag, hostname, cpu_arch, cpu_model, cpu_cores, cpu_usage,doker_host_id, f_tenant_id, f_flow_id, f_flow_task_id, f_flow_state
create_time, sys_host_id, host_tag, hostname, cpu_arch, cpu_model, cpu_cores, cpu_usage, doker_host_id, update_time, f_tenant_id, f_flow_id, f_flow_task_id, f_flow_state
</sql>
</mapper>