From ccb4b1489aff8631280687b633e643c276356a00 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 16 Nov 2023 15:24:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/repositories/store/product/ProductRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index cb0b7fab..84659ffe 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -2354,7 +2354,6 @@ class ProductRepository extends BaseRepository } } if ($orderProduct->is_imported == 0) { - $stockIn=$orderProduct['product_num']; ProductAttrValue::where('mer_id', $merId) @@ -2374,6 +2373,7 @@ class ProductRepository extends BaseRepository if (!$model->save($data)) { throw new ValidateException('入库失败'); } + $orderProduct->save(['is_imported' => 1]); Db::commit(); return true; }else{