|
@@ -1,5 +1,6 @@
|
|
|
package com.gis.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import com.gis.common.constant.CmdConstant;
|
|
|
import com.gis.common.constant.ConfigConstant;
|
|
|
import com.gis.common.constant.PathConstant;
|
|
@@ -27,9 +28,15 @@ public class AliOssServiceImpl implements AliOssService {
|
|
|
|
|
|
|
|
|
@Override
|
|
|
- public Result batchDownload(List<String> code, String bucket) {
|
|
|
+ public Result batchDownload(List<String> code, String bucket, String workId) {
|
|
|
log.info("输入场景码数量: {}", code.size());
|
|
|
- String outPath = configConstant.serverBasePath + "720yun_" + StrUtils.getTimeStr();
|
|
|
+ String dir ;
|
|
|
+ if (StrUtil.isBlank(workId)){
|
|
|
+ dir = "720yun_" + StrUtils.getTimeStr();
|
|
|
+ } else {
|
|
|
+ dir = "720yun_" + workId + "_" + StrUtils.getTimeStr();
|
|
|
+ }
|
|
|
+ String outPath = configConstant.serverBasePath + dir;
|
|
|
log.info("下载目录: {}", outPath);
|
|
|
int i = 1;
|
|
|
for (String sceneCode : code) {
|