新增 宁夏平台controller

This commit is contained in:
Lemon
2024-05-30 09:38:29 +08:00
parent 40a929eebd
commit f08de6dd54
5 changed files with 148 additions and 5 deletions

View File

@@ -35,6 +35,7 @@ import com.jsowell.thirdparty.huawei.HuaweiServiceV2;
import com.jsowell.thirdparty.platform.service.impl.HaiNanPlatformServiceImpl;
import com.jsowell.thirdparty.huawei.HuaWeiService;
import com.jsowell.thirdparty.lianlian.service.LianLianService;
import com.jsowell.thirdparty.platform.service.impl.NinaXiaPlatformServiceImpl;
import com.jsowell.thirdparty.platform.service.impl.QingHaiPlatformServiceImpl;
import com.jsowell.thirdparty.platform.util.HttpRequestUtil;
import com.jsowell.thirdparty.lutongyunting.service.LTYTService;
@@ -116,6 +117,9 @@ public class CommonService {
@Autowired
private QingHaiPlatformServiceImpl qingHaiPlatformService;
@Autowired
private NinaXiaPlatformServiceImpl ninaXiaPlatformService;
@Autowired
private RedisCache redisCache;
@@ -366,6 +370,21 @@ public class CommonService {
}
}
}
if (StringUtils.equals(ThirdPlatformTypeEnum.NING_XIA_PLATFORM.getTypeCode(), thirdPartyType)) {
// 宁夏平台
dto.setThirdPartyType(ThirdPlatformTypeEnum.NING_XIA_PLATFORM.getTypeCode());
String result = ninaXiaPlatformService.notificationStationStatus(dto);
log.info("宁夏平台推送充电设备接口状态信息 result:{}", result);
if (StringUtils.equals(connectorStatus, "03")) {
// 充电状态, 查出订单信息
OrderBasicInfo orderInfo = orderBasicInfoService.getOrderInfoByTransactionCode(transactionCode);
if (orderInfo == null) {
return;
}
String result2 = ninaXiaPlatformService.notificationEquipChargeStatus(orderInfo.getOrderCode());
log.info("宁夏平台推送充电状态信息 result:{}", result2);
}
}
}
}