发送停止充电指令时,校验交易流水号是否一致

This commit is contained in:
2024-02-21 16:30:49 +08:00
parent ed099d777a
commit 58aa5c662b
4 changed files with 20 additions and 13 deletions

View File

@@ -72,6 +72,9 @@ public abstract class AbsInterfaceWithPlatformLogic implements InitializingBean
@Autowired
protected YKCPushCommandService ykcPushCommandService;
@Autowired
protected PileRemoteService pileRemoteService;
@Autowired
protected ZDLService zdlService;

View File

@@ -19,7 +19,6 @@ import com.jsowell.common.util.PageUtils;
import com.jsowell.common.util.StringUtils;
import com.jsowell.pile.domain.*;
import com.jsowell.pile.domain.ykcCommond.StartChargingCommand;
import com.jsowell.pile.domain.ykcCommond.StopChargingCommand;
import com.jsowell.pile.dto.*;
import com.jsowell.pile.vo.base.ConnectorInfoVO;
import com.jsowell.pile.vo.base.ThirdPartyStationInfoVO;
@@ -903,11 +902,12 @@ public class HaiNanPlatformLogic extends AbsInterfaceWithPlatformLogic {
// 若状态为充电中,则发送停机指令
if (StringUtils.equals(OrderStatusEnum.IN_THE_CHARGING.getValue(), orderInfo.getOrderStatus())) {
// 充电中
StopChargingCommand command = StopChargingCommand.builder()
.pileSn(orderInfo.getPileSn())
.connectorCode(orderInfo.getConnectorCode())
.build();
ykcPushCommandService.pushStopChargingCommand(command);
// StopChargingCommand command = StopChargingCommand.builder()
// .pileSn(orderInfo.getPileSn())
// .connectorCode(orderInfo.getConnectorCode())
// .build();
// ykcPushCommandService.pushStopChargingCommand(command);
pileRemoteService.remoteStopCharging(orderInfo.getPileSn(), orderInfo.getConnectorCode(), orderInfo.getTransactionCode());
vo.setStartChargeSeq(orderCode);
vo.setStartChargeSeqStat(4); // 1、启动中 2、充电中3、停止中4、已结束5、未知
}