Compare commits
No commits in common. "13d1c7535f4020908c6397e89abf4da6557d1ecb" and "7038a7eff19b407c44e012adbba2d9711ea38f49" have entirely different histories.
13d1c7535f
...
7038a7eff1
@ -30,7 +30,6 @@ import jakarta.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
@ -151,7 +150,6 @@ public class UserOrdersServiceImpl extends ServiceImpl<UserOrdersMapper, UserOrd
|
||||
long minutes = TimeUtils.betweenMinutes(userOrders.getStartTime(), LocalDateTime.now());
|
||||
//TODO:时间校验:根据规则做时间校验、判断收费多少.需要支付则为待支付状态、不需要则为取消状态
|
||||
userOrders.setStatus(OrderStatus.PENDING_PAYMENT);
|
||||
userOrders.setTotalAmount(BigDecimal.ZERO);
|
||||
userOrdersMapper.update(userOrders);
|
||||
//关锁,并且等待结果
|
||||
CompletableFuture<String> stringCompletableFuture = ebikeCoreHandler.executeCommand(ecuInfo, CmdCode.LOCK, Long.valueOf(bikeInfoDto.getBikeId()), userId);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user