2021与蓝度共同重构项目,服务端
liuhaonan
2022-06-29 fa0926b8af58237ca80ae95da43d29188d20b0b8
ximon-admin/src/main/java/com/sandu/ximon/admin/controller/C3ChargingController.java
@@ -1,6 +1,7 @@
package com.sandu.ximon.admin.controller;
import com.sandu.common.domain.ResponseVO;
import com.sandu.common.execption.BusinessException;
import com.sandu.common.object.BaseConditionVO;
import com.sandu.common.util.ResponseUtil;
import com.sandu.ximon.admin.param.C3ChargingAddParam;
@@ -34,9 +35,9 @@
        return ResponseUtil.successPage(c3ChargingService.getC3ChargingListByKeyword(baseConditionVO, c3ChargingParam));
    }
    @PostMapping("/getByC3Mac/{c3Mac}")
    public ResponseVO<Object> getByC3Mac(String c3Mac) {
        return ResponseUtil.success(c3ChargingService.getByC3Mac(c3Mac));
    @GetMapping("/chargingInfo")
    public ResponseVO<Object> getChargingInfo(@RequestParam(required = false, value = "poleId") String poleId) {
        return ResponseUtil.success(c3ChargingService.getChargingInfo(poleId));
    }
    /**
@@ -56,7 +57,7 @@
    /**
     * 充电结束
     */
    @PostMapping("/finishCharging")
        @PostMapping("/finishCharging")
    public ResponseVO<Object> finishCharging(@RequestBody C3ChargingParam c3ChargingParam) {
        String result = c3ChargingService.finishCharging(c3ChargingParam.getC3Mac());
@@ -86,6 +87,7 @@
     */
    @PostMapping("/QrCode")
    public ResponseVO<Object> QrCode(@RequestBody C3ChargingParam c3ChargingParam) {
        //String testUrl = "http://www.ximonsmart.com/charge/#/charge/" +streetlightId+"/"+System.currentTimeMillis();
        String result = c3ChargingService.QrCode(c3ChargingParam.getC3Mac(), c3ChargingParam.getQrCodeData());
        if ("操作成功".equals(result)) {
@@ -247,6 +249,7 @@
    /**
     * 修改充电桩硬件设备名称
     *
     * @param c3ChargingAddParam
     * @return
     */