我正在使用多个元素在Parse中创建一个查询。问题是我的查询只返回第一个和最后一个结果,我不知道为什么。任何有关此问题的见解或更好的查询多个对象的方法都将受到赞赏。
var GroupDetailObject = Parse.Object.extend("Group_Detail");
var query = new Parse.Query(GroupDetailObject);
var tempQuery = new Parse.Query(GroupDetailObject);
query.equalTo("groupId", {
__type: "Pointer",
className: "Groups",
objectId: groups[0].objectId
});
for (ss = 1; ss < groups.length; ss++) {
tempQuery.equalTo("groupId", {
__type: "Pointer",
className: "Groups",
objectId: groups[ss].objectId
});
query = Parse.Query.or(query, tempQuery);
}
query.find({
答案 0 :(得分:0)
public class Product {
private String productName;
public String getProductName() {
if (productName != null || !productName.equals("")){
return productName;
}else {
return "Product Name Not found";
}
}
public void setProductName(String productName) {
String productName2 = productName;
if (productName != null || !productName2.equals("")){
this.productName = productName;
}else {
this.productName = "Product Name Not found";
}
}
}