From ba9bffb81d4bf56bbe9ca07bd1cbb87716d6d3b6 Mon Sep 17 00:00:00 2001 From: gaojuan1 Date: Mon, 16 Dec 2024 15:52:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../script/gj/district/DistrictStatRentCleanBatch.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/district/DistrictStatRentCleanBatch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/district/DistrictStatRentCleanBatch.groovy index 31836711f..edb26ccb1 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/district/DistrictStatRentCleanBatch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/district/DistrictStatRentCleanBatch.groovy @@ -38,13 +38,14 @@ class DistrictStatRentCleanBatch extends BaseBatch{ def delRets = [] for(def d : dbcursor){ if(d.district_name && !keys.contains(d.city+"@"+d.region+"@"+d.district_name)){ + println d.city+"@"+d.region+"@"+d.district_name delRets << d._id } if(delRets.size()>=100){ def delquery = new BasicDBObject() delquery.put("_id", new BasicDBObject('$in', delRets)) RENT_DIST_STAT_COLL.remove(delquery) - println new Date() + delRets.clear() } } }