| | |
| | | @RestController |
| | | public class ErpScheduler { |
| | | |
| | | public static final String URI = "http://8.133.182.21:6220/api"; |
| | | public static final String URI = "http://123.60.34.127:6220/api"; |
| | | public static final String GET_ORDERS = "cM/basis/getOrders"; |
| | | public static final String GET_BASIS = "cM/basis/getBasis"; |
| | | public static final String UPLOAD_BILL = "cM/basis/uploadBill"; |
| | |
| | | /** |
| | | * 商品下载 |
| | | */ |
| | | @Scheduled(cron = "0/5 * * * * ? ") |
| | | @Scheduled(cron = "0 */2 * * * ? ") |
| | | public void updateMatExecute(){ |
| | | try { |
| | | Map<String, Object> param = new HashMap<>(); |
| | |
| | | /** |
| | | * 持久化销售订单 |
| | | */ |
| | | @Scheduled(cron = "0/5 * * * * ? ") |
| | | @Scheduled(cron = "0 */1 * * * ?") |
| | | @Transactional |
| | | // @PostConstruct |
| | | public void getOrdersExecute(){ |