Browse Source

二次加工管理-导入时取消限制货主为空,改为限制为指定货主

Zhouzhendong 5 years ago
parent
commit
5a9071d132
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/ProcessController.php

+ 1 - 1
app/Http/Controllers/ProcessController.php

@@ -1027,7 +1027,7 @@ class ProcessController extends Controller
                     $this->log(__METHOD__,"二次加工单录入导入商品数据时添加货主".__FUNCTION__,json_encode($owner),Auth::user()['id']);
                 }
             }
-            $goods = Commodity::query()->with('barcodes')->whereNull('owner_id')
+            $goods = Commodity::query()->with('barcodes')->where('owner_id',$owner->id)//->whereNull('owner_id') TODO 保留,暂时不知为何限定货主为空
                 ->where('sku',$commodityData['sku'])->first();
             $commodity_barcodes = [];
             if (!$goods){