feat:查询仿真策划版本

This commit is contained in:
2026-01-28 20:22:58 +08:00
parent 0126d1c548
commit 913eab0051
6 changed files with 33 additions and 2 deletions

View File

@@ -1247,6 +1247,10 @@ public class MinioFileIDataFileServiceImpl implements IDataFileService {
// 新的路径名
String newDirMinioObjectKey = getFileMinioObjectKey(targetParentMetadataInfo.getObjectKey() + sourceMetadataInfo.getOriginalName());
// 把以前归档的过同名文件删除 保留最新的
Optional<FileMetadataInfo> existingFileOptional = getFileMetadataInfoByObjectKey(newDirMinioObjectKey, ThreadLocalContext.getTenantId());
existingFileOptional.ifPresent(existingFile -> fileMetadataInfoService.removeById(existingFile));
try {
minioService.copyFile(oldDirMinioObjectKey, newDirMinioObjectKey,sourceMetadataInfo.getBucketName());
// 创建目录元数据并保存到数据库

View File

@@ -44,6 +44,10 @@ public class LyricVUserToDm {
* 工种名称
*/
private String work_type_name;
/**
* 岗位编码
*/
private String job_code;
/**
* 岗位名称
*/

View File

@@ -2,11 +2,19 @@ package com.sdm.outbridge.mode;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
public class GetUserListReq {
/**
* 工种
* 工种 模糊匹配
*/
private String workType;
private String workType = "";
/**
* 工种列表 精确匹配
*/
private List<String> workTypeList = new ArrayList<>();
}

View File

@@ -103,4 +103,10 @@ public class SimulationProjectController implements ISimulationProjectFeignClien
return projectService.exportTaskTreeByScript(taskTreeExportExcelFormat, httpservletResponse);
}
@GetMapping("/queryDesignVersions")
@Operation(summary = "查询项目仿真策划版本信息", description = "查询项目仿真策划版本信息")
public SdmResponse queryDesignVersions(@RequestParam("projectId") String projectId) {
return projectService.queryDesignVersions(projectId);
}
}

View File

@@ -36,4 +36,7 @@ public interface IProjectService {
SdmResponse getTaskTreeList(ProjectTreeListReq req);
SdmResponse exportTaskTreeByScript(TaskTreeExportExcelFormat taskTreeExportExcelFormat, HttpServletResponse httpservletResponse);
SdmResponse queryDesignVersions(String projectId);
}

View File

@@ -3211,4 +3211,10 @@ public class ProjectServiceImpl extends BaseService implements IProjectService {
return taskRespond;
}
@Override
public SdmResponse queryDesignVersions(String projectId) {
List<SimulationDesignVersions> versions = simulationDesignVersionsService.lambdaQuery().eq(SimulationDesignVersions::getProjectId, projectId).list();
return SdmResponse.success(versions);
}
}