|
|
@@ -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){
|