| package com.doumee.timer; | 
|   | 
| import com.doumee.core.utils.DateUtil; | 
| import com.doumee.service.business.CustomerUserService; | 
| import com.doumee.service.business.InitService; | 
| import org.apache.commons.lang3.StringUtils; | 
| import org.slf4j.Logger; | 
| import org.slf4j.LoggerFactory; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.stereotype.Component; | 
|   | 
| import java.lang.reflect.Method; | 
|   | 
| /** | 
|  * @author 定时获取志邦客户绑定导购集合数据 | 
|  * @since 2023-07-26 11:44 | 
|  */ | 
| @Component("customerBindDaogou") | 
| public class CustomerUserUpdateBiz implements JobService { | 
|     private static final Logger log = LoggerFactory.getLogger(CustomerUserUpdateBiz.class); | 
|   | 
|     @Autowired | 
|     CustomerUserService customerUserService; | 
|     @Override | 
|     public void run(String params,String module) { | 
|         Method method = null; | 
|         try { | 
|             if(StringUtils.equals(module,"syncYesterday")){ | 
|                 String date = DateUtil.getYesterday(); | 
|                 customerUserService.syncYesterday(date); | 
|             }else{ | 
|                 log.info("\n ======== 定时任务已执行:zbomRedisResut.========"+module); | 
|             } | 
|         } catch (Exception e) { | 
|            e.printStackTrace(); | 
|         } | 
|     } | 
|   | 
| } |