用户获取车辆信息

This commit is contained in:
attiya 2025-11-11 11:28:11 +08:00
parent 420655a105
commit 12a019b996
2 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,7 @@ public class EbikeUserBikeInfo implements Serializable {
/**
* 车辆电量
*/
private Float soc = 50F;
private Float soc;
/**
* 免费时长分钟使用服务前的免费时间

View File

@ -337,6 +337,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
.maxFeeAmount(configurations.getMaxFeeAmount())
.noParkingZoneFee(configurations.getNoParkingZoneFee())
.helmetManagementFee(configurations.getHelmetManagementFee())
.soc(50F)
.build();
} else {
EbikeUserBikeInfo userBikeInfo = EbikeUserBikeInfo.builder()
@ -353,6 +354,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
.maxFeeAmount(configurations.getMaxFeeAmount())
.noParkingZoneFee(configurations.getNoParkingZoneFee())
.helmetManagementFee(configurations.getHelmetManagementFee())
.soc(50F)
.build();
if (specialBillingConfiguration.getType() == SpecialBillingConfigurationType.DAY) {
query.clear();