工单生成
This commit is contained in:
parent
7917c3b69e
commit
fa671f6946
@ -34,6 +34,11 @@ public class EbikeBikeOrder implements Serializable {
|
|||||||
@Id
|
@Id
|
||||||
private Long orderId;
|
private Long orderId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 运营商ID
|
||||||
|
*/
|
||||||
|
private Long operatorId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 车辆编号
|
* 车辆编号
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -62,6 +62,7 @@ public class EbikeBikeOrderServiceImpl extends ServiceImpl<EbikeBikeOrderMapper,
|
|||||||
.bikeCode(bikeInfo.getBikeCode())
|
.bikeCode(bikeInfo.getBikeCode())
|
||||||
.orderCode(snowFlakeIDKeyGenerator.nextId())
|
.orderCode(snowFlakeIDKeyGenerator.nextId())
|
||||||
.orderType(BikeOrderType.BATTERY_SWAP)
|
.orderType(BikeOrderType.BATTERY_SWAP)
|
||||||
|
.operatorId(bikeInfo.getOperatorId())
|
||||||
.build();
|
.build();
|
||||||
this.mapper.insert(ebikeBikeOrder);
|
this.mapper.insert(ebikeBikeOrder);
|
||||||
}
|
}
|
||||||
@ -88,6 +89,7 @@ public class EbikeBikeOrderServiceImpl extends ServiceImpl<EbikeBikeOrderMapper,
|
|||||||
.bikeCode(bikeInfo.getBikeCode())
|
.bikeCode(bikeInfo.getBikeCode())
|
||||||
.orderCode(snowFlakeIDKeyGenerator.nextId())
|
.orderCode(snowFlakeIDKeyGenerator.nextId())
|
||||||
.orderType(BikeOrderType.INSPECTION)
|
.orderType(BikeOrderType.INSPECTION)
|
||||||
|
.operatorId(bikeInfo.getOperatorId())
|
||||||
.build();
|
.build();
|
||||||
this.mapper.insert(ebikeBikeOrder);
|
this.mapper.insert(ebikeBikeOrder);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user