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