瀏覽代碼

优化文件的list fileId

tags/24080901
PoffyZhang 1 年之前
父節點
當前提交
b1f8c82c7e
共有 1 個檔案被更改,包括 1 行新增1 行删除
  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 查看文件

@@ -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…
取消
儲存