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