|
@@ -48,10 +48,10 @@ func GetAllDoctorAndNurse(orgId, appid int64) (doctors []AdminUserList, nurses [
|
48
|
48
|
}
|
49
|
49
|
|
50
|
50
|
func GetAllAdminUsers(orgId, appid int64) (list []*AdminUserList, err error) {
|
51
|
|
- fmt.Println("orgid", orgId)
|
52
|
|
- fmt.Println("appid", appid)
|
53
|
|
- // err = readUserDb.Table("sgj_user_admin_role as uar").Joins("JOIN sgj_user_admin as ua ON ua.id = uar.admin_user_id").Where("uar.status=1 and uar.org_id=? and uar.app_id =? and ua.status=1", orgId, appid).Select("ua.id, uar.user_name as name, uar.user_type").Scan(&list).Error
|
54
|
|
- err = readUserDb.Table("sgj_user_admin_role as uar").Joins("JOIN sgj_user_admin as ua ON ua.id = uar.admin_user_id").Where("uar.status=1 and ua.status=1").Select("ua.id, uar.user_name as name, uar.user_type").Scan(&list).Error
|
|
51
|
+ //fmt.Println("orgid", orgId)
|
|
52
|
+ //fmt.Println("appid", appid)
|
|
53
|
+ err = readUserDb.Table("sgj_user_admin_role as uar").Joins("JOIN sgj_user_admin as ua ON ua.id = uar.admin_user_id").Where("uar.status=1 and uar.org_id=? and uar.app_id =? and ua.status=1", orgId, appid).Select("ua.id, uar.user_name as name, uar.user_type").Scan(&list).Error
|
|
54
|
+ //err = readUserDb.Table("sgj_user_admin_role as uar").Joins("JOIN sgj_user_admin as ua ON ua.id = uar.admin_user_id").Where("uar.status=1 and ua.status=1").Select("ua.id, uar.user_name as name, uar.user_type").Scan(&list).Error
|
55
|
55
|
return
|
56
|
56
|
}
|
57
|
57
|
|