工单
This commit is contained in:
parent
8cf0ddd6b5
commit
db726fe6af
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user