|
@@ -43,8 +43,14 @@ public class ChargerController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private EnNotifyService enNotifyService;
|
|
private EnNotifyService enNotifyService;
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 充电中列表
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param pageNum
|
|
|
|
|
+ * @param pageSize
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
@SneakyThrows
|
|
@SneakyThrows
|
|
|
- @ApiLog("充电站列表")
|
|
|
|
|
@GetMapping("/listStation")
|
|
@GetMapping("/listStation")
|
|
|
R listChargeStation(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) {
|
|
R listChargeStation(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) {
|
|
|
// 请求en+接口
|
|
// 请求en+接口
|
|
@@ -52,7 +58,12 @@ public class ChargerController {
|
|
|
return R.success(response);
|
|
return R.success(response);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiLog("充电站状态")
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 充电站状态
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param ids
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
@GetMapping("/stationStatus")
|
|
@GetMapping("/stationStatus")
|
|
|
R stationStatus(@RequestParam("stationIds") String ids) {
|
|
R stationStatus(@RequestParam("stationIds") String ids) {
|
|
|
// 请求en+接口
|
|
// 请求en+接口
|
|
@@ -78,19 +89,33 @@ public class ChargerController {
|
|
|
return R.success();
|
|
return R.success();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiLog("查询充电状态")
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 查询充电状态
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
@GetMapping("/chargeStatus")
|
|
@GetMapping("/chargeStatus")
|
|
|
R<ChargeOrder> chargeStatus() {
|
|
R<ChargeOrder> chargeStatus() {
|
|
|
return R.success(chargeService.queryEquipChargeStatus());
|
|
return R.success(chargeService.queryEquipChargeStatus());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiLog("查询设备充电策略")
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 查询充电策略
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param connectorId
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
@GetMapping("/businessPolicy/{connectorId}")
|
|
@GetMapping("/businessPolicy/{connectorId}")
|
|
|
R businessPolicy(@PathVariable("connectorId") String connectorId) {
|
|
R businessPolicy(@PathVariable("connectorId") String connectorId) {
|
|
|
return R.success(chargeService.queryEquipBusinessPolicy(connectorId));
|
|
return R.success(chargeService.queryEquipBusinessPolicy(connectorId));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiLog("充电订单详情")
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 充电订单详情
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param startChargeSeq
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
@GetMapping("/orderDetail/{startChargeSeq}")
|
|
@GetMapping("/orderDetail/{startChargeSeq}")
|
|
|
public R orderDetail(@PathVariable("startChargeSeq") String startChargeSeq) {
|
|
public R orderDetail(@PathVariable("startChargeSeq") String startChargeSeq) {
|
|
|
return R.success(chargeOrderService.orderDetailForApp(startChargeSeq));
|
|
return R.success(chargeOrderService.orderDetailForApp(startChargeSeq));
|
|
@@ -103,12 +128,11 @@ public class ChargerController {
|
|
|
//====================================================以下是EN+推送接口==============================================================
|
|
//====================================================以下是EN+推送接口==============================================================
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * EN+设备状态变化推送
|
|
|
|
|
|
|
+ * EN+场站设备状态变化推送
|
|
|
*
|
|
*
|
|
|
* @param json
|
|
* @param json
|
|
|
* @return 0:接收 1:丢弃/忽略,不需要重试
|
|
* @return 0:接收 1:丢弃/忽略,不需要重试
|
|
|
*/
|
|
*/
|
|
|
- @ApiLog("EN+场站设备状态变化推送")
|
|
|
|
|
@PostMapping("/notification_stationStatus")
|
|
@PostMapping("/notification_stationStatus")
|
|
|
EnResponse notificationStationStatus(@RequestBody JSONObject json) {
|
|
EnResponse notificationStationStatus(@RequestBody JSONObject json) {
|
|
|
return new EnResponse(enNotifyService.handleNotificationStationStatus(json));
|
|
return new EnResponse(enNotifyService.handleNotificationStationStatus(json));
|
|
@@ -134,7 +158,6 @@ public class ChargerController {
|
|
|
* @param json
|
|
* @param json
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
- @ApiLog("EN+推送启动充电状态")
|
|
|
|
|
@PostMapping("/notification_equip_charge_status")
|
|
@PostMapping("/notification_equip_charge_status")
|
|
|
EnResponse notificationEquipChargeStatus(@RequestBody JSONObject json) {
|
|
EnResponse notificationEquipChargeStatus(@RequestBody JSONObject json) {
|
|
|
return new EnResponse(enNotifyService.handleNotificationEquipChargeStatus(json));
|
|
return new EnResponse(enNotifyService.handleNotificationEquipChargeStatus(json));
|
|
@@ -175,7 +198,6 @@ public class ChargerController {
|
|
|
*
|
|
*
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
- @ApiLog("拉取EN+充电站信息数据并更新本地服务器数据")
|
|
|
|
|
@GetMapping("/pullEnStations")
|
|
@GetMapping("/pullEnStations")
|
|
|
R pullEnStationInfos() {
|
|
R pullEnStationInfos() {
|
|
|
stationService.pullEnStationInfos();
|
|
stationService.pullEnStationInfos();
|