parent
1a868ebc34
commit
4860d72af6
|
@ -1,7 +1,6 @@
|
||||||
package io.metersphere.metadata.service;
|
package io.metersphere.metadata.service;
|
||||||
|
|
||||||
import com.alibaba.nacos.common.utils.ByteUtils;
|
import com.alibaba.nacos.common.utils.ByteUtils;
|
||||||
import groovy.lang.Lazy;
|
|
||||||
import io.metersphere.base.domain.*;
|
import io.metersphere.base.domain.*;
|
||||||
import io.metersphere.base.mapper.FileAssociationMapper;
|
import io.metersphere.base.mapper.FileAssociationMapper;
|
||||||
import io.metersphere.base.mapper.FileContentMapper;
|
import io.metersphere.base.mapper.FileContentMapper;
|
||||||
|
@ -58,10 +57,13 @@ public class FileMetadataService {
|
||||||
@Resource
|
@Resource
|
||||||
private FileAssociationMapper fileAssociationMapper;
|
private FileAssociationMapper fileAssociationMapper;
|
||||||
|
|
||||||
@Lazy
|
|
||||||
@Resource
|
|
||||||
private TemporaryFileUtil temporaryFileUtil;
|
private TemporaryFileUtil temporaryFileUtil;
|
||||||
|
|
||||||
|
public FileMetadataService() {
|
||||||
|
super();
|
||||||
|
temporaryFileUtil = new TemporaryFileUtil(TemporaryFileUtil.MS_FILE_FOLDER);
|
||||||
|
}
|
||||||
|
|
||||||
public List<FileMetadata> create(FileMetadataCreateRequest fileMetadata, List<MultipartFile> files) {
|
public List<FileMetadata> create(FileMetadataCreateRequest fileMetadata, List<MultipartFile> files) {
|
||||||
List<FileMetadata> result = new ArrayList<>();
|
List<FileMetadata> result = new ArrayList<>();
|
||||||
if (fileMetadata == null) {
|
if (fileMetadata == null) {
|
||||||
|
@ -612,7 +614,6 @@ public class FileMetadataService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void downloadByAttachmentBodyFileList(List<AttachmentBodyFile> downloadFileList) {
|
public void downloadByAttachmentBodyFileList(List<AttachmentBodyFile> downloadFileList) {
|
||||||
|
|
||||||
LogUtil.info(JSON.toJSONString(downloadFileList) + " 获取执行文件开始");
|
LogUtil.info(JSON.toJSONString(downloadFileList) + " 获取执行文件开始");
|
||||||
List<FileRequest> downloadFileRequest = new ArrayList<>();
|
List<FileRequest> downloadFileRequest = new ArrayList<>();
|
||||||
downloadFileList.forEach(attachmentBodyFile -> {
|
downloadFileList.forEach(attachmentBodyFile -> {
|
||||||
|
|
Loading…
Reference in New Issue