update 后管枪口列表只有充电时才查询实时数据

This commit is contained in:
Lemon
2023-09-26 11:39:57 +08:00
parent 7897dd6876
commit c41d8e00d0
5 changed files with 40 additions and 6 deletions

View File

@@ -13,6 +13,7 @@ import com.jsowell.common.core.domain.ykc.RealTimeMonitorData;
import com.jsowell.common.core.page.PageResponse;
import com.jsowell.common.core.redis.RedisCache;
import com.jsowell.common.enums.ykc.PileConnectorDataBaseStatusEnum;
import com.jsowell.common.enums.ykc.PileConnectorStatusEnum;
import com.jsowell.common.enums.ykc.PileStatusEnum;
import com.jsowell.common.util.DateUtils;
import com.jsowell.common.util.StringUtils;
@@ -285,9 +286,12 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
}else {
pileConnectorInfoVO.setConnectorQrCodeUrl(getPileConnectorQrCodeUrl(pileConnectorCode)); // 枪口号二维码
}
OrderBasicInfo order = orderBasicInfoService.queryChargingByPileConnectorCode(pileConnectorCode);
if (order != null) {
pileConnectorInfoVO.setOrderCode(order.getOrderCode());
if (StringUtils.equals(String.valueOf(pileConnectorInfoVO.getStatus()), "3")) {
// 当枪口状态为充电中时,再去查询实时数据等信息
OrderBasicInfo order = orderBasicInfoService.queryChargingByPileConnectorCode(pileConnectorCode);
if (order != null) {
pileConnectorInfoVO.setOrderCode(order.getOrderCode());
}
}
}

View File

@@ -17,7 +17,7 @@ public class NRConnectorInfo {
* 充电设备接口编码
*/
@JSONField(name = "ConnectorID")
private String connectorID;
private String connectorId;
/**
* 充电设备接口名称
@@ -31,7 +31,7 @@ public class NRConnectorInfo {
* 2交流接口插座模式 3连接方式 B
* 3交流接口插头带枪线模式 3连接方式 C
* 4直流接口枪头带枪线模式 4
* 5:无线充电座;
* 5无线充电座;
*/
@JSONField(name = "ConnectorType")
private Integer connectorType;

View File

@@ -22,7 +22,7 @@ public class NROrderInfo {
* 充电设备接口编码
*/
@JSONField(name = "ConnectorID")
private String connectorID;
private String connectorId;
/**
* 充电业务编号

View File

@@ -0,0 +1,12 @@
package com.jsowell.thirdparty.nanrui.service;
/**
* 南瑞Service
*
* @author Lemon
* @Date 2023/9/26 9:17
*/
public interface NRService {
public String notification_stationInfo(String stationId);
}

View File

@@ -0,0 +1,18 @@
package com.jsowell.thirdparty.nanrui.service.impl;
import com.jsowell.thirdparty.nanrui.service.NRService;
/**
* TODO
*
* @author Lemon
* @Date 2023/9/26 9:20
*/
public class NRServiceImpl implements NRService {
@Override
public String notification_stationInfo(String stationId) {
return null;
}
}