|
@@ -88,10 +88,7 @@ public class AppFileServiceImpl extends ServiceImpl<IAppFileMapper, AppFile> imp
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public List<String> agentList(String agentName) {
|
|
public List<String> agentList(String agentName) {
|
|
- LambdaQueryWrapper<AppFile> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
- wrapper.like(AppFile::getAgent,agentName);
|
|
|
|
- List<AppFile> list = this.list(wrapper);
|
|
|
|
- return list.parallelStream().map(AppFile::getAgent).distinct().collect(Collectors.toList());
|
|
|
|
|
|
+ return mangeUploadToOssUtil.listKeys(FilePath.appOssPath);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -120,7 +117,7 @@ public class AppFileServiceImpl extends ServiceImpl<IAppFileMapper, AppFile> imp
|
|
|
|
|
|
String fileType = param.getName().substring(param.getName().lastIndexOf(".")+1);
|
|
String fileType = param.getName().substring(param.getName().lastIndexOf(".")+1);
|
|
|
|
|
|
- String ossPathPrefix = "apps/customApp/" + param.getAgent() + "/"+param.getAppType()+"/";
|
|
|
|
|
|
+ String ossPathPrefix = FilePath.appOssPath + param.getAgent() + "/"+param.getAppType()+"/";
|
|
|
|
|
|
mangeUploadToOssUtil.upload(param.getFileServerType(),filePath, ossPathPrefix+"4dkankan."+fileType);
|
|
mangeUploadToOssUtil.upload(param.getFileServerType(),filePath, ossPathPrefix+"4dkankan."+fileType);
|
|
// 上传到 历史记录文件夹目录
|
|
// 上传到 历史记录文件夹目录
|