收入表中的医生ID是从用户表中引用的。它是收入表中的指针字段。我怎样才能获得那些特定医生的记录?我应该在里面诱导桌子吗?我只需要获取我需要显示的这些数据。
ParseQuery<ParseObject> query = ParseQuery.getQuery("Earnings");
query.equalTo("cuurentuserobjetid", "doctorID");
query.findInBackground(new FindCallback<ParseObject>() {
public void done(List<ParseObject> subscriptionList, ParseException e) {
}
}
});
答案 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) {
}
}
});