Commit dc7c59bf authored by super_liu's avatar super_liu

feat: 天友相关添加进度显示 添加文件大小字段

parent de44a37c
......@@ -1928,6 +1928,10 @@ public class BnsProjectController {
bnsFileImgDto.setFileType(fileImg.getFileType());
bnsFileImgDto.setFileOrder(fileImg.getFileOrder());
bnsFileImgDto.setFileName(fileImg.getFileName());
File file = new File(filePath);
if (file.exists()) {
bnsFileImgDto.setFileSize(file.length());
}
fileImgDtos.add(bnsFileImgDto);
}
projectQueryDto.setFileTyList(fileImgDtos);
......@@ -2573,7 +2577,7 @@ public class BnsProjectController {
}
bnsFile.setParentId(projectId);
bnsFile.setFileType(1);
bnsFile.setFileType(4);
bnsFile.setFileOrder(bnsFile.getFileOrder());
fileImgs.add(bnsFile);
}
......@@ -2694,6 +2698,13 @@ public class BnsProjectController {
public static void main(String[] args) {
File file = new File("D:/realFile/2020-08-01/project/ty/bcd0ef30c03049e1b5d6b81969d80da4.gz");
if (!file.exists()) {
new RuntimeException("文件不存在");
}
System.out.println(file.length());
List<RegionProductResultDto> ss = new ArrayList<>();
RegionProductResultDto a = new RegionProductResultDto();
......
......@@ -45,5 +45,7 @@ public class BnsFileImgDto extends IdEntity {
private String fileName;
private Long fileSize;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment