核销修改对应的商品统计记录
This commit is contained in:
parent
c324d025d5
commit
cbdf2c2431
@ -21,6 +21,7 @@ use app\common\model\store_order\StoreOrder;
|
|||||||
use app\common\model\store_order_cart_info\StoreOrderCartInfo;
|
use app\common\model\store_order_cart_info\StoreOrderCartInfo;
|
||||||
use app\common\model\store_product\StoreProduct;
|
use app\common\model\store_product\StoreProduct;
|
||||||
use app\common\model\store_product_attr_value\StoreProductAttrValue;
|
use app\common\model\store_product_attr_value\StoreProductAttrValue;
|
||||||
|
use app\common\model\store_product_log\StoreProductLog;
|
||||||
use app\common\model\store_product_unit\StoreProductUnit;
|
use app\common\model\store_product_unit\StoreProductUnit;
|
||||||
use app\common\model\system_store\SystemStore;
|
use app\common\model\system_store\SystemStore;
|
||||||
use app\common\model\system_store\SystemStoreStaff;
|
use app\common\model\system_store\SystemStoreStaff;
|
||||||
@ -529,6 +530,12 @@ class OrderLogic extends BaseLogic
|
|||||||
'store_id' => $params['store_id'],
|
'store_id' => $params['store_id'],
|
||||||
'staff_id' => $params['staff_id'] ?? 0,
|
'staff_id' => $params['staff_id'] ?? 0,
|
||||||
], ['id' => $order['id']]);
|
], ['id' => $order['id']]);
|
||||||
|
//修改商品统计记录标识
|
||||||
|
(new StoreProductLog())->update(
|
||||||
|
[
|
||||||
|
'store_id' => $params['store_id']
|
||||||
|
], ['oid' => $order['id']]
|
||||||
|
);
|
||||||
(new StoreOrderCartInfo())->update([
|
(new StoreOrderCartInfo())->update([
|
||||||
'verify_code' => $params['verify_code'] . '-1',
|
'verify_code' => $params['verify_code'] . '-1',
|
||||||
'writeoff_time' => time(),
|
'writeoff_time' => time(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user