1.20升级

This commit is contained in:
dengqichen 2025-12-11 16:15:32 +08:00
parent fc204bf2a1
commit a99476794c
21 changed files with 1011 additions and 44 deletions

View File

@ -0,0 +1,98 @@
package com.qqchen.deploy.backend.deploy.api;
import com.qqchen.deploy.backend.deploy.dto.TeamBookmarkDTO;
import com.qqchen.deploy.backend.deploy.entity.TeamBookmark;
import com.qqchen.deploy.backend.deploy.query.TeamBookmarkQuery;
import com.qqchen.deploy.backend.deploy.service.ITeamBookmarkService;
import com.qqchen.deploy.backend.framework.api.Response;
import com.qqchen.deploy.backend.framework.controller.BaseController;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.domain.Page;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.concurrent.CompletableFuture;
/**
* 团队导航书签API控制器
*/
@Slf4j
@RestController
@RequestMapping("/api/v1/team-bookmark")
@Tag(name = "团队导航书签管理", description = "团队导航书签的增删改查接口")
public class TeamBookmarkApiController extends BaseController<TeamBookmark, TeamBookmarkDTO, Long, TeamBookmarkQuery> {
@Resource
private ITeamBookmarkService teamBookmarkService;
@Override
public Response<TeamBookmarkDTO> create(@Validated @RequestBody TeamBookmarkDTO dto) {
return super.create(dto);
}
@Override
public Response<TeamBookmarkDTO> update(@PathVariable Long id, @Validated @RequestBody TeamBookmarkDTO dto) {
return super.update(id, dto);
}
@Override
public Response<Void> delete(@PathVariable Long id) {
return super.delete(id);
}
@Override
public Response<TeamBookmarkDTO> findById(@PathVariable Long id) {
return super.findById(id);
}
@Override
public Response<List<TeamBookmarkDTO>> findAll() {
return super.findAll();
}
@Override
public Response<Page<TeamBookmarkDTO>> page(TeamBookmarkQuery query) {
return super.page(query);
}
@Override
public Response<List<TeamBookmarkDTO>> findAll(TeamBookmarkQuery query) {
return super.findAll(query);
}
@Override
public CompletableFuture<Response<Void>> batchProcess(@RequestBody List<TeamBookmarkDTO> dtos) {
return super.batchProcess(dtos);
}
@Override
public void export(HttpServletResponse response, TeamBookmarkQuery query) {
super.export(response, query);
}
@Override
protected void exportData(HttpServletResponse response, List<TeamBookmarkDTO> data) {
// TODO: 实现导出功能
}
@GetMapping("/list-by-team/{teamId}")
@Operation(summary = "根据团队ID查询书签列表")
public Response<List<TeamBookmarkDTO>> listByTeamId(@PathVariable Long teamId) {
List<TeamBookmarkDTO> result = teamBookmarkService.listByTeamId(teamId);
return Response.success(result);
}
@GetMapping("/list-by-team/{teamId}/category/{categoryId}")
@Operation(summary = "根据团队ID和分类ID查询书签列表")
public Response<List<TeamBookmarkDTO>> listByTeamIdAndCategoryId(
@PathVariable Long teamId,
@PathVariable Long categoryId) {
List<TeamBookmarkDTO> result = teamBookmarkService.listByTeamIdAndCategoryId(teamId, categoryId);
return Response.success(result);
}
}

View File

@ -0,0 +1,89 @@
package com.qqchen.deploy.backend.deploy.api;
import com.qqchen.deploy.backend.deploy.dto.TeamBookmarkCategoryDTO;
import com.qqchen.deploy.backend.deploy.entity.TeamBookmarkCategory;
import com.qqchen.deploy.backend.deploy.query.TeamBookmarkCategoryQuery;
import com.qqchen.deploy.backend.deploy.service.ITeamBookmarkCategoryService;
import com.qqchen.deploy.backend.framework.api.Response;
import com.qqchen.deploy.backend.framework.controller.BaseController;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.domain.Page;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.concurrent.CompletableFuture;
/**
* 团队导航分类API控制器
*/
@Slf4j
@RestController
@RequestMapping("/api/v1/team-bookmark-category")
@Tag(name = "团队导航分类管理", description = "团队导航分类的增删改查接口")
public class TeamBookmarkCategoryApiController extends BaseController<TeamBookmarkCategory, TeamBookmarkCategoryDTO, Long, TeamBookmarkCategoryQuery> {
@Resource
private ITeamBookmarkCategoryService teamBookmarkCategoryService;
@Override
public Response<TeamBookmarkCategoryDTO> create(@Validated @RequestBody TeamBookmarkCategoryDTO dto) {
return super.create(dto);
}
@Override
public Response<TeamBookmarkCategoryDTO> update(@PathVariable Long id, @Validated @RequestBody TeamBookmarkCategoryDTO dto) {
return super.update(id, dto);
}
@Override
public Response<Void> delete(@PathVariable Long id) {
return super.delete(id);
}
@Override
public Response<TeamBookmarkCategoryDTO> findById(@PathVariable Long id) {
return super.findById(id);
}
@Override
public Response<List<TeamBookmarkCategoryDTO>> findAll() {
return super.findAll();
}
@Override
public Response<Page<TeamBookmarkCategoryDTO>> page(TeamBookmarkCategoryQuery query) {
return super.page(query);
}
@Override
public Response<List<TeamBookmarkCategoryDTO>> findAll(TeamBookmarkCategoryQuery query) {
return super.findAll(query);
}
@Override
public CompletableFuture<Response<Void>> batchProcess(@RequestBody List<TeamBookmarkCategoryDTO> dtos) {
return super.batchProcess(dtos);
}
@Override
public void export(HttpServletResponse response, TeamBookmarkCategoryQuery query) {
super.export(response, query);
}
@Override
protected void exportData(HttpServletResponse response, List<TeamBookmarkCategoryDTO> data) {
// TODO: 实现导出功能
}
@GetMapping("/list-by-team/{teamId}")
@Operation(summary = "根据团队ID查询分类列表")
public Response<List<TeamBookmarkCategoryDTO>> listByTeamId(@PathVariable Long teamId) {
List<TeamBookmarkCategoryDTO> result = teamBookmarkCategoryService.listByTeamId(teamId);
return Response.success(result);
}
}

View File

@ -0,0 +1,13 @@
package com.qqchen.deploy.backend.deploy.converter;
import com.qqchen.deploy.backend.deploy.dto.TeamBookmarkCategoryDTO;
import com.qqchen.deploy.backend.deploy.entity.TeamBookmarkCategory;
import com.qqchen.deploy.backend.framework.converter.BaseConverter;
import org.mapstruct.Mapper;
/**
* 团队导航分类Converter
*/
@Mapper(config = BaseConverter.class)
public interface TeamBookmarkCategoryConverter extends BaseConverter<TeamBookmarkCategory, TeamBookmarkCategoryDTO> {
}

View File

