放开小区详情账号限制
This commit is contained in:
@@ -92,11 +92,6 @@ public class DbUtils{
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void executeQueryOnSeawater(BasicDBObject query,Closure c, BasicDBObject fields = null){
|
||||
seawater.find(query,fields).batchSize(10000).each(c)
|
||||
}
|
||||
|
||||
public static void executeQueryOnSeaweed(BasicDBObject query,Closure c, BasicDBObject fields = null){
|
||||
SEAWEED_SLAVE.find(query,fields).batchSize(1000).each(c)
|
||||
}
|
||||
@@ -171,10 +166,6 @@ public class DbUtils{
|
||||
return SEAWEED_SLAVE.findOne(query,fields);
|
||||
}
|
||||
|
||||
public static int executeCountOnSeawater(BasicDBObject query){
|
||||
return seawater.count(query);
|
||||
}
|
||||
|
||||
public static BasicDBObject buildSeaweedQuery(def city = null, def region = null, def name = null, def cat = "district", def visible = 0){
|
||||
BasicDBObject query = new BasicDBObject()
|
||||
if(city){
|
||||
@@ -350,31 +341,6 @@ public class DbUtils{
|
||||
return district.lat && district.lng && district.lng > 0 && district.lat > 0
|
||||
}
|
||||
|
||||
/**
|
||||
* 记录修改小区库的操作日志
|
||||
* @param city
|
||||
* @param region
|
||||
* @param name
|
||||
* @return
|
||||
*/
|
||||
def static saveDeleteLog(String city, String region,String name,String category,int status){
|
||||
if(status!=1){
|
||||
return
|
||||
}
|
||||
DBObject obj = new BasicDBObject()
|
||||
obj.put("city", city);
|
||||
obj.put("region", region);
|
||||
obj.put("district_name", name);
|
||||
obj.put("category" , category)
|
||||
obj.put("origin" , "脚本")
|
||||
if(status==1){
|
||||
obj.put("type" , "remove")
|
||||
}
|
||||
obj.put("c_date" , new Date())
|
||||
obj.put("m_date" , new Date())
|
||||
OPERATION_LOG.save(obj)
|
||||
}
|
||||
|
||||
public static DBCollection getCollection(String host, int port, String dbName ,String collName){
|
||||
def collection = COLL_CACHE["${host}#${port}#${dbName}#${collName}"]
|
||||
if(!collection){
|
||||
|
||||
Reference in New Issue
Block a user