bugfix 运营端小程序查询枪口详情空指针

This commit is contained in:
Lemon
2026-01-15 09:38:23 +08:00
parent 021e22c08a
commit 7919a8efd4

View File

@@ -1223,6 +1223,9 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService {
BusinessConnectorInfoVO vo = new BusinessConnectorInfoVO(); BusinessConnectorInfoVO vo = new BusinessConnectorInfoVO();
BusinessConnectorDetailVO detailVO = new BusinessConnectorDetailVO(); BusinessConnectorDetailVO detailVO = new BusinessConnectorDetailVO();
PileConnectorInfoVO pileConnectorInfoVO = getPileConnectorInfoByConnectorCode(pileConnectorCode); PileConnectorInfoVO pileConnectorInfoVO = getPileConnectorInfoByConnectorCode(pileConnectorCode);
if (pileConnectorInfoVO == null) {
return vo;
}
String status = String.valueOf(pileConnectorInfoVO.getStatus()); String status = String.valueOf(pileConnectorInfoVO.getStatus());
if (StringUtils.equals(PileConnectorDataBaseStatusEnum.OCCUPIED_CHARGING.getValue(), status)) { if (StringUtils.equals(PileConnectorDataBaseStatusEnum.OCCUPIED_CHARGING.getValue(), status)) {
// 充电中 // 充电中