From b58b339665eff93901963fe67ff1a4697dd09934 Mon Sep 17 00:00:00 2001 From: gaojuan Date: Mon, 13 Sep 2021 16:01:42 +0800 Subject: [PATCH 1/2] =?UTF-8?q?19=E5=B9=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fangjia/script/ccbevaluation/UpdateHouseRegion.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/UpdateHouseRegion.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/UpdateHouseRegion.groovy index 0478870bc..dbb4d19d3 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/UpdateHouseRegion.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/UpdateHouseRegion.groovy @@ -33,7 +33,7 @@ class UpdateHouseRegion { def run(){ def city = "º¼ÖÝ" // findCount(city, 20210101); - def rets = findHouseSource(city, 20200101, 20200731) + def rets = findHouseSource(city, 20190701, 20191231) batchUpdate(city, rets); } @@ -91,7 +91,7 @@ class UpdateHouseRegion { def findHouseSource(def city, def startDate, def endDate){ final StringBuffer sqlBuffer = new StringBuffer() - sqlBuffer.append("SELECT * FROM \"seawater-2020\" WHERE 1=1") + sqlBuffer.append("SELECT * FROM \"seawater-2019\" WHERE 1=1") sqlBuffer.append(" and city = '"+city+"'") sqlBuffer.append(" and cat = 'sell'") sqlBuffer.append(" and p_date >="+startDate).append(" and p_date <"+endDate); @@ -109,7 +109,7 @@ class UpdateHouseRegion { def updateHouseRegion2(def url, def region){ def header = [:] header["Authorization"] = "Basic ${Base64.getEncoder().encodeToString("developer:5e8edd851d2fdfbd7415232c67367cc3".getBytes("UTF-8"))}".toString() - String seawaterUrl = "http://192.168.0.206:9200/seawater-2020/_update_by_query?conflicts=proceed&scroll_size=1000&wait_for_completion=false" + String seawaterUrl = "http://192.168.0.206:9200/seawater-2019/_update_by_query?conflicts=proceed&scroll_size=1000&wait_for_completion=false" def body = """ { "script": { From 7543adbc37939677e17de2acf35707e46bb6ccfc Mon Sep 17 00:00:00 2001 From: gaojuan Date: Mon, 13 Sep 2021 16:17:26 +0800 Subject: [PATCH 2/2] 19 --- .../com/fangjia/script/ccbevaluation/UpdateHouseRegion.groovy | 1 - 1 file changed, 1 deletion(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/UpdateHouseRegion.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/UpdateHouseRegion.groovy index dbb4d19d3..15d2fe3d4 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/UpdateHouseRegion.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/UpdateHouseRegion.groovy @@ -32,7 +32,6 @@ class UpdateHouseRegion { } def run(){ def city = "º¼ÖÝ" -// findCount(city, 20210101); def rets = findHouseSource(city, 20190701, 20191231) batchUpdate(city, rets); }