新增获取磁盘主机的信息

This commit is contained in:
2025-08-24 20:56:13 +08:00
parent 50fb5b208d
commit db93f2a952
3 changed files with 6 additions and 6 deletions

View File

@@ -4,8 +4,6 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
@@ -17,14 +15,13 @@ import lombok.Setter;
* </p>
*
* @author gaoxq
* @since 2025-08-23
* @since 2025-08-24
*/
@Getter
@Setter
@TableName("biz_docker_container_info")
public class DockerContainerInfo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
@@ -93,6 +90,9 @@ public class DockerContainerInfo implements Serializable {
@TableField("doker_host_id")
private String dokerHostId;
@TableField("update_time")
private String updateTime;
/**
* 租户id
*/

View File

@@ -29,7 +29,7 @@ public class demo {
.pathInfo(Collections.singletonMap(OutputFile.xml, System.getProperty("user.dir") + "/src/main/resources/mapper"));
})
.strategyConfig(builder -> {
builder.addInclude("biz_sys_host,biz_disk_mount")
builder.addInclude("biz_docker_container_info")
.addTablePrefix("biz_")
.entityBuilder()
.enableLombok()

View File

@@ -156,8 +156,8 @@ public class sysController {
entity.setUstatus(d.getStatus());
entity.setHostIp(sshInfo.getHostIp());
entity.setPorts(d.getPorts());
entity.setGetTime(vDate.getNow());
entity.setDokerHostId(dockerHostId);
entity.setUpdateTime(vDate.getNow());
dockerInfoService.updateById(entity);
oldMap.remove(key);
}