mirror of
https://gitee.com/wangkang/udf.git
synced 2026-10-21 09:05:12 +00:00
将被下载的文件,上传阿里云OSS的时候进行压缩,节省空间和流量
This commit is contained in:
-2
@@ -5,7 +5,6 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.redis.core.RedisTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
@@ -40,7 +39,6 @@ public class DownLoadProcessService {
|
||||
DownloadInfo info = new DownloadInfo();
|
||||
info.setId(id);
|
||||
info.setStatus(DownConstant.DOWNLOAD_PROCESS_STATUS.STATUS_1.value());
|
||||
info.setProcessInitDate(new Date());
|
||||
//更新缓存
|
||||
redisTemplate.opsForValue().set(key, info, DownLoadProcessAspect.DOWNLOAD_WAITING_CACHE_EXPIRATION, TimeUnit.MINUTES);
|
||||
//返回ID
|
||||
|
||||
-6
@@ -37,12 +37,6 @@ public class DownloadInfo {
|
||||
@ApiModelProperty(value = "阿里云OSS的objectKey", required = true, dataType = "string")
|
||||
private String objectKey;
|
||||
|
||||
/**
|
||||
* 初始化时间
|
||||
*/
|
||||
@ApiModelProperty(value = "初始化时间", required = true, dataType = "date")
|
||||
private Date processInitDate;
|
||||
|
||||
/**
|
||||
* processStartDate
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user