|
@@ -247,6 +247,6 @@ func GetXcxPatientInfo(patient_id int64) (models.XcxPatients, error) {
|
247
|
247
|
|
248
|
248
|
func GetOrgInfo(id int64) (models.XcxSgjUserOrg, error) {
|
249
|
249
|
org := models.XcxSgjUserOrg{}
|
250
|
|
- err := XTReadDB().Model(&org).Where("id = ? and status= 1", id).Find(&org).Error
|
|
250
|
+ err := UserReadDB().Model(&org).Where("id = ? and status= 1", id).Find(&org).Error
|
251
|
251
|
return org, err
|
252
|
252
|
}
|