Commit 1c1dd02a authored by yajun.zhang's avatar yajun.zhang

优化

parent 1d332f44
...@@ -224,7 +224,7 @@ public class ThirdWorkOrderServiceImpl implements IThirdWorkOrderService { ...@@ -224,7 +224,7 @@ public class ThirdWorkOrderServiceImpl implements IThirdWorkOrderService {
String key = "export_"+account ; String key = "export_"+account ;
String value = (String)redisTemplate.opsForValue().get(key); String value = (String)redisTemplate.opsForValue().get(key);
if (StringUtils.isNotBlank(value)){ if (StringUtils.isNotBlank(value)){
return JsonResult.buildErrorStateResult("系统导出处理中,请勿重复下载"); return JsonResult.buildSuccessResult("系统导出处理中,请勿重复下载","");
} }
redisTemplate.opsForValue().set(key,"lock",1, TimeUnit.MINUTES); redisTemplate.opsForValue().set(key,"lock",1, TimeUnit.MINUTES);
executorService.execute(()->{ executorService.execute(()->{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment