|
@@ -131,15 +131,15 @@ public class CaseDownService {
|
|
|
|
|
|
public DownVo checkDown(Integer caseId) {
|
|
public DownVo checkDown(Integer caseId) {
|
|
DownVo downVo = new DownVo();
|
|
DownVo downVo = new DownVo();
|
|
- String redisKey = String.format(downProcessKey, caseId);
|
|
|
|
- if( redisUtil.hasKey(redisKey)){
|
|
|
|
- String res = redisUtil.get(redisKey);
|
|
|
|
- DownloadProcessVo downloadProcessVo = JSONObject.parseObject(res, DownloadProcessVo.class);
|
|
|
|
- if(downloadProcessVo.getStatus() == 1000 && downloadProcessVo.getPercent() == 100 && StringUtils.isNotBlank(downloadProcessVo.getUrl())){
|
|
|
|
- downVo.setDownloadStatus(3);
|
|
|
|
- downVo.setDownloadUrl(downloadProcessVo.getUrl());
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+// String redisKey = String.format(downProcessKey, caseId);
|
|
|
|
+// if( redisUtil.hasKey(redisKey)){
|
|
|
|
+// String res = redisUtil.get(redisKey);
|
|
|
|
+// DownloadProcessVo downloadProcessVo = JSONObject.parseObject(res, DownloadProcessVo.class);
|
|
|
|
+// if(downloadProcessVo.getStatus() == 1000 && downloadProcessVo.getPercent() == 100 && StringUtils.isNotBlank(downloadProcessVo.getUrl())){
|
|
|
|
+// downVo.setDownloadStatus(3);
|
|
|
|
+// downVo.setDownloadUrl(downloadProcessVo.getUrl());
|
|
|
|
+// }
|
|
|
|
+// }
|
|
return downVo;
|
|
return downVo;
|
|
}
|
|
}
|
|
|
|
|