|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Transactional(rollbackFor = Throwable.class) | 
|---|
|  |  |  | @Scheduled(cron = "${erp.refreshtime}") | 
|---|
|  |  |  | //@Scheduled(cron = "${erp.refreshtime}") | 
|---|
|  |  |  | public void InCancelScheduler() { | 
|---|
|  |  |  | //log.info("InCancelScheduler开始了"); | 
|---|
|  |  |  | if (!erpEnabled) return; | 
|---|
|  |  |  | String sqlInCancelTB = "select * from erp_OutCancelTB where LKName='中扬二期'"; | 
|---|
|  |  |  | String sqlInCancelTB = "select * from erp_OutCancelTB where LKName='高霖立库'"; | 
|---|
|  |  |  | List<OutCancelTB> ins = erpSqlServer.select(sqlInCancelTB, OutCancelTB.class); | 
|---|
|  |  |  | for (OutCancelTB in : ins) { | 
|---|
|  |  |  | com.zy.third.lk.entity.InCancelTB lkCancel = inMS.tryCancel(in.getBillNo()); | 
|---|