+2
-2
@@ -38,8 +38,8 @@ class ExportOracleData {
|
|||||||
exportCommunityBuileType()
|
exportCommunityBuileType()
|
||||||
|
|
||||||
exportThirdPartyPrice2(lastMonth)
|
exportThirdPartyPrice2(lastMonth)
|
||||||
exportBigdataForsale("2022-03-19")
|
exportBigdataForsale("2022-04-19")
|
||||||
exportBigdataDeal("2022-03-01")
|
exportBigdataDeal("2022-04-01")
|
||||||
|
|
||||||
|
|
||||||
//计算结果相关
|
//计算结果相关
|
||||||
|
|||||||
+29
-4
@@ -590,6 +590,23 @@ class CommonDatautils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static def findDistrictCount(String city, String region, String name, String cat){
|
||||||
|
|
||||||
|
DBObject q = new BasicDBObject();
|
||||||
|
q.put("city", city);
|
||||||
|
if(region){
|
||||||
|
q.put("region", region);
|
||||||
|
}
|
||||||
|
|
||||||
|
q.put("name", name);
|
||||||
|
q.put("cat", cat)
|
||||||
|
q.put("status", 0)
|
||||||
|
|
||||||
|
def count = getDataStoreConnection().count(q);
|
||||||
|
return count;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public static def findDistrict(String city, String region, String name, String cat){
|
public static def findDistrict(String city, String region, String name, String cat){
|
||||||
|
|
||||||
DBObject q = new BasicDBObject();
|
DBObject q = new BasicDBObject();
|
||||||
@@ -613,6 +630,7 @@ class CommonDatautils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static def findDistrictList(String city, String region, String name, String cat){
|
public static def findDistrictList(String city, String region, String name, String cat){
|
||||||
|
|
||||||
DBObject q = new BasicDBObject();
|
DBObject q = new BasicDBObject();
|
||||||
@@ -837,12 +855,18 @@ class CommonDatautils {
|
|||||||
keys.put("finish_building_date", 1)
|
keys.put("finish_building_date", 1)
|
||||||
keys.put("mapping_alias", 1)
|
keys.put("mapping_alias", 1)
|
||||||
keys.put("sid", 1)
|
keys.put("sid", 1)
|
||||||
DSCursor cursor = getDataStoreConnection().find(q, keys);
|
try{
|
||||||
if(cursor){
|
DSCursor cursor = getDataStoreConnection().find(q, keys);
|
||||||
for(def obj : cursor){
|
if(cursor){
|
||||||
return obj;
|
for(def obj : cursor){
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}catch(Exception e){
|
||||||
|
println "error_id:"+id
|
||||||
|
e.printStackTrace()
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2398,6 +2422,7 @@ class CommonDatautils {
|
|||||||
q.put("block", block);
|
q.put("block", block);
|
||||||
}
|
}
|
||||||
q.put("cat", cat);
|
q.put("cat", cat);
|
||||||
|
q.put("status",0)
|
||||||
def cur = getDataStoreConnection().find(q);
|
def cur = getDataStoreConnection().find(q);
|
||||||
return cur.count();
|
return cur.count();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user