|
|
@@ -519,10 +519,12 @@ public class OrderMainServiceImpl extends ServiceImpl<OrderMainMapper, OrderMain
|
|
|
|
|
|
// 4. 如果流程初始化成功,更新订单状态 (注意:这里再次触发了数据库更新)
|
|
|
if (initOrderFlow) {
|
|
|
+ log.info("成功初始化审批流程,订单ID: {}", orderId);
|
|
|
this.update(Wrappers.lambdaUpdate(OrderMain.class)
|
|
|
.eq(OrderMain::getId, orderId)
|
|
|
.set(OrderMain::getOrderStatus, 1)); // 假设 1 代表某种特定状态,需确认枚举值
|
|
|
}else {
|
|
|
+ log.info("失败初始化审批流程,订单ID: {}", orderId);
|
|
|
this.update(Wrappers.lambdaUpdate(OrderMain.class)
|
|
|
.eq(OrderMain::getId, orderId)
|
|
|
.set(OrderMain::getCheckStatus, "1")
|