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