From c86d6baac7bbccd6ec729f67a63b52248804f6e1 Mon Sep 17 00:00:00 2001 From: gaojuan Date: Sat, 22 Jul 2023 17:52:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=8F=E5=B7=9E=E4=BB=B7=E6=A0=BC=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fangjia/script/fuzhou/DistrictPriceExportBatch.groovy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/fuzhou/DistrictPriceExportBatch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/fuzhou/DistrictPriceExportBatch.groovy index 167396b64..1e5037735 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/fuzhou/DistrictPriceExportBatch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/fuzhou/DistrictPriceExportBatch.groovy @@ -296,6 +296,10 @@ class DistrictPriceExportBatch extends BaseBatch{ def udata = new BasicDBObject() udata.put("m_date", new Date()) udata.put("avg_price", r[5]) + + //按comm_id修改,小区名重新赋值,防止区域和小区名修改 + udata.put("region", r[3]) + udata.put("name", r[4]) FZ_DISTRICT_STAT_COLL.update(q, new BasicDBObject('$set', udata)) }else{ def o = new BasicDBObject()