收入表中的医生id是从用户表引用的,是收入表中的指针字段。我怎样才能只得到那些特定医生的记录?我应该把桌子放进去吗?我只需要得到这些我需要显示的数据。

 ParseQuery<ParseObject> query = ParseQuery.getQuery("Earnings");
           query.equalTo("cuurentuserobjetid", "doctorID");
            query.findInBackground(new FindCallback<ParseObject>() {
                public void done(List<ParseObject> subscriptionList, ParseException e) {

                    }

                }

            });

最佳答案

ParseQuery<ParseObject> query = ParseQuery.getQuery("Earnings");
           query.equalTo("cuurentuserobjetid", ParseObject.createWithoutData("_User","yourDoctorId"));
            query.findInBackground(new FindCallback<ParseObject>() {
                public void done(List<ParseObject> subscriptionList, ParseException e) {

                    }
                }
            });

10-07 22:26