| | |
| | | package com.sandu.ximon.admin.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.sandu.common.domain.ResponseVO; |
| | | import com.sandu.common.execption.BusinessException; |
| | | import com.sandu.common.util.ResponseUtil; |
| | | import com.sandu.ximon.admin.param.C3mChargingChargeParam; |
| | | import com.sandu.ximon.admin.service.C3mChargingChargeService; |
| | | import com.sandu.ximon.dao.domain.C3mChargingCharge; |
| | | import lombok.AllArgsConstructor; |
| | |
| | | |
| | | /** |
| | | * 编辑充电桩费率 |
| | | * |
| | | * @param chargeEntities |
| | | * @return |
| | | */ |
| | |
| | | } |
| | | |
| | | |
| | | @GetMapping("/getChargeByC3Id/{c3mId}") //未同步文档 |
| | | /** |
| | | * 根据c3id获取充电桩费率 |
| | | * |
| | | * @param c3mId |
| | | * @return |
| | | */ |
| | | @GetMapping("/getChargeByC3Id/{c3mId}") |
| | | public ResponseVO<Object> getChargeByC3Id(@PathVariable Integer c3mId) { |
| | | return ResponseUtil.success(chargeService.getChargeByC3Id(c3mId)); |
| | | } |
| | | |
| | | @GetMapping("/getChargeByPoleId/{PoleId}") //为未同步文档 |
| | | /** |
| | | * 根据灯杆id获取费率 |
| | | * |
| | | * @param PoleId |
| | | * @return |
| | | */ |
| | | @GetMapping("/getChargeByPoleId/{PoleId}") |
| | | public ResponseVO<Object> getChargeByPoleId(@PathVariable Long PoleId) { |
| | | return ResponseUtil.success(chargeService.getChargeByPoleId(PoleId)); |
| | | } |
| | | |
| | | /** |
| | | * 根据充电桩mac获取当前时间段的费率 |
| | | */ |
| | | @GetMapping("/getChargeByMac/{mac}") |
| | | public ResponseVO<Object> getChargeByMac(@PathVariable Long mac, Integer power) { |
| | | return ResponseUtil.success(chargeService.getCostByC3id(mac, power)); |
| | | } |
| | | |
| | | |
| | | } |