Browse Source

提交代码

陈少旭 1 year ago
parent
commit
e96577a0b6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/his_service.go

+ 1 - 1
service/his_service.go View File

@@ -944,7 +944,7 @@ func FindPatientPrescriptionInfo(org_id int64, patient_id int64, record_date int
944 944
 }
945 945
 
946 946
 func FindPatientPrescriptionInfoTen(org_id int64, patient_id int64, start_time int64, end_time int64, p_type int64) (info []models.HisPrescriptionInfo, err error) {
947
-	err = readDb.Model(&models.HisPrescriptionInfo{}).Where("user_org_id = ? AND status = 1 AND record_date >= ? and record_date <= ? AND patient_id = ? AND p_type = ?", org_id, start_time, end_time, patient_id, p_type).First(&info).Error
947
+	err = readDb.Model(&models.HisPrescriptionInfo{}).Where("user_org_id = ? AND status = 1 AND record_date >= ? and record_date <= ? AND patient_id = ? AND p_type = ?", org_id, start_time, end_time, patient_id, p_type).Find(&info).Error
948 948
 	return
949 949
 
950 950
 }