| | |
| | | System.out.println("设置费率开始"); |
| | | C3mCharging c3mCharging1 = getOne(Wrappers.lambdaQuery(C3mCharging.class).eq(C3mCharging::getMcuUdid, mcuUdid).last("limit 1")); |
| | | List<C3mChargingCharge> list = c3mChargingChargeService.list(Wrappers.lambdaQuery(C3mChargingCharge.class).eq(C3mChargingCharge::getC3Id, c3mCharging1.getC3Id())); |
| | | if (list == null && list.size() == 0) {//费率表中没有此充电桩数据时 添加默认费率 |
| | | if (list == null || list.size() == 0) {//费率表中没有此充电桩数据时 添加默认费率 |
| | | c3mChargingChargeService.initCharge((c3mCharging1.getC3Id()).intValue()); |
| | | } |
| | | String rateState = setRate(newC3Mac, list, true); |
| | |
| | | |
| | | /** |
| | | * 结束充电 |
| | | * |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public String finishCharging(Long c3Id, String openId) { |
| | |
| | | |
| | | /** |
| | | * 软重启 |
| | | * |
| | | */ |
| | | public String restartCharging(Long c3Id) { |
| | | C3mCharging one = getById(c3Id); |
| | |
| | | * 添加充电桩 日志记录结束 |
| | | */ |
| | | |
| | | return |
| | | |
| | | save(c3mCharging); |
| | | return save(c3mCharging); |
| | | |
| | | } |
| | | |