feat: 修改订单逻辑以更新商品统计记录和财务流水
This commit is contained in:
parent
9bc69d71fe
commit
279cc7d903
@ -577,8 +577,7 @@ class OrderLogic extends BaseLogic
|
||||
'staff_id' => $params['staff_id'] ?? 0,
|
||||
], ['id' => $order['id']]);
|
||||
//修改商品统计记录标识
|
||||
(new StoreProductLog())->update(['store_id' => $params['store_id'],'oid' => $order['id']]
|
||||
);
|
||||
(new StoreProductLog())->where('oid',$order['id'])->update(['store_id' => $params['store_id']]);
|
||||
(new StoreOrderCartInfo())->update([
|
||||
'verify_code' => $params['verify_code'] . '-1',
|
||||
'writeoff_time' => time(),
|
||||
@ -588,9 +587,7 @@ class OrderLogic extends BaseLogic
|
||||
'update_time' => time(),
|
||||
], ['oid' => $order['id']]);
|
||||
$financeFlow = new StoreFinanceFlow();
|
||||
$financeFlowProduct = new StoreFinanceFlowProduct();
|
||||
$financeFlow->where('order_id',$order['id'])->update(['store_id'=>$params['store_id'],'staff_id'=>$params['staff_id'] ?? 0]);
|
||||
$financeFlowProduct->where('oid',$order['id'])->update(['store_id'=>$params['store_id']]);
|
||||
$financeFlow->where('order_id',$order['id'])->update(['store_id'=>$params['store_id'],'staff_id'=>$params['staff_id']]);
|
||||
$financeFlowLogic = new StoreFinanceFlowLogic();
|
||||
$select_1 = $financeFlow->where(['order_id' => $order['id'], 'financial_pm' => 1, 'financial_type' => ['in' => 14, 15, 16]])->select();
|
||||
foreach ($select_1 as $k => $v) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user