新增 甬城泊车相关接口、controller

This commit is contained in:
Lemon
2023-11-06 15:28:34 +08:00
parent 23e52ca90c
commit f73806955d
10 changed files with 147 additions and 39 deletions

View File

@@ -31,6 +31,7 @@ import com.jsowell.pile.vo.web.PileStationVO;
import com.jsowell.service.PileService;
import com.jsowell.thirdparty.lianlian.service.LianLianService;
import com.jsowell.thirdparty.nanrui.service.NRService;
import com.jsowell.thirdparty.yongchengboche.service.YCBCService;
import com.jsowell.thirdparty.zhongdianlian.service.ZDLService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
@@ -66,6 +67,9 @@ public class PileStationInfoController extends BaseController {
@Autowired
private NRService nrService;
@Autowired
private YCBCService ycbcService;
@Autowired
private IThirdPartyStationRelationService thirdPartyStationRelationService;
@@ -299,6 +303,10 @@ public class PileStationInfoController extends BaseController {
// 江苏省平台
result = nrService.pushStationInfo(dto);
}
if (StringUtils.equals(ThirdPlatformTypeEnum.YONG_CHENG_BO_CHE.getCode(), dto.getThirdPartyType())) {
// 甬城泊车平台
result = ycbcService.pushStationInfo(dto);
}
response = new RestApiResponse<>(result);
}catch (BusinessException e) {
logger.error("推送第三方平台充电站信息 error",e);