|
|
@@ -668,7 +668,7 @@ public class OrderMainServiceImpl extends ServiceImpl<OrderMainMapper, OrderMain
|
|
|
log.info("成功初始化审批流程,订单ID: {}", orderId);
|
|
|
this.update(Wrappers.lambdaUpdate(OrderMain.class)
|
|
|
.eq(OrderMain::getId, orderId)
|
|
|
- .set(OrderMain::getOrderStatus, 1)// 假设 1 代表某种特定状态,需确认枚举值
|
|
|
+ .set(OrderMain::getOrderStatus, OrderStatus.PENDING_SHIPMENT.getCode())// 待发货
|
|
|
.set(OrderMain::getIsNeedCheck, SysPlatformYesNo.YES.getCode())
|
|
|
);
|
|
|
|
|
|
@@ -942,7 +942,7 @@ public class OrderMainServiceImpl extends ServiceImpl<OrderMainMapper, OrderMain
|
|
|
order.setId(orderId);
|
|
|
order.setPayType(payType);
|
|
|
order.setPaymentStatus("1"); // 1: 已支付
|
|
|
- order.setOrderStatus(OrderStatus.PENDING_CONFIRMATION.getCode()); // 待确认
|
|
|
+ order.setOrderStatus(OrderStatus.PENDING_SHIPMENT.getCode()); // 待确认
|
|
|
|
|
|
int updateCount = baseMapper.updateById(order);
|
|
|
if (updateCount <= 0) {
|
|
|
@@ -1165,7 +1165,7 @@ public class OrderMainServiceImpl extends ServiceImpl<OrderMainMapper, OrderMain
|
|
|
}
|
|
|
OrderMain update = new OrderMain();
|
|
|
update.setId(id);
|
|
|
- update.setOrderStatus("2"); // ← 待发货
|
|
|
+ update.setOrderStatus(OrderStatus.PENDING_SHIPMENT.getCode()); // ← 待发货
|
|
|
|
|
|
int rows = baseMapper.updateById(update);
|
|
|
return rows > 0;
|
|
|
@@ -1368,7 +1368,6 @@ public class OrderMainServiceImpl extends ServiceImpl<OrderMainMapper, OrderMain
|
|
|
|
|
|
mainBo.setOrderNoPrefix("PO");
|
|
|
|
|
|
-
|
|
|
// 处理商品信息
|
|
|
if (bo.getProductInfo() == null || bo.getProductInfo().isEmpty()) {
|
|
|
throw new IllegalArgumentException("商品信息不能为空");
|