查询条件修改
This commit is contained in:
@@ -186,6 +186,26 @@ public class DbUtils{
|
|||||||
return query
|
return query
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static BasicDBObject buildSeaweedQuery2(def city = null, def region = null, def name = null, def cat = "district", def status = 0){
|
||||||
|
BasicDBObject query = new BasicDBObject()
|
||||||
|
if(city){
|
||||||
|
query.append("city", city)
|
||||||
|
}
|
||||||
|
if(region){
|
||||||
|
query.append("region", region)
|
||||||
|
}
|
||||||
|
if(name){
|
||||||
|
query.append("name", name)
|
||||||
|
}
|
||||||
|
if(cat != null){
|
||||||
|
query.append("cat", cat)
|
||||||
|
}
|
||||||
|
if(status != null){
|
||||||
|
query.append("status", status)
|
||||||
|
}
|
||||||
|
return query
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 把小区修改成删除状态
|
* 把小区修改成删除状态
|
||||||
* @param id
|
* @param id
|
||||||
|
|||||||
Reference in New Issue
Block a user