@ -0,0 +1,13 @@
package com.qqchen.deploy.backend.deploy.converter;
import com.qqchen.deploy.backend.deploy.dto.TeamBookmarkDTO;
import com.qqchen.deploy.backend.deploy.entity.TeamBookmark;
import com.qqchen.deploy.backend.framework.converter.BaseConverter;
import org.mapstruct.Mapper;
/**
* 团队导航书签Converter
*/
@Mapper(config = BaseConverter.class)
public interface TeamBookmarkConverter extends BaseConverter<TeamBookmark, TeamBookmarkDTO> {
}

View File

@ -0,0 +1,39 @@
package com.qqchen.deploy.backend.deploy.dto;
import com.qqchen.deploy.backend.framework.dto.BaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 团队导航分类DTO
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "团队导航分类DTO")
public class TeamBookmarkCategoryDTO extends BaseDTO {
@Schema(description = "团队ID")
@NotNull(message = "团队ID不能为空")
private Long teamId;
@Schema(description = "分类名称")
@NotBlank(message = "分类名称不能为空")
private String name;
@Schema(description = "分类图标")
private String icon;
@Schema(description = "排序")
@NotNull(message = "排序不能为空")
private Integer sort;
@Schema(description = "是否启用")
@NotNull(message = "启用状态不能为空")
private Boolean enabled;
@Schema(description = "书签数量")
private Long bookmarkCount;
}

View File

@ -0,0 +1,68 @@
package com.qqchen.deploy.backend.deploy.dto;
import com.qqchen.deploy.backend.framework.dto.BaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;
/**
* 团队导航书签DTO
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "团队导航书签DTO")
public class TeamBookmarkDTO extends BaseDTO {
@Schema(description = "团队ID")
@NotNull(message = "团队ID不能为空")
private Long teamId;
@Schema(description = "分类ID")
private Long categoryId;
@Schema(description = "书签标题")
@NotBlank(message = "书签标题不能为空")
private String title;
@Schema(description = "书签URL")
@NotBlank(message = "书签URL不能为空")
private String url;
@Schema(description = "图标URL")
private String icon;
@Schema(description = "描述")
private String description;
@Schema(description = "是否需要认证")
@NotNull(message = "认证标识不能为空")
private Boolean needAuth;
@Schema(description = "账号")
private String username;
@Schema(description = "密码")
private String password;
@Schema(description = "标签列表")
private List<String> tags;
@Schema(description = "排序")
@NotNull(message = "排序不能为空")
private Integer sort;
@Schema(description = "是否启用")
@NotNull(message = "启用状态不能为空")
private Boolean enabled;
@Schema(description = "是否公开")
@NotNull(message = "公开状态不能为空")
private Boolean isPublic;
@Schema(description = "分类名称")
private String categoryName;
}

View File

@ -33,6 +33,9 @@ public class UserTeamDeployableDTO {
@Schema(description = "团队负责人名称") @Schema(description = "团队负责人名称")
private String ownerName; private String ownerName;
@Schema(description = "当前登录用户是否是该团队的负责人")
private Boolean isOwner;
@Schema(description = "团队成员列表") @Schema(description = "团队成员列表")
private List<UserDeployableTeamMemberDTO> members; private List<UserDeployableTeamMemberDTO> members;

View File

@ -0,0 +1,100 @@
package com.qqchen.deploy.backend.deploy.entity;
import com.qqchen.deploy.backend.framework.domain.Entity;
import jakarta.persistence.Column;
import jakarta.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.JdbcTypeCode;
import org.hibernate.type.SqlTypes;
import java.util.List;
/**
* 团队导航书签实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
@jakarta.persistence.Entity
@Table(name = "deploy_team_bookmark")
public class TeamBookmark extends Entity<Long> {
/**
* 团队ID
*/
@Column(name = "team_id", nullable = false)
private Long teamId;
/**
* 分类ID
*/
@Column(name = "category_id")
private Long categoryId;
/**
* 书签标题
*/
@Column(name = "title", nullable = false, length = 100)
private String title;
/**
* 书签URL
*/
@Column(name = "url", nullable = false, length = 500)
private String url;
/**
* 图标URL
*/
@Column(name = "icon", length = 200)
private String icon;
/**
* 描述
*/
@Column(name = "description", length = 500)
private String description;
/**
* 是否需要认证
*/
@Column(name = "need_auth", nullable = false)
private Boolean needAuth = false;
/**
* 账号
*/
@Column(name = "username", length = 100)
private String username;
/**
* 密码加密存储
*/
@Column(name = "password", length = 500)
private String password;
/**
* 标签JSON数组
*/
@JdbcTypeCode(SqlTypes.JSON)
@Column(name = "tags", columnDefinition = "JSON")
private List<String> tags;
/**
* 排序
*/
@Column(name = "sort", nullable = false)
private Integer sort = 0;
/**
* 是否启用
*/
@Column(name = "enabled", nullable = false)
private Boolean enabled = true;
/**
* 是否公开
*/
@Column(name = "is_public", nullable = false)
private Boolean isPublic = true;
}

View File

@ -0,0 +1,47 @@
package com.qqchen.deploy.backend.deploy.entity;
import com.qqchen.deploy.backend.framework.domain.Entity;
import jakarta.persistence.Column;
import jakarta.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 团队导航分类实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
@jakarta.persistence.Entity
@Table(name = "deploy_team_bookmark_category")
public class TeamBookmarkCategory extends Entity<Long> {
/**
* 团队ID
*/
@Column(name = "team_id", nullable = false)
private Long teamId;
/**
* 分类名称
*/
@Column(name = "name", nullable = false, length = 50)
private String name;
/**
* 分类图标
*/
@Column(name = "icon", length = 100)
private String icon;
/**
* 排序
*/
@Column(name = "sort", nullable = false)
private Integer sort = 0;
/**
* 是否启用
*/
@Column(name = "enabled", nullable = false)
private Boolean enabled = true;
}

View File

@ -0,0 +1,29 @@
package com.qqchen.deploy.backend.deploy.query;
import com.qqchen.deploy.backend.framework.annotation.QueryField;
import com.qqchen.deploy.backend.framework.enums.QueryType;
import com.qqchen.deploy.backend.framework.query.BaseQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 团队导航分类查询条件
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "团队导航分类查询条件")
public class TeamBookmarkCategoryQuery extends BaseQuery {
@QueryField(field = "teamId")
@Schema(description = "团队ID")
private Long teamId;
@QueryField(field = "name", type = QueryType.LIKE)
@Schema(description = "分类名称(模糊查询)")
private String name;
@QueryField(field = "enabled")
@Schema(description = "是否启用")
private Boolean enabled;
}

View File

@ -0,0 +1,41 @@
package com.qqchen.deploy.backend.deploy.query;
import com.qqchen.deploy.backend.framework.annotation.QueryField;
import com.qqchen.deploy.backend.framework.enums.QueryType;
import com.qqchen.deploy.backend.framework.query.BaseQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 团队导航书签查询条件
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "团队导航书签查询条件")
public class TeamBookmarkQuery extends BaseQuery {
@QueryField(field = "teamId")
@Schema(description = "团队ID")
private Long teamId;
@QueryField(field = "categoryId")
@Schema(description = "分类ID")
private Long categoryId;
@QueryField(field = "title", type = QueryType.LIKE)
@Schema(description = "书签标题(模糊查询)")
private String title;
@QueryField(field = "url", type = QueryType.LIKE)
@Schema(description = "书签URL模糊查询")
private String url;
@QueryField(field = "enabled")
@Schema(description = "是否启用")
private Boolean enabled;
@QueryField(field = "isPublic")
@Schema(description = "是否公开")
private Boolean isPublic;
}

