工单生成

This commit is contained in:
attiya 2025-11-25 14:03:14 +08:00
parent 7917c3b69e
commit fa671f6946
2 changed files with 7 additions and 0 deletions

View File

@ -34,6 +34,11 @@ public class EbikeBikeOrder implements Serializable {
@Id
private Long orderId;
/**
* 运营商ID
*/
private Long operatorId;
/**
* 车辆编号
*/

View File

@ -62,6 +62,7 @@ public class EbikeBikeOrderServiceImpl extends ServiceImpl<EbikeBikeOrderMapper,
.bikeCode(bikeInfo.getBikeCode())
.orderCode(snowFlakeIDKeyGenerator.nextId())
.orderType(BikeOrderType.BATTERY_SWAP)
.operatorId(bikeInfo.getOperatorId())
.build();
this.mapper.insert(ebikeBikeOrder);
}
@ -88,6 +89,7 @@ public class EbikeBikeOrderServiceImpl extends ServiceImpl<EbikeBikeOrderMapper,
.bikeCode(bikeInfo.getBikeCode())
.orderCode(snowFlakeIDKeyGenerator.nextId())
.orderType(BikeOrderType.INSPECTION)
.operatorId(bikeInfo.getOperatorId())
.build();
this.mapper.insert(ebikeBikeOrder);
}