| | |
| | | package cn.gistack.job.executor.jobhandler; |
| | | |
| | | import cn.gistack.sm.sjztmd.feign.IAttResManagePersonClient; |
| | | import cn.gistack.system.user.feign.IUserClient; |
| | | import com.xxl.job.core.biz.model.ReturnT; |
| | | import com.xxl.job.core.handler.annotation.XxlJob; |
| | | import com.xxl.job.core.log.XxlJobLogger; |
| | |
| | | @Autowired |
| | | private IAttResManagePersonClient attResManagePersonClient; |
| | | |
| | | @Autowired |
| | | private IUserClient userClient; |
| | | |
| | | /** |
| | | * 用户同步调度器 |
| | | * @return |
| | |
| | | return ReturnT.SUCCESS; |
| | | } |
| | | |
| | | /** |
| | | * 用户同步调度器 |
| | | * @return |
| | | */ |
| | | @XxlJob("encryptUserJobHandler") |
| | | public ReturnT<String> encryptUser(String param) { |
| | | XxlJobLogger.log("开始更新用户数据"); |
| | | |
| | | String message = userClient.encryptUser(); |
| | | XxlJobLogger.log(message); |
| | | XxlJobLogger.log("结束更新用户数据"); |
| | | return ReturnT.SUCCESS; |
| | | } |
| | | |
| | | } |