View File

@ -0,0 +1,32 @@
package com.qqchen.deploy.backend.deploy.repository;
import com.qqchen.deploy.backend.deploy.entity.TeamBookmarkCategory;
import com.qqchen.deploy.backend.framework.repository.IBaseRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 团队导航分类Repository
*/
@Repository
public interface ITeamBookmarkCategoryRepository extends IBaseRepository<TeamBookmarkCategory, Long> {
/**
* 根据团队ID查询分类列表
*/
List<TeamBookmarkCategory> findByTeamIdAndDeletedFalseOrderBySortAscIdAsc(Long teamId);
/**
* 检查分类名称是否存在
*/
boolean existsByTeamIdAndNameAndDeletedFalse(Long teamId, String name);
/**
* 检查分类名称是否存在排除指定ID
*/
@Query("SELECT CASE WHEN COUNT(c) > 0 THEN true ELSE false END FROM TeamBookmarkCategory c WHERE c.teamId = :teamId AND c.name = :name AND c.id != :excludeId AND c.deleted = false")
boolean existsByTeamIdAndNameAndIdNotAndDeletedFalse(@Param("teamId") Long teamId, @Param("name") String name, @Param("excludeId") Long excludeId);
}

View File

@ -0,0 +1,34 @@
package com.qqchen.deploy.backend.deploy.repository;
import com.qqchen.deploy.backend.deploy.entity.TeamBookmark;
import com.qqchen.deploy.backend.framework.repository.IBaseRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 团队导航书签Repository
*/
@Repository
public interface ITeamBookmarkRepository extends IBaseRepository<TeamBookmark, Long> {
/**
* 根据团队ID查询书签列表
*/
List<TeamBookmark> findByTeamIdAndDeletedFalseOrderBySortAscIdAsc(Long teamId);
/**
* 根据团队ID和分类ID查询书签列表
*/
List<TeamBookmark> findByTeamIdAndCategoryIdAndDeletedFalseOrderBySortAscIdAsc(Long teamId, Long categoryId);
/**
* 统计分类下的书签数量
*/
Long countByCategoryIdAndDeletedFalse(Long categoryId);
/**
* 统计团队下的书签数量
*/
Long countByTeamIdAndDeletedFalse(Long teamId);
}

View File

@ -0,0 +1,19 @@
package com.qqchen.deploy.backend.deploy.service;
import com.qqchen.deploy.backend.deploy.dto.TeamBookmarkCategoryDTO;
import com.qqchen.deploy.backend.deploy.entity.TeamBookmarkCategory;
import com.qqchen.deploy.backend.deploy.query.TeamBookmarkCategoryQuery;
import com.qqchen.deploy.backend.framework.service.IBaseService;
import java.util.List;
/**
* 团队导航分类Service
*/
public interface ITeamBookmarkCategoryService extends IBaseService<TeamBookmarkCategory, TeamBookmarkCategoryDTO, TeamBookmarkCategoryQuery, Long> {
/**
* 根据团队ID查询分类列表
*/
List<TeamBookmarkCategoryDTO> listByTeamId(Long teamId);
}

View File

@ -0,0 +1,24 @@
package com.qqchen.deploy.backend.deploy.service;
import com.qqchen.deploy.backend.deploy.dto.TeamBookmarkDTO;
import com.qqchen.deploy.backend.deploy.entity.TeamBookmark;
import com.qqchen.deploy.backend.deploy.query.TeamBookmarkQuery;
import com.qqchen.deploy.backend.framework.service.IBaseService;
import java.util.List;
/**
* 团队导航书签Service
*/
public interface ITeamBookmarkService extends IBaseService<TeamBookmark, TeamBookmarkDTO, TeamBookmarkQuery, Long> {
/**
* 根据团队ID查询书签列表
*/
List<TeamBookmarkDTO> listByTeamId(Long teamId);
/**
* 根据团队ID和分类ID查询书签列表
*/
List<TeamBookmarkDTO> listByTeamIdAndCategoryId(Long teamId, Long categoryId);
}

View File

@ -396,6 +396,10 @@ public class DeployServiceImpl implements IDeployService {
if (owner != null) { if (owner != null) {
dto.setOwnerName(owner.getNickname()); dto.setOwnerName(owner.getNickname());
} }
// 判断当前用户是否为团队负责人
dto.setIsOwner(team.getOwnerId().equals(currentUserId));
} else {
dto.setIsOwner(false);
} }
// 设置团队成员 // 设置团队成员

View File

@ -0,0 +1,95 @@
package com.qqchen.deploy.backend.deploy.service.impl;
import com.qqchen.deploy.backend.deploy.dto.TeamBookmarkCategoryDTO;
import com.qqchen.deploy.backend.deploy.entity.TeamBookmarkCategory;
import com.qqchen.deploy.backend.deploy.query.TeamBookmarkCategoryQuery;
import com.qqchen.deploy.backend.deploy.repository.ITeamBookmarkCategoryRepository;
import com.qqchen.deploy.backend.deploy.repository.ITeamBookmarkRepository;
import com.qqchen.deploy.backend.deploy.service.ITeamBookmarkCategoryService;
import com.qqchen.deploy.backend.framework.enums.ResponseCode;
import com.qqchen.deploy.backend.framework.exception.BusinessException;
import com.qqchen.deploy.backend.framework.service.impl.BaseServiceImpl;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.stream.Collectors;
/**
* 团队导航分类Service实现
*/
@Slf4j
@Service
public class TeamBookmarkCategoryServiceImpl extends BaseServiceImpl<TeamBookmarkCategory, TeamBookmarkCategoryDTO, TeamBookmarkCategoryQuery, Long>
implements ITeamBookmarkCategoryService {
@Resource
private ITeamBookmarkCategoryRepository teamBookmarkCategoryRepository;
@Resource
private ITeamBookmarkRepository teamBookmarkRepository;
@Override
@Transactional
public TeamBookmarkCategoryDTO create(TeamBookmarkCategoryDTO dto) {
// 检查分类名称唯一性
if (teamBookmarkCategoryRepository.existsByTeamIdAndNameAndDeletedFalse(dto.getTeamId(), dto.getName())) {
throw new BusinessException(ResponseCode.DATA_ALREADY_EXISTS, new Object[]{"该团队下已存在相同名称的分类"});
}
return super.create(dto);
}
@Override
@Transactional
public TeamBookmarkCategoryDTO update(Long id, TeamBookmarkCategoryDTO dto) {
// 检查分类名称唯一性排除当前分类
if (teamBookmarkCategoryRepository.existsByTeamIdAndNameAndIdNotAndDeletedFalse(dto.getTeamId(), dto.getName(), id)) {
throw new BusinessException(ResponseCode.DATA_ALREADY_EXISTS, new Object[]{"该团队下已存在相同名称的分类"});
}
return super.update(id, dto);
}
@Override
@Transactional
public void delete(Long id) {
// 检查是否有关联的书签
Long bookmarkCount = teamBookmarkRepository.countByCategoryIdAndDeletedFalse(id);
if (bookmarkCount > 0) {
throw new BusinessException(ResponseCode.DATA_IN_USE, new Object[]{"该分类下存在书签,无法删除"});
}
super.delete(id);
}
@Override
public Page<TeamBookmarkCategoryDTO> page(TeamBookmarkCategoryQuery query) {
Page<TeamBookmarkCategoryDTO> page = super.page(query);
// 统计每个分类的书签数量
List<TeamBookmarkCategoryDTO> content = page.getContent().stream()
.peek(category -> {
Long count = teamBookmarkRepository.countByCategoryIdAndDeletedFalse(category.getId());
category.setBookmarkCount(count);
})
.collect(Collectors.toList());
return new PageImpl<>(content, page.getPageable(), page.getTotalElements());
}
@Override
public List<TeamBookmarkCategoryDTO> listByTeamId(Long teamId) {
List<TeamBookmarkCategory> categories = teamBookmarkCategoryRepository.findByTeamIdAndDeletedFalseOrderBySortAscIdAsc(teamId);
List<TeamBookmarkCategoryDTO> dtos = converter.toDtoList(categories);
// 统计每个分类的书签数量
dtos.forEach(category -> {
Long count = teamBookmarkRepository.countByCategoryIdAndDeletedFalse(category.getId());
category.setBookmarkCount(count);
});
return dtos;
}
}

