修改重庆农商行开发商数据导出

This commit is contained in:
Jian Shen
2022-04-06 15:37:03 +08:00
parent 0bc39f2342
commit 3571c5484e
2 changed files with 4 additions and 2 deletions
@@ -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
@@ -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;