+5
-5
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user