Commit ffd8c050 by lujunyi

修改导入用量bug

parent a421c96f
......@@ -42,7 +42,7 @@ public function handle(array $input): JsonResponse
}, $row);
$dosageModel = null;
if (isset($item['用法用量']) && $item['用法用量']) {
$dosageModel = DosageModel::where('dosage_desc', $item['用法用量'])->first();
$dosageModel = DosageModel::where('dosage_desc', $item['用法用量'])->where('pharmacy_id', $pharmacyId)->first();
}
if (! $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