帧类型中添加 新电途平台相关逻辑

This commit is contained in:
Lemon
2024-01-04 16:14:56 +08:00
parent c0ddc0e972
commit 57cd3d2b72
4 changed files with 31 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ import com.jsowell.pile.service.IThirdPartySettingInfoService;
import com.jsowell.pile.service.IThirdPartyStationRelationService;
import com.jsowell.pile.vo.base.ThirdPartyStationRelationVO;
import com.jsowell.thirdparty.lianlian.service.LianLianService;
import com.jsowell.thirdparty.xindiantu.service.XDTService;
import com.jsowell.thirdparty.yongchengboche.service.YCBCService;
import io.netty.channel.Channel;
import lombok.extern.slf4j.Slf4j;
@@ -48,6 +49,9 @@ public class ChargeEndHandler extends AbstractHandler{
@Autowired
private YCBCService ycbcService;
@Autowired
private XDTService xdtService;
@Autowired
private IThirdPartyStationRelationService thirdPartyStationRelationService;
@@ -149,6 +153,11 @@ public class ChargeEndHandler extends AbstractHandler{
// 推送停止充电结果
lianLianService.pushStopChargeResult(orderInfo.getOrderCode());
}
// 新电途平台
if (StringUtils.equals(ThirdPlatformTypeEnum.XIN_DIAN_TU.getCode(), relationInfo.getThirdPartyType())) {
// 推送停止充电结果
xdtService.notificationStopChargeResult(orderInfo.getOrderCode());
}
// 甬城泊车平台
if (StringUtils.equals(ThirdPlatformTypeEnum.YONG_CHENG_BO_CHE.getCode(), relationInfo.getThirdPartyType())) {
ycbcService.pushStopChargeResult(orderInfo.getOrderCode());