mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 华为Service
This commit is contained in:
@@ -84,5 +84,5 @@ public interface ThirdpartySnRelationMapper {
|
||||
* @param stationId
|
||||
* @return
|
||||
*/
|
||||
List<ThirdpartySnRelation> selectSnRelationListByStationId(String stationId);
|
||||
List<ThirdPartySnRelationVO> selectSnRelationListByParams(@Param("stationId") String stationId, @Param("pileSn") String pileSn);
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public interface IThirdpartySnRelationService {
|
||||
*/
|
||||
public List<ThirdpartySnRelation> selectThirdpartySnRelationList(ThirdpartySnRelation thirdpartySnRelation);
|
||||
|
||||
public List<ThirdpartySnRelation> selectSnRelationListByStationId(String stationId);
|
||||
public List<ThirdPartySnRelationVO> selectSnRelationListByParams(String stationId, String pileSn);
|
||||
|
||||
/**
|
||||
* 新增万车充--第三方平台桩编号对应关系
|
||||
|
||||
@@ -3055,10 +3055,10 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
||||
sendStartCharging = false;
|
||||
}
|
||||
|
||||
// 判断该桩所在的站点是否推送了第三方站点(需要我方平台发送启动指令的,如:华为平台)
|
||||
List<ThirdPartyStationRelationVO> relationInfoList = thirdPartyStationRelationService.getRelationInfoList(orderInfo.getStationId());
|
||||
if (CollectionUtils.isNotEmpty(relationInfoList)) {
|
||||
for (ThirdPartyStationRelationVO vo : relationInfoList) {
|
||||
// 判断该桩是否对接了类似华为平台的第三方站点
|
||||
List<ThirdPartySnRelationVO> list = snRelationService.selectSnRelationListByParams(null, orderInfo.getPileSn());
|
||||
if (CollectionUtils.isNotEmpty(list)) {
|
||||
for (ThirdPartySnRelationVO vo : list) {
|
||||
String startMode = vo.getStartMode();
|
||||
if (StringUtils.equals(Constants.ONE, startMode)) {
|
||||
// 无需发送启机指令,在汇付回调中发送
|
||||
@@ -3066,7 +3066,17 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 判断该桩所在的站点是否推送了第三方站点(需要我方平台发送启动指令的,如:华为平台)
|
||||
// List<ThirdPartyStationRelationVO> relationInfoList = thirdPartyStationRelationService.getRelationInfoList(orderInfo.getStationId());
|
||||
// if (CollectionUtils.isNotEmpty(relationInfoList)) {
|
||||
// for (ThirdPartyStationRelationVO vo : relationInfoList) {
|
||||
// String startMode = vo.getStartMode();
|
||||
// if (StringUtils.equals(Constants.ONE, startMode)) {
|
||||
// // 无需发送启机指令,在汇付回调中发送
|
||||
// sendStartCharging = false;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// 修改订单
|
||||
orderInfo.setPayMode(dto.getPayMode());
|
||||
|
||||
@@ -45,8 +45,9 @@ public class ThirdpartySnRelationServiceImpl implements IThirdpartySnRelationSer
|
||||
return thirdpartySnRelationMapper.selectThirdpartySnRelationList(thirdpartySnRelation);
|
||||
}
|
||||
|
||||
public List<ThirdpartySnRelation> selectSnRelationListByStationId(String stationId) {
|
||||
return thirdpartySnRelationMapper.selectSnRelationListByStationId(stationId);
|
||||
|
||||
public List<ThirdPartySnRelationVO> selectSnRelationListByParams(String stationId, String pileSn) {
|
||||
return thirdpartySnRelationMapper.selectSnRelationListByParams(stationId, pileSn);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -15,6 +15,10 @@ public class ThirdPartySnRelationVO {
|
||||
*/
|
||||
private String pileSn;
|
||||
|
||||
private String stationId;
|
||||
|
||||
private String startMode;
|
||||
|
||||
// 第三方平台类型
|
||||
private String thirdPartyType;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user