路泰机电科技体检——数据平台后端
zhaowenxuan
2024-07-01 128ae5f2be7d19610c55998dd9202fc1b8e239ca
使用新的字典同步工具类
1个文件已修改
16 ■■■■■ 已修改文件
src/main/java/com/example/scheudleds/DictSync.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/example/scheudleds/DictSync.java
@@ -1,6 +1,7 @@
package com.example.scheudleds;
import com.example.utils.DictionaryUtil;
import com.example.utils.DictionaryUtilNew;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -18,6 +19,8 @@
public class DictSync {
    @Autowired
    private DictionaryUtil dictionaryUtil;
    @Autowired
    private DictionaryUtilNew dictionaryUtilNew;
    /**
     * 字典同步
@@ -30,11 +33,12 @@
            fileWriter.write("");
            fileWriter.close();
        } catch (IOException ignored) {}
        try {
            dictionaryUtil.exec1();
        } catch (IOException e) {
            log.error("定时任务异常");
            e.printStackTrace();
        }
//        try {
//            dictionaryUtil.exec1();
//        } catch (IOException e) {
//            log.error("定时任务异常");
//            e.printStackTrace();
//        }
        dictionaryUtilNew.exec1();
    }
}