update
This commit is contained in:
+2
-2
@@ -60,7 +60,7 @@ class DistrictSellStatBatch extends BaseBatch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def calcMonthlyPrice(){
|
def calcMonthlyPrice(){
|
||||||
def citys = ["福州"]//CommonUtils.findAllCity()
|
def citys = CommonUtils.findAllCity()
|
||||||
def keys = new BasicDBObject("city", 1).append("name", 1).append("region", 1).append("estate_type2", 1)
|
def keys = new BasicDBObject("city", 1).append("name", 1).append("region", 1).append("estate_type2", 1)
|
||||||
|
|
||||||
def lastMonthWeekend = DateUtils.truncateDay(DateUtils.getLastSundayInWeekOfLastMonth(new Date()))
|
def lastMonthWeekend = DateUtils.truncateDay(DateUtils.getLastSundayInWeekOfLastMonth(new Date()))
|
||||||
@@ -75,7 +75,7 @@ class DistrictSellStatBatch extends BaseBatch {
|
|||||||
index++
|
index++
|
||||||
def districts = []
|
def districts = []
|
||||||
if(city == "福州"){
|
if(city == "福州"){
|
||||||
districts = FZ_DIST_COLL.find(new BasicDBObject("city", city).append("name","翔鹰山庄"), keys).toList()
|
districts = FZ_DIST_COLL.find(new BasicDBObject("city", city), keys).toList()
|
||||||
}else{
|
}else{
|
||||||
districts = DbUtils.seaweed.find(new BasicDBObject("city", city).append("cat", "district").append("visible", 0), keys).batchSize(2000)
|
districts = DbUtils.seaweed.find(new BasicDBObject("city", city).append("cat", "district").append("visible", 0), keys).batchSize(2000)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user