5 changed files with 171 additions and 1 deletions
@ -0,0 +1,21 @@ |
|||
package com.elink.esua.epdc.task.screen; |
|||
|
|||
|
|||
/** |
|||
* @describe: 大屏展示推送数据接口-每5分钟推送一次 |
|||
* @author wangtong |
|||
* @date 2020/8/24 13:54 |
|||
*/ |
|||
public interface PushDataEveryFiveMinTask { |
|||
|
|||
/** |
|||
* @describe: 大屏数据推送 |
|||
* @author wangtong |
|||
* @date 2020/8/24 13:55 |
|||
* @params [] |
|||
* @return void |
|||
*/ |
|||
void run(); |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,73 @@ |
|||
package com.elink.esua.epdc.task.screen; |
|||
|
|||
import com.elink.esua.epdc.feign.AnalysisFeignClint; |
|||
import org.slf4j.Logger; |
|||
import org.slf4j.LoggerFactory; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @program: esua-epdc |
|||
* @description: 大屏展示推送数据-每5分钟 |
|||
* @author: wangtong |
|||
* @create: 2020-08-24 13:45 |
|||
**/ |
|||
@Component("pushDataEveryFiveMinTask") |
|||
public class PushDataEveryFiveMinTaskImpl implements PushDataEveryFiveMinTask { |
|||
|
|||
private Logger logger = LoggerFactory.getLogger(getClass()); |
|||
|
|||
@Autowired |
|||
private AnalysisFeignClint analysisFeignClint; |
|||
|
|||
@Override |
|||
public void run() { |
|||
|
|||
} |
|||
|
|||
|
|||
public void cpcbasedata() { |
|||
//方法名
|
|||
String methodName = Thread.currentThread().getStackTrace()[2].getMethodName(); |
|||
logger.info("<"+methodName+"|党员基本情况>定时任务开始执行"); |
|||
analysisFeignClint.cpcbasedata(); |
|||
logger.info("<"+methodName+"|党员基本情况>定时任务执行结束"); |
|||
} |
|||
|
|||
|
|||
public void eventdata() { |
|||
//方法名
|
|||
String methodName = Thread.currentThread().getStackTrace()[2].getMethodName(); |
|||
logger.info("<"+methodName+"|事件数据>定时任务开始执行"); |
|||
analysisFeignClint.eventdata(); |
|||
logger.info("<"+methodName+"|事件数据>定时任务执行结束"); |
|||
} |
|||
|
|||
|
|||
public void partylinkmassesdata() { |
|||
//方法名
|
|||
String methodName = Thread.currentThread().getStackTrace()[2].getMethodName(); |
|||
logger.info("<"+methodName+"|党建引领-党员联系群众数据>定时任务开始执行"); |
|||
analysisFeignClint.partylinkmassesdata(); |
|||
logger.info("<"+methodName+"|党建引领-党员联系群众数据>定时任务执行结束"); |
|||
} |
|||
|
|||
|
|||
public void pioneerdata() { |
|||
//方法名
|
|||
String methodName = Thread.currentThread().getStackTrace()[2].getMethodName(); |
|||
logger.info("<"+methodName+"|党建引领-先锋模范数据>定时任务开始执行"); |
|||
analysisFeignClint.pioneerdata(); |
|||
logger.info("<"+methodName+"|党建引领-先锋模范数据>定时任务执行结束"); |
|||
} |
|||
|
|||
|
|||
public void usertotaldata() { |
|||
//方法名
|
|||
String methodName = Thread.currentThread().getStackTrace()[2].getMethodName(); |
|||
logger.info("<"+methodName+"|中央区各类总数>定时任务开始执行"); |
|||
analysisFeignClint.usertotaldata(); |
|||
logger.info("<"+methodName+"|中央区各类总数>定时任务执行结束"); |
|||
} |
|||
|
|||
} |
|||
Loading…
Reference in new issue