4 changed files with 63 additions and 1 deletions
@ -0,0 +1,17 @@ |
|||||
|
package com.elink.esua.epdc.task.epimedic; |
||||
|
|
||||
|
/** |
||||
|
* @Author:wangtong |
||||
|
* @Date:2022/1/12 11:01 |
||||
|
*/ |
||||
|
public interface UserInfoTask { |
||||
|
|
||||
|
/** |
||||
|
* @describe: 向县平台推送更新的人员数据 |
||||
|
* @author wangtong |
||||
|
* @date 2022/1/12 13:53 |
||||
|
* @params [params] |
||||
|
* @return void |
||||
|
*/ |
||||
|
void run(String params); |
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
package com.elink.esua.epdc.task.epimedic.impl; |
||||
|
|
||||
|
import com.elink.esua.epdc.feign.AnalysisFeignClient; |
||||
|
import com.elink.esua.epdc.task.epimedic.UserInfoTask; |
||||
|
import org.slf4j.Logger; |
||||
|
import org.slf4j.LoggerFactory; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* @Author:wangtong |
||||
|
* @Date:2022/1/12 11:01 |
||||
|
*/ |
||||
|
@Component("UserInfoTask") |
||||
|
public class UserInfoTaskImpl implements UserInfoTask { |
||||
|
|
||||
|
private Logger logger = LoggerFactory.getLogger(getClass()); |
||||
|
|
||||
|
@Autowired |
||||
|
private AnalysisFeignClient analysisFeignClient; |
||||
|
|
||||
|
@Override |
||||
|
public void run(String params){ |
||||
|
logger.debug("UserInfoTask定时任务正在执行"); |
||||
|
analysisFeignClient.syncUser(); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue