数据模型库初始化完成

This commit is contained in:
zhulongchuan 2025-09-17 19:52:11 +08:00
parent 52364c7265
commit 0bbdb51ea4
2 changed files with 10 additions and 7 deletions

View File

@ -68,21 +68,23 @@ public class EquModelServiceImpl implements IEquModelService
public EquModel selectEquModelByModelId(Long modelId)
{
EquModel equModel = equModelMapper.selectEquModelByModelId(modelId);
if (equModel != null) {
SysFile dynModelFile = remoteSystemFileService.getFileInfo(equModel.getDynModelFile()).getData();
if (equModel != null && equModel.getDynModelFile() != null) {
// SysFile dynModelFile = remoteSystemFileService.getFileInfo(equModel.getDynModelFile()).getData();
SysFile dynModelFile = sysFileMapper.getFileInfo(equModel.getDynModelFile()).getData();
if (dynModelFile != null) {
equModel.setDynModelFilePath(baseUrl + "/" + dynModelFile.getBucketName() + dynModelFile.getFilePath());
equModel.setDynModelFileName(dynModelFile.getFileName());
}
SysFile staModelFile = remoteSystemFileService.getFileInfo(equModel.getStaModelFile()).getData();
// SysFile staModelFile = remoteSystemFileService.getFileInfo(equModel.getStaModelFile()).getData();
SysFile staModelFile = sysFileMapper.getFileInfo(equModel.getStaModelFile()).getData();
if (staModelFile != null) {
equModel.setStaModelFilePath(baseUrl + "/" + staModelFile.getBucketName() + staModelFile.getFilePath());
equModel.setStaModelFileName(staModelFile.getFileName());
}
SysFile iconFile = remoteSystemFileService.getFileInfo(equModel.getIconFile()).getData();
// SysFile iconFile = remoteSystemFileService.getFileInfo(equModel.getIconFile()).getData();
SysFile iconFile = sysFileMapper.getFileInfo(equModel.getIconFile()).getData();
if (iconFile != null) {
equModel.setIconFilePath(baseUrl + "/" + iconFile.getBucketName() + iconFile.getFilePath());
equModel.setIconFileName(iconFile.getFileName());

View File

@ -67,8 +67,9 @@ public class MetasploitableServiceImpl implements IMetasploitableService
public Metasploitable selectMetasploitableById(Long id)
{
Metasploitable metasploitable = metasploitableMapper.selectMetasploitableById(id);
if (metasploitable != null) {
SysFile iconFile = remoteSystemFileService.getFileInfo(metasploitable.getPhoto()).getData();
if (metasploitable != null && metasploitable.getPhoto() != null) {
// SysFile iconFile = remoteSystemFileService.getFileInfo(metasploitable.getPhoto()).getData();
SysFile iconFile = sysFileMapper.getFileInfo(metasploitable.getPhoto()).getData();
if (iconFile != null) {
metasploitable.setPhotoFilePath(baseUrl + "/" + iconFile.getBucketName() + iconFile.getFilePath());
metasploitable.setPhotoFileName(iconFile.getFileName());