| | |
| | | package com.sandu.ximon.admin.service; |
| | | |
| | | import cn.hutool.core.collection.ListUtil; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.sandu.common.domain.CommonPage; |
| | |
| | | chargingDto.setPoleId(pole.getId()); |
| | | //费率 |
| | | BigDecimal bigDecimal = SpringContextHolder.getBean(C3mChargingChargeService.class).getchargeDecimalByC3id(one.getC3Id()); |
| | | //已充电量 |
| | | chargingDto.setChargedCapacity(beatDataPackage.getChargedCapacity()); |
| | | //充电时长 |
| | | chargingDto.setAlreadyChargingTime(beatDataPackage.getAlreadyChargingTime()); |
| | | chargingDto.setRate(bigDecimal); |
| | | } |
| | | |
| | |
| | | if (order == null) { |
| | | throw new BusinessException("充电桩没有进行中的订单"); |
| | | } |
| | | if (!openId.equals(order.getOrderId())) { |
| | | if (!openId.equals(order.getUserCode())) { |
| | | throw new BusinessException("不能操作不属于您的订单"); |
| | | } |
| | | |