Browse Source

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

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

+ 1 - 1
service/his_service.go View File

@@ -1062,7 +1062,7 @@ func GetDoctorList(orgid int64) (role []*models.SgjUserAdminRole, err error) {
1062 1062
 
1063 1063
 func GetDoctorListTwo(orgid int64) (role []*models.SgjUserAdminRole, err error) {
1064 1064
 
1065
-	db := UserReadDB().Table("sgj_user_admin_role as x").Where("x.status =1 AND x.user_type = 2")
1065
+	db := UserReadDB().Table("sgj_user_admin_role as x").Where("x.status =1 AND x.user_type = 2 AND x.org_id = ?", orgid)
1066 1066
 	table := UserReadDB().Table("sgj_user_admin as a")
1067 1067
 	fmt.Println(table)
1068 1068
 	err = db.Select("x.id,x.admin_user_id,x.org_id,x.app_id,x.role_id,x.user_name,x.avatar,x.user_type,x.user_title,x.intro,x.user_title_name,x.role_ids,x.message,x.sex,x.birthday,x.sort,x.is_sort,x.department,x.department_id,x.age,x.nation,x.card_type,x.id_card,x.education,x.study_major_name,x.work_major_name,x.role_type,x.medical_code,x.doctor_code,x.licensing,x.job_number,x.prescription_qualification_identification,x.identification_outpatients,x.start_time,x.medical_range_code,x.medical_level,x.medical_type_job,x.pharmacist_registration_number,x.doctor_range_code,x.doctor_level,x.doctor_type_job,x.doctor_number,x.outpatient_illness_category,x.is_active,x.active_status,a.mobile").Joins("left join sgj_user_admin as a on a.id = x.admin_user_id").Scan(&role).Error