修复总后台导入价格
This commit is contained in:
@@ -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']));
|
||||
|
||||
Reference in New Issue
Block a user