[考勤对接]忽略保存file的appCode配置

This commit is contained in:
xudawei 2024-07-30 11:39:34 +08:00
parent 28609963f2
commit 5ec56dd3ab

View File

@ -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;
} }