View File

@ -0,0 +1,121 @@
package com.qqchen.deploy.backend.deploy.service.impl;
import com.qqchen.deploy.backend.deploy.dto.TeamBookmarkDTO;
import com.qqchen.deploy.backend.deploy.entity.TeamBookmark;
import com.qqchen.deploy.backend.deploy.entity.TeamBookmarkCategory;
import com.qqchen.deploy.backend.deploy.query.TeamBookmarkQuery;
import com.qqchen.deploy.backend.deploy.repository.ITeamBookmarkCategoryRepository;
import com.qqchen.deploy.backend.deploy.repository.ITeamBookmarkRepository;
import com.qqchen.deploy.backend.deploy.service.ITeamBookmarkService;
import com.qqchen.deploy.backend.framework.service.impl.BaseServiceImpl;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* 团队导航书签Service实现
*/
@Slf4j
@Service
public class TeamBookmarkServiceImpl extends BaseServiceImpl<TeamBookmark, TeamBookmarkDTO, TeamBookmarkQuery, Long>
implements ITeamBookmarkService {
@Resource
private ITeamBookmarkRepository teamBookmarkRepository;
@Resource
private ITeamBookmarkCategoryRepository teamBookmarkCategoryRepository;
@Override
public TeamBookmarkDTO findById(Long id) {
TeamBookmarkDTO dto = super.findById(id);
if (dto != null) {
enrichCategoryName(dto);
}
return dto;
}
@Override
public Page<TeamBookmarkDTO> page(TeamBookmarkQuery query) {
Page<TeamBookmarkDTO> page = super.page(query);
// 补充分类名称
List<TeamBookmarkDTO> content = page.getContent();
enrichCategoryNames(content);
return new PageImpl<>(content, page.getPageable(), page.getTotalElements());
}
@Override
public List<TeamBookmarkDTO> findAll(TeamBookmarkQuery query) {
List<TeamBookmarkDTO> dtos = super.findAll(query);
enrichCategoryNames(dtos);
return dtos;
}
@Override
public List<TeamBookmarkDTO> listByTeamId(Long teamId) {
List<TeamBookmark> bookmarks = teamBookmarkRepository.findByTeamIdAndDeletedFalseOrderBySortAscIdAsc(teamId);
List<TeamBookmarkDTO> dtos = converter.toDtoList(bookmarks);
enrichCategoryNames(dtos);
return dtos;
}
@Override
public List<TeamBookmarkDTO> listByTeamIdAndCategoryId(Long teamId, Long categoryId) {
List<TeamBookmark> bookmarks = teamBookmarkRepository.findByTeamIdAndCategoryIdAndDeletedFalseOrderBySortAscIdAsc(teamId, categoryId);
List<TeamBookmarkDTO> dtos = converter.toDtoList(bookmarks);
enrichCategoryNames(dtos);
return dtos;
}
/**
* 补充分类名称
*/
private void enrichCategoryNames(List<TeamBookmarkDTO> dtos) {
if (dtos.isEmpty()) {
return;
}
// 获取所有分类ID
List<Long> categoryIds = dtos.stream()
.map(TeamBookmarkDTO::getCategoryId)
.filter(id -> id != null)
.distinct()
.collect(Collectors.toList());
if (categoryIds.isEmpty()) {
return;
}
// 批量查询分类
List<TeamBookmarkCategory> categories = teamBookmarkCategoryRepository.findAllById(categoryIds);
Map<Long, String> categoryMap = categories.stream()
.collect(Collectors.toMap(TeamBookmarkCategory::getId, TeamBookmarkCategory::getName));
// 设置分类名称
dtos.forEach(dto -> {
if (dto.getCategoryId() != null) {
dto.setCategoryName(categoryMap.get(dto.getCategoryId()));
}
});
}
/**
* 补充单个书签的分类名称
*/
private void enrichCategoryName(TeamBookmarkDTO dto) {
if (dto.getCategoryId() != null) {
teamBookmarkCategoryRepository.findById(dto.getCategoryId())
.ifPresent(category -> dto.setCategoryName(category.getName()));
}
}
}

View File

