This commit is contained in:
PC 2026-01-27 10:53:08 +08:00
parent 8cf0ddd6b5
commit db726fe6af

View File

@ -397,7 +397,7 @@ public class EbikeBikeOrderServiceImpl extends ServiceImpl<EbikeBikeOrderMapper,
}
if (bikeOrder.getReceiverId() != StpUtil.getLoginIdAsLong()) {
if (bikeOrder.getReceiverId() != null) {
throw new EbikeException("其他用户已接单为该车辆换电");
throw new EbikeException("其他用户已接单为该车辆换电") ;
} else {
//无人接单则自动接单
bikeOrder.setReceiverId(StpUtil.getLoginIdAsLong());