[考勤对接]忽略保存file的appCode配置
This commit is contained in:
parent
28609963f2
commit
5ec56dd3ab
@ -875,9 +875,13 @@ public class FileServiceImpl implements FileService {
|
|||||||
return Lists.newArrayList();
|
return Lists.newArrayList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<SignUrlDownloadResponse> responseList = Lists.newArrayList();
|
||||||
|
|
||||||
List<File> fileList = fileDao.getByFileUuids(fileKeyList);
|
List<File> fileList = fileDao.getByFileUuids(fileKeyList);
|
||||||
|
//获取不在dbFile中,但是在默认axzo-obs-private中的key
|
||||||
|
responseList.addAll(fetchNoFileAndObsPrivate(fileKeys, fileList));
|
||||||
if (CollectionUtils.isEmpty(fileList)) {
|
if (CollectionUtils.isEmpty(fileList)) {
|
||||||
return Lists.newArrayList();
|
return responseList;
|
||||||
}
|
}
|
||||||
|
|
||||||
//通过appChannelBucketNo集合,获取文件渠道桶信息
|
//通过appChannelBucketNo集合,获取文件渠道桶信息
|
||||||
@ -887,9 +891,7 @@ public class FileServiceImpl implements FileService {
|
|||||||
List<FileBusinessScene> fileBusinessSceneList = fileBusinessSceneManager.queryByBucketNoAndScene(fileList.stream().map(File::getAppChannelBucketNo).collect(Collectors.toSet()), bizScene);
|
List<FileBusinessScene> fileBusinessSceneList = fileBusinessSceneManager.queryByBucketNoAndScene(fileList.stream().map(File::getAppChannelBucketNo).collect(Collectors.toSet()), bizScene);
|
||||||
Map<String, Long> bizSceneExpireMap = fileBusinessSceneList.stream().collect(Collectors.toMap(FileBusinessScene::getAppChannelBucketNo, FileBusinessScene::getDownloadExpiration, (x, y) -> y));
|
Map<String, Long> bizSceneExpireMap = fileBusinessSceneList.stream().collect(Collectors.toMap(FileBusinessScene::getAppChannelBucketNo, FileBusinessScene::getDownloadExpiration, (x, y) -> y));
|
||||||
//构建返回集合
|
//构建返回集合
|
||||||
List<SignUrlDownloadResponse> responseList = this.buildFileKeyRespByFile(fileList, bucketTypeMap, bizSceneExpireMap, style, hasFileName, expiration);
|
responseList.addAll(this.buildFileKeyRespByFile(fileList, bucketTypeMap, bizSceneExpireMap, style, hasFileName, expiration));
|
||||||
//获取不在dbFile中,但是在默认axzo-obs-private中的key
|
|
||||||
responseList.addAll(fetchNoFileAndObsPrivate(fileKeys, fileList));
|
|
||||||
return responseList;
|
return responseList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user