停车区域判断

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

View File

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