jiangping
2024-07-12 2ce20c4dd9df60435afe5e6820103a37cf7f684a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.doumee.timer;
 
import com.doumee.biz.zbom.ZbomIAMService;
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("zbomDictDataTask")
public class ZbomRedisResetBiz implements JobService {
    private static final Logger log = LoggerFactory.getLogger(ZbomRedisResetBiz.class);
 
    @Autowired
    InitService initService;
    @Override
    public void run(String params,String module) {
        Method method = null;
        try {
            if(StringUtils.equals(module,"refreshZbomDictDataCache")){
                initService.refreshZbomDictDataCache();
            }else  if(StringUtils.equals(module,"orgInit")){
 
            }else
                log.info("\n ======== 定时任务已执行:zbomRedisResut.========"+module);
        } catch (Exception e) {
           e.printStackTrace();
        }
    }
 
}