停车区域判断
This commit is contained in:
parent
44165f4dac
commit
a6c755df22
@ -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);
|
||||
//关锁,并且等待结果
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user