diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/EBikeSendCommandServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/EBikeSendCommandServiceImpl.java index a04b13bd3..6b75c2a76 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/EBikeSendCommandServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/EBikeSendCommandServiceImpl.java @@ -5,6 +5,8 @@ import com.jsowell.common.protocol.SyncPromise; import com.jsowell.common.util.BytesUtil; import com.jsowell.common.util.RandomUtil; import com.jsowell.common.util.RpcUtil; +import com.jsowell.common.util.StringUtils; +import com.jsowell.common.util.id.IdUtils; import com.jsowell.pile.domain.ebike.AbsEBikeMessage; import com.jsowell.pile.domain.ebike.serversend.EBikeMessageCmd82; import com.jsowell.pile.domain.ykcCommond.StartChargingCommand; @@ -36,9 +38,9 @@ public class EBikeSendCommandServiceImpl implements EBikeSendCommandService { String pileSn = command.getPileSn(); String connectorCode = command.getConnectorCode(); String transactionCode = command.getTransactionCode(); - // if (StringUtils.isBlank(transactionCode)) { - // transactionCode = IdUtils.generateTransactionCode(pileSn, connectorCode); - // } + if (StringUtils.isBlank(transactionCode)) { + transactionCode = IdUtils.generateTransactionCode(pileSn, connectorCode); + } // 组装参数 EBikeMessageCmd82 message = new EBikeMessageCmd82();