| | |
| | | /** |
| | | * 持久化销售订单 |
| | | */ |
| | | @Scheduled(cron = "0/45 * * * * ? ") |
| | | @Scheduled(cron = "0/5 * * * * ? ") |
| | | @Transactional |
| | | // @PostConstruct |
| | | public void getOrdersExecute(){ |
| | |
| | | // .ne("bType_id", data.getBTypeID()) |
| | | ) > 0) { |
| | | // log.error("{}单号已存在", data.getNumber()); |
| | | complete = false; |
| | | // complete = false; |
| | | continue; |
| | | } |
| | | for (GetOrderResultDetl0 detl0 : data.getDetail()) { |
| | |
| | | detl0.getQty(), // 商品数量 |
| | | detl0.getQty(), // 总数量 |
| | | detl0.getPrice(), // 商品单价 |
| | | detl0.getRowNo(), // 商品明细行号 |
| | | detl0.getComment(), // 商品备注[非空] |
| | | 0, // 状态 |
| | | now, // 添加时间 |
| | |
| | | /** |
| | | * 库存上传 |
| | | */ |
| | | @Scheduled(cron = "0/15 * * * * ? ") |
| | | // @Scheduled(cron = "0/15 * * * * ? ") |
| | | @GetMapping("test2") |
| | | public void uploadStockExecute(){ |
| | | try { |