我想比较指针与对象ID如何实现它

时间:2015-12-17 05:52:19

标签: android parse-platform

收入表中的医生ID是从用户表中引用的。它是收入表中的指针字段。我怎样才能获得那些特定医生的记录?我应该在里面诱导桌子吗?我只需要获取我需要显示的这些数据。

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

                    }

                }

            });

1 个答案:

答案 0 :(得分:0)

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) {

                    }
                }
            });