新增 华为相关接口调用入口

This commit is contained in:
Lemon
2024-01-17 16:12:11 +08:00
parent 536939b722
commit 5a35135500
6 changed files with 37 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ import com.jsowell.pile.service.ThirdPartyStationRelationService;
import com.jsowell.pile.service.ThirdPartySettingInfoService;
import com.jsowell.pile.vo.web.PileStationVO;
import com.jsowell.service.PileService;
import com.jsowell.thirdparty.huawei.HuaWeiService;
import com.jsowell.thirdparty.lianlian.service.LianLianService;
import com.jsowell.thirdparty.nanrui.service.NRService;
import com.jsowell.thirdparty.xindiantu.service.XDTService;
@@ -74,6 +75,9 @@ public class PileStationInfoController extends BaseController {
@Autowired
private XDTService xdtService;
@Autowired
private HuaWeiService huaWeiService;
@Autowired
private ThirdPartyStationRelationService thirdPartyStationRelationService;
@@ -315,6 +319,10 @@ public class PileStationInfoController extends BaseController {
// 新电途平台
result = xdtService.pushStationInfo(dto);
}
if(StringUtils.equals(ThirdPlatformTypeEnum.HUA_WEI.getCode(), dto.getThirdPartyType())) {
// 华为
result = huaWeiService.notificationOperationSystemInfo(dto);
}
response = new RestApiResponse<>(result);
}catch (BusinessException e) {
logger.error("推送第三方平台充电站信息 error",e);