diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/fuzhou/DistrictSellStatBatch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/fuzhou/DistrictSellStatBatch.groovy index ff963b129..5a6cba7f2 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/fuzhou/DistrictSellStatBatch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/fuzhou/DistrictSellStatBatch.groovy @@ -202,13 +202,18 @@ class DistrictSellStatBatch extends BaseBatch { if(curPrice!=curPriceObj.avg_price){ def data = new BasicDBObject() data.put("m_date", new Date()) - data.put("commid", dist._id.toString()) +// data.put("commid", dist._id.toString()) data.put("mom", mom) data.put("yoy", yoy) data.put("avg_price",curPrice) data.put("value_type", weekendPriceObj.value_type) data.put("credit", weekendPriceObj.credit) - DISTRICT_SELL_STAT.update(new BasicDBObject("_id", curPriceObj._id) , new BasicDBObject('$set', data),true,false) + + def q = new BasicDBObject() + q.put("date", curMonth) + q.put("commid", dist._id.toString()) + DISTRICT_SELL_STAT.update(q , new BasicDBObject('$set', data),true,false) +// DISTRICT_SELL_STAT.update(new BasicDBObject("_id", curPriceObj._id) , new BasicDBObject('$set', data),true,false) println "[update]"+totalCount.get()+" "+ dist.city+" "+dist.name } }else{