Merge pull request 'refactor(admin): 优化预订单更新逻辑' (#284) from dev into main
Reviewed-on: #284
This commit is contained in:
commit
f09eca45a3
@ -117,7 +117,7 @@ class BeforehandOrderCartInfoLogic extends BaseLogic
|
||||
PurchaseProductOffer::where('order_id',$bhoid)->where('product_id',$find['product_id'])->update(['need_num'=>$params['nums']]);
|
||||
}
|
||||
$order=BeforehandOrder::where('id', $bhoid)->find();
|
||||
$order->update(['total_price' => $info['total_price'], 'total_num' => $info['cart_num']]);
|
||||
$order->save(['total_price' => $info['total_price'], 'total_num' => $info['cart_num']]);
|
||||
|
||||
if($order['outbound_id']>0){
|
||||
$wp= WarehouseProduct::where('oid',$order['outbound_id'])->where('product_id',$find['product_id'])->where('financial_pm',0)->find();
|
||||
@ -131,6 +131,7 @@ class BeforehandOrderCartInfoLogic extends BaseLogic
|
||||
return true;
|
||||
} catch (\Throwable $e) {
|
||||
Db::rollback();
|
||||
d($e);
|
||||
throw new BusinessException($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user