From 208d52949ef6c65eb851ff8e40ae20337efd9829 Mon Sep 17 00:00:00 2001 From: gaojuan Date: Thu, 5 Aug 2021 21:14:38 +0800 Subject: [PATCH] path update --- .../script/ccbevaluation/ThirdPartyPriceBatch.groovy | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/ThirdPartyPriceBatch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/ThirdPartyPriceBatch.groovy index c4e81d699..f4b248b9c 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/ThirdPartyPriceBatch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/ThirdPartyPriceBatch.groovy @@ -44,8 +44,16 @@ class ThirdPartyPriceBatch extends BaseBatch { rows.addAll(rets) println index+" "+city+" "+rets.size() } + + + + def fileName = "/home/goojia/ccb/third_party_price.txt" + if(CommonDatautils.isWindow()){ + fileName = "d:\\数据\\建行\\房产估值\\数据文件\\txt\\third_party_price.txt" + } + def header = ["第三方均价ID","楼盘ID","小区名称","城市ID","城市名称","行政区ID","行政区名称","均价对应的月份","诸葛找房均价","安居客均价","房天下均价","链家均价","城市房产均价","麦田均价","贝壳均价","淘房365","中原均价","兔博士均价","Q房均价","房探均价","房多多均价","我爱我家均价","创建时间","更新时间","来源公司"] - FileUtils.batchCreateFile(rows, "d:\\数据\\建行\\房产估值\\数据文件\\txt\\third_party_price.txt", header, "utf-8", false); + FileUtils.batchCreateFile(rows, fileName, header, "utf-8", false); }