修改预订单商品删除的错误
This commit is contained in:
parent
209d4366bf
commit
29c7f1494a
@ -280,8 +280,9 @@ class BeforehandOrderCartInfoLogic extends BaseLogic
|
||||
PurchaseProductOffer::where('order_id',$find['bhoid'])->where('product_id',$find['product_id'])->update(['delete_time'=>time()]);
|
||||
}
|
||||
$res=BeforehandOrderCartInfo::destroy($params['id']);
|
||||
$pay_price=BeforehandOrderCartInfo::where('bhoid', $params['id'])->sum('pay_price');
|
||||
BeforehandOrder::where('id',$find['bhoid'])->update(['pay_price'=>$pay_price]);
|
||||
$pay_price=BeforehandOrderCartInfo::where('bhoid', $find['bhoid'])->sum('pay_price');
|
||||
$total_price=BeforehandOrderCartInfo::where('bhoid', $find['bhoid'])->sum('total_price');
|
||||
BeforehandOrder::where('id',$find['bhoid'])->update(['pay_price'=>$pay_price, 'total_price'=>$total_price]);
|
||||
return $res;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user