Commit f91b3b7a by lujunyi

修改导入用量bug

parent 90f2b164
...@@ -42,7 +42,7 @@ public function handle(array $input): JsonResponse ...@@ -42,7 +42,7 @@ public function handle(array $input): JsonResponse
}, $row); }, $row);
$dosageModel = null; $dosageModel = null;
if (isset($item['用法用量']) && $item['用法用量']) { if (isset($item['用法用量']) && $item['用法用量']) {
$dosageModel = DosageModel::where('dosage_desc', $item['用法用量'])->first(); $dosageModel = DosageModel::where('dosage_desc', $item['用法用量'])->where('pharmacy_id', $pharmacyId)->first();
} }
if (! $dosageModel) { if (! $dosageModel) {
$dosageModel = new DosageModel; $dosageModel = new DosageModel;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment