整车绑定
This commit is contained in:
parent
64ff73c373
commit
7c8b9dfeb8
@ -174,13 +174,15 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
|
||||
EbikeBikeInfo bikeInfo = EbikeBikeInfo.builder()
|
||||
.operatorId(operatorId)
|
||||
.bikeCode(bindVo.getBikeCode())
|
||||
.batteryId(batteryInfo.getBatteryId())
|
||||
.ecuId(ecuInfo.getEcuId())
|
||||
.hasHelme(bindVo.getHasHelme())
|
||||
.status(BikeStatus.UN_LAUNCH)
|
||||
.usageStatus(BikeUsageStatus.BIND)
|
||||
.createdBy(StpUtil.getLoginIdAsLong())
|
||||
.build();
|
||||
if (batteryInfo != null){
|
||||
bikeInfo.setBatteryId(batteryInfo.getBatteryId());
|
||||
}
|
||||
this.mapper.insert(bikeInfo);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user