Browse Source

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 3 years ago
parent
commit
e25f6da340
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/his_service.go

+ 1 - 1
service/his_service.go View File

305
 			return db.Where("status = 1 AND user_org_id = ?", org_id).Preload("BaseDrugLib", "status=1")
305
 			return db.Where("status = 1 AND user_org_id = ?", org_id).Preload("BaseDrugLib", "status=1")
306
 		}).
306
 		}).
307
 		Preload("HisPrescriptionProject", func(db *gorm.DB) *gorm.DB {
307
 		Preload("HisPrescriptionProject", func(db *gorm.DB) *gorm.DB {
308
-			return db.Where("status = 1 AND user_org_id = ?", org_id).Preload("HisProject", "status=1").Preload("GoodType", "status=1")
308
+			return db.Where("status = 1 AND user_org_id = ?", org_id).Preload("HisProject", "status=1").Preload("GoodInfo", "status=1")
309
 		}).
309
 		}).
310
 		Where("user_org_id = ? AND status = 1 AND record_date = ? AND his_patient_id = ? AND order_status <> 2 AND p_type <> 1", org_id, record_date, his_patient_id).
310
 		Where("user_org_id = ? AND status = 1 AND record_date = ? AND his_patient_id = ? AND order_status <> 2 AND p_type <> 1", org_id, record_date, his_patient_id).
311
 		Find(&prescription).Error
311
 		Find(&prescription).Error