5 changed files with 67 additions and 14 deletions
@ -0,0 +1,14 @@ |
|||||
|
package com.elink.esua.epdc.task.analysis; |
||||
|
|
||||
|
|
||||
|
public interface GridOpeningTask { |
||||
|
|
||||
|
/** |
||||
|
* @describe: 网格排行 |
||||
|
* @author wangtong |
||||
|
* @date 2021/8/24 14:50 |
||||
|
* @params [params] |
||||
|
* @return void |
||||
|
*/ |
||||
|
void run(String params); |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.elink.esua.epdc.task.analysis; |
||||
|
|
||||
|
import com.elink.esua.epdc.feign.AnalysisFeignClient; |
||||
|
import org.slf4j.Logger; |
||||
|
import org.slf4j.LoggerFactory; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
|
||||
|
@Component("GridOpeningTask") |
||||
|
public class GridOpeningTaskImpl implements GridOpeningTask { |
||||
|
|
||||
|
private Logger logger = LoggerFactory.getLogger(getClass()); |
||||
|
|
||||
|
@Autowired |
||||
|
private AnalysisFeignClient analysisFeignClient; |
||||
|
|
||||
|
@Override |
||||
|
public void run(String params){ |
||||
|
logger.debug("GridOpeningTask定时任务正在执行,参数为:{}", params); |
||||
|
analysisFeignClient.gridOpeningJob(); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue