package org.springnewfiber.dataadapter.ziguang.core; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import org.springnewfiber.dataadapter.ziguang.bz.action.BzAction; import org.springnewfiber.dataadapter.ziguang.gq.action.GqAction; import org.springnewfiber.dataadapter.ziguang.hd.action.HdAction; import org.springnewfiber.dataadapter.ziguang.hp.action.HpAction; import org.springnewfiber.dataadapter.ziguang.yl.action.YlAction; import org.springnewfiber.dataadapter.ziguang.zs.action.ZsAction; /** * @program: newfiber-data-adapter * @description: * @author: djt * @create: 2022-01-19 19:23 **/ //@Component @Slf4j @AllArgsConstructor public class ZiGuangDataJob { private final BzAction bzAction; private final GqAction gqAction; private final HdAction hdAction; private final HpAction hpAction; private final YlAction ylAction; private final ZsAction zsAction; // @Scheduled(cron = "0 0/1 * * * ?") public void synchronize() { bzAction.list(); gqAction.list(); hdAction.list(); hpAction.list(); // ylAction.list(); zsAction.list(); } }