停车区域判断

This commit is contained in:
attiya 2025-04-17 16:25:08 +08:00
parent 44165f4dac
commit a6c755df22

View File

@ -145,9 +145,10 @@ public class UserOrdersServiceImpl extends ServiceImpl<UserOrdersMapper, UserOrd
//是否在运营区内
boolean pointInOperation = bikeInOperation(resGpsDto.getLongitude(), resGpsDto.getLatitude(), regionDto.getOrgId(), regionDto.getRegionId());
boolean pointInParking = redisUtil.isPointInParking(resGpsDto.getLongitude(), resGpsDto.getLatitude(), regionDto.getOrgId());
//是否在停车区内
long minutes = TimeUtils.betweenMinutes(userOrders.getStartTime(), LocalDateTime.now());
//TODO:区域校验校验是否在停车区内;时间校验根据规则做时间校验判断收费多少.需要支付则为待支付状态不需要则为取消状态
//时间校验根据规则做时间校验判断收费多少.需要支付则为待支付状态不需要则为取消状态
userOrders.setStatus(OrderStatus.PENDING_PAYMENT);
userOrdersMapper.update(userOrders);
//关锁,并且等待结果