查询条件修改

This commit is contained in:
2024-07-01 17:10:11 +08:00
parent aa107962bd
commit c1857de354
@@ -186,6 +186,26 @@ public class DbUtils{
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