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)
def q = new BasicDBObject()
if(curPriceObj.commid){
q.put("date", curMonth)
q.put("commid", dist._id.toString())
}else{
// if(curPriceObj.commid){
// q.put("date", curMonth)
// q.put("commid", dist._id.toString())
// }else{
q.put("date", curMonth)
q.put("city", dist.city)
q.put("region", dist.region)
q.put("district_name", dist.name)
data.put("commid", dist._id.toString())
}
// }
DISTRICT_SELL_STAT.update(q , new BasicDBObject('$set', data),true,false)