领取电池新增逻辑
This commit is contained in:
parent
70e73dc6d1
commit
19b973059d
@ -174,7 +174,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
|
||||
.where(EBIKE_BIKE_QR.STATUS.eq(BikeQrStatus.UN_BIND));
|
||||
EbikeBikeQr ebikeBikeQr = bikeQrMapper.selectOneByQuery(queryWrapper);
|
||||
if (ebikeBikeQr == null) {
|
||||
throw new EbikeException("该车辆二维码无效或已使用");
|
||||
throw new EbikeException("该车辆二维码无效或已绑定");
|
||||
}
|
||||
|
||||
//判断组件所属运营商
|
||||
|
||||
@ -852,6 +852,8 @@ public class EbikeBikeOrderServiceImpl extends ServiceImpl<EbikeBikeOrderMapper,
|
||||
if (dispatchSwapVo.getAcceptOrders()) {
|
||||
ebikeBikeOrder.setReceiverId(staffId);
|
||||
ebikeBikeOrder.setHandleState(OrderHandleState.ACCEPTED);
|
||||
}else {
|
||||
ebikeBikeOrder.setHandleState(OrderHandleState.UNPROCESSED);
|
||||
}
|
||||
list.add(ebikeBikeOrder);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user