mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-02 21:18:05 +08:00
update 后管枪口列表只有充电时才查询实时数据
This commit is contained in:
@@ -13,6 +13,7 @@ import com.jsowell.common.core.domain.ykc.RealTimeMonitorData;
|
|||||||
import com.jsowell.common.core.page.PageResponse;
|
import com.jsowell.common.core.page.PageResponse;
|
||||||
import com.jsowell.common.core.redis.RedisCache;
|
import com.jsowell.common.core.redis.RedisCache;
|
||||||
import com.jsowell.common.enums.ykc.PileConnectorDataBaseStatusEnum;
|
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.enums.ykc.PileStatusEnum;
|
||||||
import com.jsowell.common.util.DateUtils;
|
import com.jsowell.common.util.DateUtils;
|
||||||
import com.jsowell.common.util.StringUtils;
|
import com.jsowell.common.util.StringUtils;
|
||||||
@@ -285,9 +286,12 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
|
|||||||
}else {
|
}else {
|
||||||
pileConnectorInfoVO.setConnectorQrCodeUrl(getPileConnectorQrCodeUrl(pileConnectorCode)); // 枪口号二维码
|
pileConnectorInfoVO.setConnectorQrCodeUrl(getPileConnectorQrCodeUrl(pileConnectorCode)); // 枪口号二维码
|
||||||
}
|
}
|
||||||
OrderBasicInfo order = orderBasicInfoService.queryChargingByPileConnectorCode(pileConnectorCode);
|
if (StringUtils.equals(String.valueOf(pileConnectorInfoVO.getStatus()), "3")) {
|
||||||
if (order != null) {
|
// 当枪口状态为充电中时,再去查询实时数据等信息
|
||||||
pileConnectorInfoVO.setOrderCode(order.getOrderCode());
|
OrderBasicInfo order = orderBasicInfoService.queryChargingByPileConnectorCode(pileConnectorCode);
|
||||||
|
if (order != null) {
|
||||||
|
pileConnectorInfoVO.setOrderCode(order.getOrderCode());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ public class NRConnectorInfo {
|
|||||||
* 充电设备接口编码
|
* 充电设备接口编码
|
||||||
*/
|
*/
|
||||||
@JSONField(name = "ConnectorID")
|
@JSONField(name = "ConnectorID")
|
||||||
private String connectorID;
|
private String connectorId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 充电设备接口名称
|
* 充电设备接口名称
|
||||||
@@ -31,7 +31,7 @@ public class NRConnectorInfo {
|
|||||||
* 2:交流接口插座(模式 3,连接方式 B )
|
* 2:交流接口插座(模式 3,连接方式 B )
|
||||||
* 3:交流接口插头(带枪线,模式 3,连接方式 C)
|
* 3:交流接口插头(带枪线,模式 3,连接方式 C)
|
||||||
* 4:直流接口枪头(带枪线,模式 4)
|
* 4:直流接口枪头(带枪线,模式 4)
|
||||||
* 5:无线充电座;
|
* 5:无线充电座;
|
||||||
*/
|
*/
|
||||||
@JSONField(name = "ConnectorType")
|
@JSONField(name = "ConnectorType")
|
||||||
private Integer connectorType;
|
private Integer connectorType;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public class NROrderInfo {
|
|||||||
* 充电设备接口编码
|
* 充电设备接口编码
|
||||||
*/
|
*/
|
||||||
@JSONField(name = "ConnectorID")
|
@JSONField(name = "ConnectorID")
|
||||||
private String connectorID;
|
private String connectorId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 充电业务编号
|
* 充电业务编号
|
||||||
|
|||||||
12
jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/nanrui/service/NRService.java
vendored
Normal file
12
jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/nanrui/service/NRService.java
vendored
Normal 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);
|
||||||
|
}
|
||||||
18
jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/nanrui/service/impl/NRServiceImpl.java
vendored
Normal file
18
jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/nanrui/service/impl/NRServiceImpl.java
vendored
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user