update
This commit is contained in:
+10
-8
@@ -69,14 +69,16 @@ class DistrictSellStatBatch extends BaseBatch {
|
|||||||
def weekend = obj.weekend
|
def weekend = obj.weekend
|
||||||
def startMonth = DateUtils.formatDateByPattern(weekend, "yyyyMM").toInteger()
|
def startMonth = DateUtils.formatDateByPattern(weekend, "yyyyMM").toInteger()
|
||||||
def months = DateUtils.getMonthList(startMonth)
|
def months = DateUtils.getMonthList(startMonth)
|
||||||
months = months[1..(months.size()-1)]
|
if(months.size()>1){
|
||||||
println months
|
months = months[1..(months.size()-1)]
|
||||||
for(def month : months){
|
println months
|
||||||
def curDate = DateUtils.parseFromTightByPattern(month.toString()+"01", "yyyyMMdd")
|
for(def month : months){
|
||||||
calcMonthlyPriceByName(curDate, command.city, command.region, command.name)
|
def curDate = DateUtils.parseFromTightByPattern(month.toString()+"01", "yyyyMMdd")
|
||||||
}
|
calcMonthlyPriceByName(curDate, command.city, command.region, command.name)
|
||||||
//删除命令
|
}
|
||||||
COMMAND_COLL.remove(new BasicDBObject("_id", id))
|
//删除命令
|
||||||
|
COMMAND_COLL.remove(new BasicDBObject("_id", id))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user