| | |
| | | @Scheduled(cron = "1 20 0/1 * * ?") |
| | | public void autoReceive() { |
| | | log.info("自动收货开始:" + DateFormatUtils.format(System.currentTimeMillis(), "yyyy-MM-dd HH:mm:ss")); |
| | | orderService.autoReceive(); |
| | | List<Order> ls = orderService.autoReceive(); |
| | | if(ls != null && ls.size() > 0){ |
| | | for(Order o : ls){ |
| | | orderService.processAfterReceive(o); |
| | | } |
| | | } |
| | | log.info("自动收货结束:" + DateFormatUtils.format(System.currentTimeMillis(), "yyyy-MM-dd HH:mm:ss")); |
| | | } |
| | | |
| | |
| | | for(Transfer t : ls){ |
| | | try { |
| | | paymentV3Service.checkTransferStatus(t); |
| | | settlementService.updateSettlementStatus(t.getId()); |
| | | } catch (Exception e) { |
| | | log.error(e.getMessage(), e); |
| | | } |