Merge branch 'script_gj' into 'master'

update

See merge request !1203
This commit is contained in:
2025-12-10 10:29:52 +08:00
@@ -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))
}
}
}
}