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": {