From 72b6cfdc0b1d158da7de782044e591df0aa4cc38 Mon Sep 17 00:00:00 2001 From: lq Date: Fri, 1 Nov 2024 11:18:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=80=BB=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E4=BB=B7=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/models/forms/drug/ImportForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/models/forms/drug/ImportForm.php b/admin/models/forms/drug/ImportForm.php index 3e63f45..5b6fe01 100644 --- a/admin/models/forms/drug/ImportForm.php +++ b/admin/models/forms/drug/ImportForm.php @@ -349,7 +349,7 @@ class ImportForm extends BaseModel } } - public function ExportUpdateDrugPrice($data, $storeId) + public function ExportUpdateDrugPrice($data) { if (empty($data)) { throw new Exception('导入数据为空'); @@ -365,7 +365,7 @@ class ImportForm extends BaseModel $errors[] = $item['药品ID'] . '导入失败,原因:药品价格为空【'. $item['销售价格'].'】'; continue; } - $DrugStoreDrug = DrugStoreDrug::find()->where(['drug_id' => trim($item['药品ID']), 'store_id' => $storeId])->one(); + $DrugStoreDrug = DrugStoreDrug::find()->where(['drug_id' => trim($item['药品ID'])])->one(); if ($DrugStoreDrug) { $DrugStoreDrug->setAttribute('drug_id', trim($item['药品ID']));