| | |
| | | import com.vci.ubcs.code.service.ICodeDuckingSyncService; |
| | | import com.vci.ubcs.code.service.UniversalInterfaceI; |
| | | import com.vci.ubcs.starter.web.enumpck.BooleanEnum; |
| | | import io.swagger.annotations.Scope; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.PostConstruct; |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | |
| | | } |
| | | |
| | | //默认每十分钟执行方法 |
| | | @Scheduled(cron = "${dataSyncPush.cronTime:0 0/10 * * * ?}") |
| | | @Scheduled(cron = "${erp.item.cronTime:0 0/10 * * * ?}") |
| | | public void scheduled() { |
| | | log.info("执行从ERP项目代号/型号代号数据 start:"); |
| | | log.info("执行主数据集成数据推送 end: "+ "开关是否开启:" +ERP_ITEM_ISSTARE); |