From 2a37912e7e4e6827b474e7431a179852b32aa388 Mon Sep 17 00:00:00 2001 From: gaojuan Date: Mon, 17 Jan 2022 13:21:02 +0800 Subject: [PATCH] update --- .../com/fangjia/script/gj/level/DistrictIndexBatch.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/level/DistrictIndexBatch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/level/DistrictIndexBatch.groovy index f2fbed25d..e0460cf88 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/level/DistrictIndexBatch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/level/DistrictIndexBatch.groovy @@ -64,6 +64,7 @@ class DistrictIndexBatch extends BaseBatch{ def cityCodeDatas = CcbCommonUtils.findCityCodeValue() def citys = CommonDatautils.findAllCity(); citys.remove("上海") + citys.remove("北京") for(def city : citys){ def dists = CommonDatautils.findAllDistrictByCity(city, "district", ["city","alias","region","name", "finish_building_date","estate_charge","lat","lng","lng2","lat2"]) // dists = dists[0..20] @@ -152,9 +153,9 @@ class DistrictIndexBatch extends BaseBatch{ def headers = ["城市","区域","名称","户均价格","物业费","小区价格在区域排名","消费","潜力"] - def fileName = "/home/gj/potentiality.dat" + def fileName = "/home/gj/potentiality_${city}.dat" if(CommonDatautils.isWindow()){ - fileName = "D:\\数据\\评级\\上海综合潜力.dat" + fileName = "D:\\数据\\评级\\${city}综合潜力.dat" } FileUtils.batchCreateFile(datas, fileName, headers, "utf-8", true);