This commit is contained in:
2026-02-12 12:11:01 +08:00
parent bcaf5caacc
commit 6ebe985ca2
@@ -295,17 +295,17 @@ class DistrictSellStatBatch extends BaseBatch {
data.put("credit", weekendPriceObj.credit) data.put("credit", weekendPriceObj.credit)
def q = new BasicDBObject() def q = new BasicDBObject()
if(curPriceObj.commid){ // if(curPriceObj.commid){
q.put("date", curMonth) // q.put("date", curMonth)
q.put("commid", dist._id.toString()) // q.put("commid", dist._id.toString())
}else{ // }else{
q.put("date", curMonth) q.put("date", curMonth)
q.put("city", dist.city) q.put("city", dist.city)
q.put("region", dist.region) q.put("region", dist.region)
q.put("district_name", dist.name) q.put("district_name", dist.name)
data.put("commid", dist._id.toString()) data.put("commid", dist._id.toString())
} // }
DISTRICT_SELL_STAT.update(q , new BasicDBObject('$set', data),true,false) DISTRICT_SELL_STAT.update(q , new BasicDBObject('$set', data),true,false)