| | |
| | | R r = chargingOrderService.endChargeBillingCharge(vo); |
| | | log.info("定时任务执行,停止中的订单处理结果:{}", JSON.toJSONString(r)); |
| | | }else{ |
| | | // endOrder(order); |
| | | endOrder(order); |
| | | } |
| | | } |
| | | //处理状态为充电中,但硬件已完成的订单 |
| | |
| | | chargingOrderService.updateById(order); |
| | | |
| | | order = chargingOrderService.getById(order.getId()); |
| | | |
| | | Site site = siteClient.getSiteByIds(Arrays.asList(order.getSiteId())).getData().get(0); |
| | | //推送三方平台 |
| | | if (2 == order.getOrderSource()) { |
| | | if (2 == order.getOrderSource() && 1 == site.getIsOpenSynchronization()) { |
| | | TChargingOrder finalChargingOrder = order; |
| | | new Thread(new Runnable() { |
| | | @Override |
| | |
| | | chargingGunClient.updateChargingGunById(chargingGun); |
| | | chargingGun = chargingGunClient.getChargingGunById(order.getChargingGunId()).getData(); |
| | | //推送状态给三方平台 |
| | | if (2 == order.getOrderSource()) { |
| | | if (2 == order.getOrderSource() && 1 == site.getIsOpenSynchronization()) { |
| | | tcecClient.pushChargingGunStatus(chargingGun.getFullNumber(), 2); |
| | | } |
| | | |