diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/cqrcb/SeaweedExport.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/cqrcb/SeaweedExport.groovy index dcaeb86a2..a437ea0c3 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/cqrcb/SeaweedExport.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/cqrcb/SeaweedExport.groovy @@ -29,6 +29,8 @@ class SeaweedExport { static DBCollection cityMapConn = MongoUtils.getCollectionByName("business", "fangjia_official_area_map", "192.168.0.43", 28017) static ExecutorService executorService = Executors.newFixedThreadPool(30) + static final DBCollection seaweed = MongoUtils.getCollectionByName("fangjia", "seaweed", "192.168.0.43", 28017) + static def map = new ConcurrentHashMap() static void main(String[] args) { @@ -68,7 +70,7 @@ class SeaweedExport { filter.put("live_date", 1) // 交房时间 filter.put("elevator", 1) // 电梯 - DBObject obj = DbUtils.seaweed.findById(id) + DBObject obj = seaweed.findOne(new ObjectId(id)) if (obj) { ret[0] = obj.estate_company ret[1] = obj.developer diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/util/SeaweedUtils.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/util/SeaweedUtils.groovy index f21ff7ae7..668172385 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/util/SeaweedUtils.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/util/SeaweedUtils.groovy @@ -83,7 +83,7 @@ class SeaweedUtils { static formatCarSiteCount(def car_site_count) { if (car_site_count && FieldValidatorUtils.checkValue(car_site_count)) { long val = Long.valueOf(car_site_count) - if (val > 2000 || val < 100) { + if (val > 2500 || val < 100) { return "" } return val;