From a9e7c4fa4b668c1209c24b52809a7c4bedd41db5 Mon Sep 17 00:00:00 2001 From: Jian Shen Date: Mon, 23 May 2022 11:45:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BD=AE=E4=BF=A1=E5=BA=A6?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E8=87=B385?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ccbevaluation/OracleDistrictBasePrice2Mongo85.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/OracleDistrictBasePrice2Mongo85.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/OracleDistrictBasePrice2Mongo85.groovy index 64449541a..a824a3d7e 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/OracleDistrictBasePrice2Mongo85.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/OracleDistrictBasePrice2Mongo85.groovy @@ -27,14 +27,14 @@ class OracleDistrictBasePrice2Mongo85 { static final DBCollection communityBasePriceConn = MongoUtils.getCollectionByName("business", "community_base_price_gj", "192.168.0.85", 28017) static main(args) { - def sql = "SELECT cityname, distname, commid, commname, confi_rate FROM community_base_price_gj WHERE YEAR_MONTH='202205'" + def sql = "SELECT cityname, distname, commid, commname, confidence FROM community_base_price_gj WHERE YEAR_MONTH='202205'" def count = 0 sqlInstance.eachRow(sql, { r -> def city = r['cityname'] def region = RegionData.formatRegion(city, r['distname']) DBObject dbObject = new BasicDBObject("_id", r['commid']) - if (r['confi_rate'] != null) { - def credit = new BigDecimal(r['confi_rate']).setScale(2, BigDecimal.ROUND_HALF_UP).toDouble() + if (r['confidence'] != null) { + def credit = new BigDecimal(r['confidence']).setScale(2, BigDecimal.ROUND_HALF_UP).toDouble() DBObject updateObject = new BasicDBObject("city", city).append("region", region) .append("name", r['commname']) .append("credit", credit)