| | |
| | | @Slf4j |
| | | @Component |
| | | public class ERPInCancelScheduler { |
| | | |
| | | @Value("${erp.enabled}") |
| | | private Boolean erpEnabled; |
| | | |
| | | |
| | | @Autowired |
| | | private ERPInCancelSchedulerMS inMS; |
| | |
| | | private ErpSqlServer erpSqlServer; |
| | | |
| | | @Scheduled(cron = "${erp.refreshtime}") |
| | | public void itemScheduler() { |
| | | public void InCancelScheduler() { |
| | | log.info("InCancelScheduler开始了"); |
| | | if (!erpEnabled) return; |
| | | String sqlInCancelTB = "select * from erp_InCancelTB where LKName='中扬二期'"; |
| | | List<InCancelTB> ins = erpSqlServer.select(sqlInCancelTB, InCancelTB.class); |
| | | for (InCancelTB in : ins) { |
| | | System.out.println(in); |
| | | com.zy.third.lk.entity.InCancelTB lkCancel = inMS.tryCancel(in); |
| | | if (lkCancel != null) { |
| | | HashMap<String, String> condition = new HashMap<>(); |