|
@@ -13,6 +13,7 @@ import com.fdkankan.manage.service.IDownService;
|
|
|
import com.fdkankan.manage.task.ThreadBussService;
|
|
|
import com.fdkankan.rabbitmq.util.RabbitMqProducer;
|
|
|
import com.fdkankan.redis.util.RedisUtil;
|
|
|
+import lombok.Data;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.annotation.Lazy;
|
|
@@ -54,6 +55,9 @@ public class OverallService {
|
|
|
|
|
|
if(redisUtil.hasKey(redisKey)){
|
|
|
WorkOfflineDTO dto = JSONObject.parseObject(redisUtil.get(redisKey),WorkOfflineDTO.class);
|
|
|
+ if(dto.getProgress() == 100){
|
|
|
+ redisUtil.del(redisKey);
|
|
|
+ }
|
|
|
return dto;
|
|
|
}
|
|
|
|