Browse Source

优化文件的list fileId

tags/24080901
PoffyZhang 1 year ago
parent
commit
b1f8c82c7e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/converter/ApplicationConverter.java

+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/converter/ApplicationConverter.java View File

@@ -190,7 +190,7 @@ public class ApplicationConverter {
JSONObject fJson = (JSONObject) JSON.toJSON(f);
Long fileId = fJson.getLong("id");
String fileName = fJson.getString("originalFileName");
Map<Long, String> fileMap = fileService.findUrlById(Arrays.asList(fileId));
Map<Long, String> fileMap = fileService.findUrlById(Lists.newArrayList(fileId));
String url = fileMap.get(fileId);
url = removeExpire(url);
FileDTO file = new FileDTO();


Loading…
Cancel
Save