Browse Source

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

csx 3 years ago
parent
commit
262bb1c3f1
2 changed files with 2 additions and 2 deletions
  1. 1 1
      conf/app.conf
  2. 1 1
      service/his_service.go

+ 1 - 1
conf/app.conf View File

@@ -44,7 +44,7 @@ appsecret="61ee2e6268497d5aa9de0b0187c39aea"
44 44
 
45 45
 
46 46
 [prod]
47
-org_id = 9504
47
+org_id = 10106
48 48
 mobile_token_expiration_second = 86400
49 49
 httpdomain = https://api.xt.kuyicloud.com
50 50
 sso_domain = https://sso.kuyicloud.com

+ 1 - 1
service/his_service.go View File

@@ -1031,7 +1031,7 @@ func GetMonthHisPrescription(org_id int64, patient_id int64, start_time int64, e
1031 1031
 			return db.Where("status = 1 AND user_org_id = ?", org_id).Preload("BaseDrugLib", "status=1")
1032 1032
 		}).
1033 1033
 		Preload("HisPrescriptionProject", func(db *gorm.DB) *gorm.DB {
1034
-			return db.Where("status = 1 AND user_org_id = ?", org_id).Preload("HisProject", "status=1").Preload("GoodType", "status=1")
1034
+			return db.Where("status = 1 AND user_org_id = ?", org_id).Preload("HisProject", "status=1").Preload("GoodInfo", "status=1")
1035 1035
 		}).
1036 1036
 		Where("user_org_id = ? AND record_date >= ? AND record_date <= ? AND patient_id = ? AND order_status <> 2 AND status = 1  AND p_type <> 1", org_id, start_time, end_time, patient_id).
1037 1037
 		Find(&prescription).Error