@ -17,7 +17,7 @@ VALUES
-- 初始化用户数据密码统一为123456 -- 初始化用户数据密码统一为123456
INSERT INTO sys_user (id, create_time, username, password, nickname, email, phone, department_id, enabled) INSERT INTO sys_user (id, create_time, username, password, nickname, email, phone, department_id, enabled)
VALUES VALUES
(1, NOW(), 'admin', '$2a$10$5jQmYewM2slT.OFeNjnQGOQrImu0aeXVxHxWsV8BCJ.cQiOHBHpVS', '超级管理员', 'admin@system.com', '13800138000', 1, 1), (1, NOW(), 'admin', '$2a$10$SMiRx30pH7SnBVNccP6/le9IAp0GCcXvGP5qZUQJDwzyfd.q8lFHy', '超级管理员', 'admin@system.com', '13800138000', 1, 1),
(5, NOW(), 'tangfengmin', '$2a$10$Ela/xvMnUjpI5fqgXwF1sebpbxNAOaBo2Ar5hVqyAQvTZm/r.btqa', '汤峰岷', 'tangfengmin@iscmtech.com', NULL, 5, 1), (5, NOW(), 'tangfengmin', '$2a$10$Ela/xvMnUjpI5fqgXwF1sebpbxNAOaBo2Ar5hVqyAQvTZm/r.btqa', '汤峰岷', 'tangfengmin@iscmtech.com', NULL, 5, 1),
(6, NOW(), 'shengzeqiang', '$2a$10$jeuU3FvTya3ZbS28yvVafu5W5pBc.s8/ZGNHQ7pkhHNp/VsI2wpw2', '盛泽强', 'shengzeqiang@iscmtech.com', NULL, 5, 1), (6, NOW(), 'shengzeqiang', '$2a$10$jeuU3FvTya3ZbS28yvVafu5W5pBc.s8/ZGNHQ7pkhHNp/VsI2wpw2', '盛泽强', 'shengzeqiang@iscmtech.com', NULL, 5, 1),
(7, NOW(), 'wengao', '$2a$10$b/ybO46p/R5e2hDAsNF66un8RpnpWEjXvVs6udbTIAR.Yo9o2HGHO', '文高', 'wengao@iscmtech.com', NULL, 5, 1), (7, NOW(), 'wengao', '$2a$10$b/ybO46p/R5e2hDAsNF66un8RpnpWEjXvVs6udbTIAR.Yo9o2HGHO', '文高', 'wengao@iscmtech.com', NULL, 5, 1),
@ -28,7 +28,7 @@ VALUES
(12, NOW(), 'wangdongzhu', '$2a$10$OErv/EvBXUocMutXZJe3C.k1gq9/8rrF63pz8mWRBLoORGb/8ELIO', '王栋柱', 'wangdongzhu@iscmtech.com', NULL, 5, 1), (12, NOW(), 'wangdongzhu', '$2a$10$OErv/EvBXUocMutXZJe3C.k1gq9/8rrF63pz8mWRBLoORGb/8ELIO', '王栋柱', 'wangdongzhu@iscmtech.com', NULL, 5, 1),
(13, NOW(), 'yangzhenfu', '$2a$10$.WBc0pXTQnrDn2IUm.eRneH9jfu7TIZg2na.K3WaluvjIEts2Iasm', '杨振夫', 'yangzhenfu@iscmtech.com', '15842461837', 5, 1), (13, NOW(), 'yangzhenfu', '$2a$10$.WBc0pXTQnrDn2IUm.eRneH9jfu7TIZg2na.K3WaluvjIEts2Iasm', '杨振夫', 'yangzhenfu@iscmtech.com', '15842461837', 5, 1),
(14, NOW(), 'songwei', '$2a$10$8ChswMOtgkvZCGsa/wvMM.wfhL5NL9uqCasyHZ6hiDG45vFu/EQRG', '宋伟', 'songwei@iscmtech.com', NULL, 5, 1), (14, NOW(), 'songwei', '$2a$10$8ChswMOtgkvZCGsa/wvMM.wfhL5NL9uqCasyHZ6hiDG45vFu/EQRG', '宋伟', 'songwei@iscmtech.com', NULL, 5, 1),
(15, NOW(), 'lukuan', '$2a$10$hlDCAqOWxZso7APbMClF1.Fp6xhnb8av5s.MDnC1tf0QfHfZRayNq', '路宽', 'lukuan@babyfs.cn', '13888888888', 7, 1), (15, NOW(), 'lukuan', '$2a$10$hlDCAqOWxZso7APbMClF1.Fp6xhnb8av5s.MDnC1tf0QfHfZRayNq', '路宽', 'lukuan@iscmtech.com', '13888888888', 7, 1),
(16, NOW(), 'yangfan', '$2a$10$hYdpTUGG3q3Og2OA2uE39.5CnBDeUQRyqsM5OwoKUSWj2ZJUdOb0u', '杨帆', 'yangfan@iscmtech.com', NULL, 5, 1); (16, NOW(), 'yangfan', '$2a$10$hYdpTUGG3q3Og2OA2uE39.5CnBDeUQRyqsM5OwoKUSWj2ZJUdOb0u', '杨帆', 'yangfan@iscmtech.com', NULL, 5, 1);
-- 初始化系统参数 -- 初始化系统参数
@ -809,39 +809,65 @@ INSERT INTO `deploy-ease-platform`.`deploy_server_category` (`id`, `name`, `code
INSERT INTO `deploy-ease-platform`.`deploy_server_category` (`id`, `name`, `code`, `icon`, `description`, `sort`, `enabled`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (9, '大连本地服务器', 'dalian_locals', '', '', 0, 1, 'admin', NOW(), 'admin', NOW(), 1, 0); INSERT INTO `deploy-ease-platform`.`deploy_server_category` (`id`, `name`, `code`, `icon`, `description`, `sort`, `enabled`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (9, '大连本地服务器', 'dalian_locals', '', '', 0, 1, 'admin', NOW(), 'admin', NOW(), 1, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (1, 'SY测试环境服务器', '192.168.1.82', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'engine-k8s', 'ONLINE', '', 128, 314, 1532, '[{\"totalSize\": 1531, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"SY测试环境-临时用\", \"K8S\"]', NOW(), 'admin', NOW(), 'system', NOW(), 30, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (1, 'SY测试环境服务器', '192.168.1.82', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'engine-k8s', 'ONLINE', '', 128, 314, 1532, '[{\"totalSize\": 1531, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"SY测试环境-临时用\", \"K8S\"]', NOW(), 'admin', NOW(), 'system', NOW(), 45, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (2, '国产化38APP1', '124.127.238.38', 22, 'root', 'PASSWORD', '@1sdgCq123', '', '', 7, 'LINUX', 'Kylin Linux Advanced Server V10 (Lance)', 'app01', 'ONLINE', '', 32, 63, 201, '[{\"totalSize\": 200, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', NULL, NOW(), 'dengqichen', NOW(), 'system', NOW(), 25, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (2, '国产化38APP1', '124.127.238.38', 22, 'root', 'PASSWORD', '@1sdgCq123', '', '', 7, 'LINUX', 'Kylin Linux Advanced Server V10 (Lance)', 'app01', 'ONLINE', '', 32, 63, 201, '[{\"totalSize\": 200, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', NULL, NOW(), 'dengqichen', NOW(), 'system', NOW(), 40, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (3, '国产化APP2', '124.127.238.39', 22, 'root', 'PASSWORD', '@1sdgCq123', '', '', 7, 'LINUX', 'Kylin Linux Advanced Server V10 (Lance)', 'app02', 'ONLINE', '', 32, 63, 201, '[{\"totalSize\": 200, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', NULL, NOW(), 'dengqichen', NOW(), 'system', NOW(), 24, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (3, '国产化APP2', '124.127.238.39', 22, 'root', 'PASSWORD', '@1sdgCq123', '', '', 7, 'LINUX', 'Kylin Linux Advanced Server V10 (Lance)', 'app02', 'ONLINE', '', 32, 63, 201, '[{\"totalSize\": 200, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', NULL, NOW(), 'dengqichen', NOW(), 'system', NOW(), 39, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (4, '国产化DBServer', '219.142.42.183', 22, 'root', 'PASSWORD', '@1sdgCq123', '', '', 7, 'LINUX', 'Kylin Linux Advanced Server V10 (Lance)', 'dbserver', 'ONLINE', '', 8, 31, 501, '[{\"totalSize\": 500, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', NULL, NOW(), 'dengqichen', NOW(), 'system', NOW(), 25, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (4, '国产化DBServer', '219.142.42.183', 22, 'root', 'PASSWORD', '@1sdgCq123', '', '', 7, 'LINUX', 'Kylin Linux Advanced Server V10 (Lance)', 'dbserver', 'ONLINE', '', 8, 31, 501, '[{\"totalSize\": 500, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', NULL, NOW(), 'dengqichen', NOW(), 'system', NOW(), 40, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (5, '华为云116', '172.16.0.116', 22, 'root', 'PASSWORD', 'lianyu_123', '', '', 8, 'LINUX', 'CentOS Linux 7 (Core)', 'mysql', 'ONLINE', '', 8, 31, 533, '[{\"totalSize\": 40, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 493, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 26, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (5, '华为云116', '172.16.0.116', 22, 'root', 'PASSWORD', 'lianyu_123', '', '', 8, 'LINUX', 'CentOS Linux 7 (Core)', 'mysql', 'ONLINE', '', 8, 31, 533, '[{\"totalSize\": 40, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 493, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 41, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (6, '华为云nexus', '172.16.0.191', 2222, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'CentOS Linux 8', 'ly-nexus', 'ONLINE', '', 8, 15, 493, '[{\"totalSize\": 99, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 394, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 32, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (6, '华为云nexus', '172.16.0.191', 2222, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'CentOS Linux 8', 'ly-nexus', 'ONLINE', '', 8, 15, 493, '[{\"totalSize\": 99, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 394, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 47, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (7, 'k8s服务器-203', '192.168.2.203', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 9, 'LINUX', 'CentOS Linux 7 (Core)', 'k8s-master', 'ONLINE', '', 24, 70, 469, '[{\"totalSize\": 468, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 26, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (7, 'k8s服务器-203', '192.168.2.203', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 9, 'LINUX', 'CentOS Linux 7 (Core)', 'k8s-master', 'ONLINE', '', 24, 70, 469, '[{\"totalSize\": 468, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 41, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (8, 'doris-fe-204', '192.168.2.204', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 9, 'LINUX', 'CentOS Linux 7 (Core)', 'doris', 'ONLINE', '', 8, 31, 193, '[{\"totalSize\": 192, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 26, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (8, 'doris-fe-204', '192.168.2.204', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 9, 'LINUX', 'CentOS Linux 7 (Core)', 'doris', 'ONLINE', '', 8, 31, 193, '[{\"totalSize\": 192, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 40, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (9, 'doris-be-205', '192.168.2.205', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 9, 'LINUX', 'CentOS Linux 7 (Core)', 'middware-205', 'ONLINE', '', 8, 15, 191, '[{\"totalSize\": 190, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 24, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (9, 'doris-be-205', '192.168.2.205', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 9, 'LINUX', 'CentOS Linux 7 (Core)', 'middware-205', 'ONLINE', '', 8, 15, 191, '[{\"totalSize\": 190, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 39, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (10, '192.168.2.201', '192.168.2.201', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 9, 'LINUX', 'CentOS Linux 7 (Core)', 'ly-dev', 'ONLINE', '', 16, 38, 459, '[{\"totalSize\": 457, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 26, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (10, '192.168.2.201', '192.168.2.201', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 9, 'LINUX', 'CentOS Linux 7 (Core)', 'ly-dev', 'ONLINE', '', 16, 38, 459, '[{\"totalSize\": 457, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 41, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (11, 'bj-ly-scp-worker06', '172.16.0.56', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 8, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (11, 'bj-ly-scp-worker06', '172.16.0.56', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-68fb', 'ONLINE', '', 16, 62, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 24, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (12, 'bj-ly-etl-engine', '172.16.0.4', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 7, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (12, 'bj-ly-etl-engine', '172.16.0.4', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'bj-ly-etl-engine-04', 'ONLINE', '', 64, 251, 1008, '[{\"totalSize\": 1008, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 23, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (13, 'bj-ly-scp-worker04', '172.16.0.18', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 6, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (13, 'bj-ly-scp-worker04', '172.16.0.18', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-966a', 'ONLINE', '', 16, 62, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 22, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (14, 'bj-ly-scp-worker03', '172.16.0.205', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 5, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (14, 'bj-ly-scp-worker03', '172.16.0.205', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-a63f', 'ONLINE', '', 16, 31, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 21, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (15, 'bj-ly-scp-worker01', '172.16.0.106', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 5, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (15, 'bj-ly-scp-worker01', '172.16.0.106', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'bj-ly-scp-worker01-106', 'ONLINE', '', 8, 15, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 21, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (16, 'bj-ly-scp-worker07', '172.16.0.221', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 5, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (16, 'bj-ly-scp-worker07', '172.16.0.221', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-a1ce', 'ONLINE', '', 16, 62, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 21, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (17, 'bj-ly-scp-worker02', '172.16.0.225', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 5, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (17, 'bj-ly-scp-worker02', '172.16.0.225', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-6a27-225', 'ONLINE', '', 8, 15, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 21, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (18, 'bj-ly-scp-worker08', '172.16.0.145', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 4, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (18, 'bj-ly-scp-worker08', '172.16.0.145', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-2a85', 'ONLINE', '', 16, 62, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 20, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (19, 'bj-ly-scp-worker09', '172.16.0.142', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 4, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (19, 'bj-ly-scp-worker09', '172.16.0.142', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-3ce5', 'ONLINE', '', 16, 62, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 20, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (20, 'bj-ly-scp-worker05', '172.16.0.52', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 4, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (20, 'bj-ly-scp-worker05', '172.16.0.52', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-c309', 'ONLINE', '', 16, 62, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 20, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (21, 'bj-ly-scp-doris-be02', '172.16.0.17', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 4, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (21, 'bj-ly-scp-doris-be02', '172.16.0.17', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'CentOS Linux 7 (Core)', 'ecs-772a-0003', 'ONLINE', '', 32, 62, 336, '[{\"totalSize\": 40, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 296, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 20, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (22, 'bj-ly-scp-doris-fe', '172.16.0.242', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 3, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (22, 'bj-ly-scp-doris-fe', '172.16.0.242', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'CentOS Linux 7 (Core)', 'bj-ly-scp-doris-fe-242', 'ONLINE', '', 32, 62, 336, '[{\"totalSize\": 40, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 296, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 19, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (23, 'bj-ly-scp-doris-be01', '172.16.0.223', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 3, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (23, 'bj-ly-scp-doris-be01', '172.16.0.223', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'CentOS Linux 7 (Core)', 'ecs-772a-0002', 'ONLINE', '', 32, 62, 336, '[{\"totalSize\": 40, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 296, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 19, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (24, 'engine-sit', '192.168.1.71', 22, 'yangfan', 'PASSWORD', 'pV7nx0xR', '', '', 6, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'admin', NOW(), 'system', NOW(), 3, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (24, 'engine-sit', '192.168.1.71', 22, 'yangfan', 'PASSWORD', 'pV7nx0xR', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'ubuntu-sit', 'ONLINE', '', 12, 326, 492, NULL, '[\"虚拟机\"]', NOW(), 'admin', NOW(), 'system', NOW(), 20, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (25, 'bj-ly-scp-doris-be03', '172.16.0.77', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 2, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (25, 'bj-ly-scp-doris-be03', '172.16.0.77', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'CentOS Linux 7 (Core)', 'ecs-772a-0004', 'ONLINE', '', 32, 62, 336, '[{\"totalSize\": 40, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 296, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 18, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (26, 'engine-uat', '192.168.1.72', 22, 'yangfan', 'PASSWORD', 'pV7nx0xR', '', '', 6, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'admin', NOW(), 'system', NOW(), 2, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (26, 'engine-uat', '192.168.1.72', 22, 'yangfan', 'PASSWORD', 'pV7nx0xR', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'ubuntu-uat', 'ONLINE', '', 8, 196, 393, NULL, '[\"k8s\"]', NOW(), 'admin', NOW(), 'system', NOW(), 19, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (27, 'bj-ly-oms-worker03', '172.16.0.150', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 2, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (27, 'bj-ly-oms-worker03', '172.16.0.150', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'bj-ly-oms-worker03-150-out', 'ONLINE', '', 16, 31, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 18, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (28, 'bj-ly-oms-worker02', '172.16.0.143', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 2, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (28, 'bj-ly-oms-worker02', '172.16.0.143', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'bj-ly-oms-worker02-143', 'ONLINE', '', 8, 15, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 18, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (29, 'bj-ly-oms-worker04', '172.16.0.5', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 2, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (29, 'bj-ly-oms-worker04', '172.16.0.5', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'bj-ly-oms-worker04-5-out', 'ONLINE', '', 16, 31, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 17, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (30, 'bj-ly-oms-worker01', '172.16.0.194', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 2, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (30, 'bj-ly-oms-worker01', '172.16.0.194', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-4e36-7efc', 'ONLINE', '', 8, 15, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 18, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (31, 'bj-ly-jumpserver-113', '172.16.0.113', 22, 'root', 'PASSWORD', '52DjOiyumc*UiNHsj^b%', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 3, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (31, 'bj-ly-jumpserver-113', '172.16.0.113', 22, 'root', 'PASSWORD', '52DjOiyumc*UiNHsj^b%', '', '', 8, 'LINUX', 'CentOS Linux 7 (Core)', 'bj-ly-jumpserver-113', 'ONLINE', '', 8, 31, 247, '[{\"totalSize\": 40, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 207, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 19, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (32, 'bj-ly-gitlab', '172.16.0.28', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, NULL, 'songwei', NOW(), 'songwei', NOW(), 1, 0); INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (32, 'bj-ly-gitlab', '172.16.0.28', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'CentOS Linux 8 (Core)', 'gitlab', 'ONLINE', '', 8, 15, 198, '[{\"totalSize\": 99, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 99, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 18, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (33, 'engine-microservice', '192.168.1.70', 22, 'lizhaoxiang', 'PASSWORD', 'pV7nx0xR', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'engine-microservices', 'ONLINE', '', 32, 62, 1007, '[{\"totalSize\": 1005, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 2, \"fileSystem\": \"ext4\", \"mountPoint\": \"/boot\"}]', '[\"K8S\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 14, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (34, 'engine-gitlab', '192.168.1.74', 22, 'root', 'PASSWORD', 'We@LyCj1412', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'engine-gitlab-74', 'ONLINE', '', 32, 62, 984, '[{\"totalSize\": 982, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 2, \"fileSystem\": \"ext4\", \"mountPoint\": \"/boot\"}]', NULL, NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 14, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (35, 'engine-nexus', '192.168.1.78', 22, 'lizhaoxiang', 'PASSWORD', 'pV7nx0xR', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'engine-nexus', 'ONLINE', '', 20, 31, 1935, '[{\"totalSize\": 98, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 1833, \"fileSystem\": \"ext4\", \"mountPoint\": \"/data\"}, {\"totalSize\": 2, \"fileSystem\": \"ext4\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 2, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', '[\"虚拟机\", \"nexus\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 12, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (36, 'engine-prod-node-79', '192.168.1.79', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'engine-prod-node-79', 'ONLINE', '', 20, 31, 469, '[{\"totalSize\": 468, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', '[\"engine\", \"实体机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 13, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (37, 'engine-sit-node-80', '192.168.1.80', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'engine-sit-node-80', 'ONLINE', '', 24, 31, 940, '[{\"totalSize\": 936, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 2, \"fileSystem\": \"ext4\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 2, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', '[\"engine\", \"实体机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 11, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (38, 'engine-sit-node-81', '192.168.1.81', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'engine-sit-node-81', 'ONLINE', '', 24, 31, 940, '[{\"totalSize\": 936, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 2, \"fileSystem\": \"ext4\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 2, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', '[\"engine\", \"实体机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 11, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (39, 'engine-dev-node-77', '192.168.1.77', 22, 'lizhaoxiang', 'PASSWORD', 'pV7nx0xR', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'engine-dev-node-77', 'ONLINE', '', 20, 31, 1935, '[{\"totalSize\": 98, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 2, \"fileSystem\": \"ext4\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 2, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}, {\"totalSize\": 1833, \"fileSystem\": \"ext4\", \"mountPoint\": \"/data\"}]', '[\"engine\", \"实体机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 11, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (40, 'engine-nfs', '192.168.1.83', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'nfs-1.83', 'ONLINE', '', 8, 31, 492, '[{\"totalSize\": 491, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"nfs\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (41, 'engine-prod2', '192.168.1.84', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'k8s-node84', 'ONLINE', '', 32, 125, 993, '[{\"totalSize\": 992, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"k8s\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (42, 'engine-dev', '192.168.1.85', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'engine-dev', 'ONLINE', '', 64, 125, 496, '[{\"totalSize\": 495, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"k8s\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (43, 'engine-skywalking', '192.168.1.86', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'engine-skywalking', 'ONLINE', '', 8, 31, 493, '[{\"totalSize\": 492, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"skywalking\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (44, 'engine-doris-fe', '192.168.1.87', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'engine-doris-fe', 'ONLINE', '', 16, 31, 498, '[{\"totalSize\": 496, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 2, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"doris\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (45, 'engine-doris-be01', '192.168.1.88', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'engine-doris-be01', 'ONLINE', '', 32, 31, 498, '[{\"totalSize\": 496, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 2, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"doris\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (46, 'engine-doris-be02', '192.168.1.90', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'engine-doris-be02', 'ONLINE', '', 32, 31, 499, '[{\"totalSize\": 498, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"doris\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (47, 'engine-doris-be03', '192.168.1.91', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'engine-doris-be03', 'ONLINE', '', 32, 31, 499, '[{\"totalSize\": 498, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"doris\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (48, 'engine-jumpserver', '192.168.1.92', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'jumpserver', 'ONLINE', '', 4, 7, 93, '[{\"totalSize\": 50, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 42, \"fileSystem\": \"xfs\", \"mountPoint\": \"/home\"}]', '[\"jumpserver\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (49, 'engine-upload-war', '192.168.1.93', 22, 'root', 'PASSWORD', 'Lianyu_123!#', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'localhost.localdomain', 'ONLINE', '', 2, 3, 77, '[{\"totalSize\": 50, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 26, \"fileSystem\": \"xfs\", \"mountPoint\": \"/home\"}]', '[\"upload\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 4, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (50, 'engine-oracle-dev', '192.168.1.94', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'ly-oracle', 'ONLINE', '', 4, 7, 792, '[{\"totalSize\": 771, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 20, \"fileSystem\": \"xfs\", \"mountPoint\": \"/home\"}]', '[\"oralce\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 4, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (51, 'engine-etl-dev', '192.168.1.95', 22, 'oem', 'PASSWORD', '123456', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'engine-etl', 'ONLINE', '', 20, 31, 468, '[{\"totalSize\": 467, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', '[\"k8s\", \"实体机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 4, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (52, 'ptm01', '192.168.1.97', 22, 'root', 'PASSWORD', 'lianyu_123', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'ptm01', 'ONLINE', '', 8, 15, 98, '[{\"totalSize\": 97, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"ptm\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 3, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (53, 'ptm02', '192.168.1.98', 22, 'root', 'PASSWORD', 'lianyu_123', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'ptm02', 'ONLINE', '', 8, 15, 98, '[{\"totalSize\": 97, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"ptm\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 4, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (54, 'ptm-minio', '192.168.1.99', 22, 'root', 'PASSWORD', 'lianyu_123', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'localhost.localdomain', 'ONLINE', '', 8, 15, 298, '[{\"totalSize\": 297, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"ptm\", \"minio\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 4, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (55, 'ptm-mysql', '192.168.1.100', 22, 'root', 'PASSWORD', 'lianyu_123', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'ptm04-mysql', 'ONLINE', '', 4, 15, 198, '[{\"totalSize\": 197, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"ptm\", \"mysql\"]', NOW(), 'yangfan', NOW(), 'system', NOW(), 4, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (56, 'engine-test', '192.168.1.60', 22, 'root', 'PASSWORD', '1234', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'k8s-01', 'ONLINE', '', 2, 3, 15, '[{\"totalSize\": 14, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"test\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 3, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (57, 'engine-redis-sentinel01', '192.168.1.61', 22, 'root', 'PASSWORD', '1234', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'k8s-02', 'ONLINE', '', 2, 3, 15, '[{\"totalSize\": 14, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"redis\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 3, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (58, 'engine-redis-sentinel02', '192.168.1.62', 22, 'root', 'PASSWORD', '1234', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'k8s-03', 'ONLINE', '', 2, 1, 15, '[{\"totalSize\": 14, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"redis\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 3, 0);
INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (59, 'engine-redis-sentinel03', '192.168.1.63', 22, 'root', 'PASSWORD', '1234', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'k8s-04', 'ONLINE', '', 2, 1, 15, '[{\"totalSize\": 14, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"redis\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 3, 0);
-- ===================================================== -- =====================================================
-- 通知模板初始数据 -- 通知模板初始数据
-- ===================================================== -- =====================================================

View File

@ -1382,3 +1382,70 @@ CREATE TABLE system_release
KEY idx_notified (notified), KEY idx_notified (notified),
KEY idx_deleted (deleted) KEY idx_deleted (deleted)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='系统版本发布记录表'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='系统版本发布记录表';
-- =====================================================
-- 团队导航功能
-- =====================================================
-- 团队导航分类表
CREATE TABLE deploy_team_bookmark_category
(
id BIGINT PRIMARY KEY AUTO_INCREMENT COMMENT '主键ID',
team_id BIGINT NOT NULL COMMENT '团队ID',
name VARCHAR(50) NOT NULL COMMENT '分类名称',
icon VARCHAR(100) NULL COMMENT '分类图标',
sort INT DEFAULT 0 COMMENT '排序',
enabled BOOLEAN DEFAULT TRUE COMMENT '是否启用',
-- 审计字段
create_by VARCHAR(50) NULL COMMENT '创建人',
create_time DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
update_by VARCHAR(50) NULL COMMENT '更新人',
update_time DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
version INT DEFAULT 1 COMMENT '版本号',
deleted BOOLEAN DEFAULT FALSE COMMENT '是否删除',
INDEX idx_team_id (team_id),
INDEX idx_deleted (deleted),
CONSTRAINT fk_bookmark_category_team FOREIGN KEY (team_id) REFERENCES deploy_team (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='团队导航分类表';
-- 团队导航书签表
CREATE TABLE deploy_team_bookmark
(
id BIGINT PRIMARY KEY AUTO_INCREMENT COMMENT '主键ID',
team_id BIGINT NOT NULL COMMENT '团队ID',
category_id BIGINT NULL COMMENT '分类ID',
-- 书签基本信息
title VARCHAR(100) NOT NULL COMMENT '书签标题',
url VARCHAR(500) NOT NULL COMMENT '书签URL',
icon VARCHAR(200) NULL COMMENT '图标URL可存储favicon或自定义图标',
description VARCHAR(500) NULL COMMENT '描述',
-- 认证信息(可选)
need_auth BOOLEAN DEFAULT FALSE COMMENT '是否需要认证(决定是否显示账号密码)',
username VARCHAR(100) NULL COMMENT '账号',
password VARCHAR(500) NULL COMMENT '密码',
-- 其他信息
tags JSON NULL COMMENT '标签JSON数组',
sort INT DEFAULT 0 COMMENT '排序',
enabled BOOLEAN DEFAULT TRUE COMMENT '是否启用',
is_public BOOLEAN DEFAULT TRUE COMMENT '是否公开',
-- 审计字段
create_by VARCHAR(50) NULL COMMENT '创建人',
create_time DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
update_by VARCHAR(50) NULL COMMENT '更新人',
update_time DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
version INT DEFAULT 1 COMMENT '版本号',
deleted BOOLEAN DEFAULT FALSE COMMENT '是否删除',
INDEX idx_team_id (team_id),
INDEX idx_category_id (category_id),
INDEX idx_sort (sort),
INDEX idx_deleted (deleted),
CONSTRAINT fk_bookmark_team FOREIGN KEY (team_id) REFERENCES deploy_team (id),
CONSTRAINT fk_bookmark_category FOREIGN KEY (category_id) REFERENCES deploy_team_bookmark_category (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='团队导航书签表';

View File

@ -14,17 +14,22 @@ VALUES (
'system', NOW(), 'system', NOW(), 1, 0, 'system', NOW(), 'system', NOW(), 1, 0,
1.19, 'ALL', NOW(), 1.19, 'ALL', NOW(),
'【后端】 '【后端】
- id
- SSH连接成功时插入的空监控记录 -
- status=''SUCCESS'' - deploy_team_bookmark_categorydeploy_team_bookmark
- 0 - needAuth字段
- EntityDTOQueryConverterRepositoryServiceController层
- //
-
- isOwner字段
-
- CPU51h/6h/24h/7d/30dECharts图表和统计信息 -
- 使DialogContent默认提供的标准关闭按钮 -
- pageNum和pageSizeApplication分页实现 - 便使
- ID列显示使 - "未分类"
- ID徽章', - ',
0, NULL, NULL, 0 0, NULL, NULL, 0
); );