陈少旭 1 vecka sedan
förälder
incheckning
b49724feae
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      service/his_service.go

+ 1 - 1
service/his_service.go Visa fil

@@ -1743,7 +1743,7 @@ func GetHisPrescriptionByType(change_type int64, record_time int64, org_id int64
1743 1743
 	return
1744 1744
 }
1745 1745
 
1746
-func GetCallHisPrescriptions(start_time int64, end_time int64, org_id int64, patient_id int64, p_type int64) (advice []*VMOtherHisPrescriptionInfo, err error) {
1746
+func GetCallHisPrescriptions(start_time int64, end_time int64, org_id int64, patient_id int64, p_type int64) (advice []VMOtherHisPrescriptionInfo, err error) {
1747 1747
 	err = readDb.Model(&VMOtherHisPrescriptionInfo{}).Where("patient_id = ? AND user_org_id = ? AND  status=1 AND record_date >= ? AND record_date <= ? AND p_type = ?", patient_id, org_id, start_time, end_time, p_type).
1748 1748
 		Preload("VMHisPrescription", func(db *gorm.DB) *gorm.DB {
1749 1749
 			return db.Where("status = 1 AND user_org_id = ?", org_id).