将被下载的文件,上传阿里云OSS的时候进行压缩,节省空间和流量

This commit is contained in:
wangkang
2017-12-19 18:13:45 +08:00
parent 46ea4b8a2c
commit bb655170d6
2 changed files with 0 additions and 8 deletions
@@ -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
@@ -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
*/