联联平台 查询充电状态接口

This commit is contained in:
Lemon
2023-04-25 11:20:43 +08:00
parent 810c4381f4
commit c584ff91f4
5 changed files with 312 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ import com.jsowell.thirdparty.domain.StationStatsInfo;
import com.jsowell.thirdparty.service.LianLianService;
import com.jsowell.thirdparty.vo.EquipmentAuthVO;
import com.jsowell.thirdparty.vo.LianLianPageResponse;
import com.jsowell.thirdparty.vo.QueryChargingStatusVO;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -114,4 +115,25 @@ public class LianLianController extends BaseController {
logger.info("联联平台请求设备认证 result :{}", response);
return response;
}
/**
* 查询充电状态
* @param startChargeSeq
* @return
*/
@GetMapping("/query_equip_charge_status/{startChargeSeq}")
public RestApiResponse<?> query_equip_charge_status(@PathVariable("startChargeSeq") String startChargeSeq) {
logger.info("联联平台查询充电状态 params :{}", startChargeSeq);
RestApiResponse<?> response;
try {
QueryChargingStatusVO vo = lianLianService.query_equip_charge_status(startChargeSeq);
response = new RestApiResponse<>(vo);
} catch (Exception e) {
logger.error("联联平台查询充电状态 error", e);
response = new RestApiResponse<>(e);
}
logger.info("联联平台查询充电状态 result :{}", response);
return response;
}
}