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