This commit is contained in:
2025-07-29 23:30:08 +08:00
2 changed files with 68 additions and 1 deletions

View File

@ -76,6 +76,7 @@ public class OrderServiceImpl implements OrderService {
//TODO 这里保存订单要做事物处理
//生成订单主表
OrderMainPO orderMainPO = OrderConvert.INSTANCE.subOrderToPo(rentCarOrderReq, userInfoDTO, rentCarRuleDTO);
orderMainPO.setOperatorId(Long.valueOf(companyStoreDTO.getId().toString()));
orderMainPO.setOrderNo(OrderUtil.generateOrderNo());
//TODO 默认应该是待支付状态,这里先默认支付完成待取车
// orderMainPO.setOrderStatus(OrderStatusEnum.WAIT_PAY.getCode());