工单生成
This commit is contained in:
parent
19b973059d
commit
a168999a83
@ -133,6 +133,7 @@ public class EbikeBikeOrderServiceImpl extends ServiceImpl<EbikeBikeOrderMapper,
|
||||
.orderCode(snowFlakeIDKeyGenerator.nextId())
|
||||
.orderType(BikeOrderType.BATTERY_SWAP)
|
||||
.operatorId(bikeInfo.getOperatorId())
|
||||
.handleState(OrderHandleState.UNPROCESSED)
|
||||
.build();
|
||||
this.mapper.insert(ebikeBikeOrder);
|
||||
//换电不处理车辆状态,电量低时用户不允许开锁
|
||||
@ -155,6 +156,7 @@ public class EbikeBikeOrderServiceImpl extends ServiceImpl<EbikeBikeOrderMapper,
|
||||
.orderType(BikeOrderType.INSPECTION)
|
||||
.operatorId(bikeInfo.getOperatorId())
|
||||
.remarks(inspectionSwapOrderVo.getRemarks())
|
||||
.handleState(OrderHandleState.UNPROCESSED)
|
||||
.build();
|
||||
this.mapper.insert(ebikeBikeOrder);
|
||||
Long orderId = ebikeBikeOrder.getOrderId();
|
||||
@ -266,6 +268,7 @@ public class EbikeBikeOrderServiceImpl extends ServiceImpl<EbikeBikeOrderMapper,
|
||||
.orderType(BikeOrderType.REPAIR)
|
||||
.operatorId(bikeInfo.getOperatorId())
|
||||
.remarks(faultOrderVo.getRemarks())
|
||||
.handleState(OrderHandleState.UNPROCESSED)
|
||||
.build();
|
||||
this.mapper.insert(ebikeBikeOrder);
|
||||
Long orderId = ebikeBikeOrder.getOrderId();
|
||||
@ -678,6 +681,7 @@ public class EbikeBikeOrderServiceImpl extends ServiceImpl<EbikeBikeOrderMapper,
|
||||
.orderType(BikeOrderType.REPAIR)
|
||||
.operatorId(bikeInfo.getOperatorId())
|
||||
.remarks(inspectionVo.getRemarks())
|
||||
.handleState(OrderHandleState.UNPROCESSED)
|
||||
.build();
|
||||
this.mapper.insert(ebikeBikeOrder);
|
||||
Long orderId = ebikeBikeOrder.getOrderId();
|
||||
@ -848,6 +852,7 @@ public class EbikeBikeOrderServiceImpl extends ServiceImpl<EbikeBikeOrderMapper,
|
||||
.orderType(BikeOrderType.DISPATCH)
|
||||
.operatorId(operatorId)
|
||||
.dispatchState(OrderDispatchState.PROCESSED)
|
||||
.handleState(OrderHandleState.UNPROCESSED)
|
||||
.build();
|
||||
if (dispatchSwapVo.getAcceptOrders()) {
|
||||
ebikeBikeOrder.setReceiverId(staffId);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user