diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/common/CommonService.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/common/CommonService.java index 5a381782e..f72681767 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/common/CommonService.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/common/CommonService.java @@ -441,14 +441,19 @@ public class CommonService { dto.setPileConnectorCode(pileConnectorCode); dto.setPlatformType(thirdPartySecretInfoVO.getPlatformType()); - if(thirdPartySecretInfoVO.getPlatformType().equals(ThirdPlatformTypeEnum.CHANG_ZHOU_PLATFORM.getTypeCode()) - ){ - //无须转换枪口状态 - dto.setStatus(connectorStatus); -// log.info("枪口状态"+connectorStatus); + if(thirdPartySecretInfoVO.getPlatformType().equals(ThirdPlatformTypeEnum.CHANG_ZHOU_PLATFORM.getTypeCode())){ + //专门处理常畅充平台转换枪口状态 + if (StringUtils.equals(connectorStatus, PileConnectorStatusEnum.FREE.getValue())) { + if(StringUtils.equals(realTimeMonitorData.getPutGunType(), "01")){ + //空闲 + dto.setStatus(Constants.TWO); + }else{ + //占用(未充电) + dto.setStatus(Constants.ONE); + } + } }else{ dto.setStatus(changedStatus); -// log.info("转换的枪口状态"+changedStatus); } // 先推送站点状态