Commit e67dc2b0 by 赵增煜

bug修改

parent ba6c2c38
......@@ -52,7 +52,7 @@ public function handle(array $input): JsonResponse
// 循环插入数据
foreach($prescriptions as $prescriptionNo=>$prescription){
// 校验数据库中是否存在该数据
$externalPrescriptionModel = ExternalPrescriptionModel::where('prescription_no', $prescriptionNo)->first();
$externalPrescriptionModel = ExternalPrescriptionModel::where('external_prescription_id', $prescriptionNo)->first();
if( !$externalPrescriptionModel ){
$externalPrescriptionModel = new ExternalPrescriptionModel;
}
......
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