| | |
| | | /** |
| | | * 持久化销售订单 |
| | | */ |
| | | @Scheduled(cron = "0/5 * * * * ? ") |
| | | @Scheduled(cron = "0/45 * * * * ? ") |
| | | @Transactional |
| | | // @PostConstruct |
| | | public void getOrdersExecute(){ |
| | |
| | | .build() |
| | | .doPost(); |
| | | if (!Cools.isEmpty(response)) { |
| | | log.info(response); |
| | | // log.info(response); |
| | | Date now = new Date(); |
| | | Result result = JSON.parseObject(response, Result.class); |
| | | if (result.getCode() != 1) { |
| | |
| | | // .ne("bType_id", data.getBTypeID()) |
| | | ) > 0) { |
| | | log.error("{}单号已存在", data.getNumber()); |
| | | complete = false; |
| | | continue; |
| | | } |
| | | for (GetOrderResultDetl0 detl0 : data.getDetail()) { |