|
@@ -1,40 +0,0 @@
|
|
|
-package com.fdkankan.fusion.task;
|
|
|
-
|
|
|
-import com.fdkankan.fusion.common.util.DateUtils;
|
|
|
-import com.fdkankan.fusion.entity.CaseLive;
|
|
|
-import com.fdkankan.fusion.entity.CommonUpload;
|
|
|
-import com.fdkankan.fusion.service.ICaseLiveService;
|
|
|
-import com.fdkankan.fusion.service.ICommonUploadService;
|
|
|
-import com.fdkankan.redis.util.RedisUtil;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.scheduling.annotation.Scheduled;
|
|
|
-import org.springframework.stereotype.Service;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-
|
|
|
-import javax.annotation.PostConstruct;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Set;
|
|
|
-
|
|
|
-import static com.fdkankan.fusion.down.CaseDownService.downProcessKey;
|
|
|
-
|
|
|
-@Service
|
|
|
-public class TaskService {
|
|
|
-
|
|
|
- @Autowired
|
|
|
- ICaseLiveService caseLiveService;
|
|
|
-
|
|
|
-
|
|
|
- @Autowired
|
|
|
- RedisUtil redisUtil;
|
|
|
- //@PostConstruct
|
|
|
- public void cleanRedisKey(){
|
|
|
- String redisKey = String.format(downProcessKey, "*");
|
|
|
- Set<String> keys = redisUtil.keys(redisKey);
|
|
|
- if(keys != null && !keys.isEmpty()){
|
|
|
- for (String key : keys) {
|
|
|
- redisUtil.del(key);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-}
|