Merge branch 'script_gj' into 'master'
注释掉不需要的统计 See merge request !1095
This commit is contained in:
+4
-4
@@ -32,9 +32,9 @@ class CPDBAvgGrowthRateBatch extends BaseBatch {
|
||||
|
||||
@Override
|
||||
public void process(Object args) {
|
||||
println "开始统计cpdb抵押品库中平均增长率排名"
|
||||
cpdb_price_coll.remove(new BasicDBObject("date", getBeforeMonth(-1)))
|
||||
stat()
|
||||
// println "开始统计cpdb抵押品库中平均增长率排名"
|
||||
// cpdb_price_coll.remove(new BasicDBObject("date", getBeforeMonth(-1)))
|
||||
// stat()
|
||||
}
|
||||
|
||||
def stat() {
|
||||
@@ -46,7 +46,7 @@ class CPDBAvgGrowthRateBatch extends BaseBatch {
|
||||
def region = data.region
|
||||
def name = data.original_district_name
|
||||
if (city && region && name) {
|
||||
JSONObject json = OpenApiClient.evaluateDistrictPrice(city, region, name, area, 0, null, null, getBeforeMonthDate(-1))
|
||||
JSONObject json = OpenApiClient.evaluateDistrictPrice(city, region, name, area, 0, null, null, getBeforeMonthDate(-1))
|
||||
JSONObject json2 = OpenApiClient.evaluateDistrictPrice(city, region, name, area, 0, null, null, getBeforeMonthDate(-2))
|
||||
if (json == null) {
|
||||
json = OpenApiClient.evaluateDistrictPrice(city, region, name, area, 0, null, null, getBeforeMonthDate(-1))
|
||||
|
||||
Reference in New Issue
Block a user