From f6bf27b743d8bacdf680f311ea424f56fb168d6d Mon Sep 17 00:00:00 2001 From: gaojuan Date: Wed, 8 Feb 2023 14:33:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E8=8B=8F=E5=B7=9E=E6=88=BF=E6=BA=90?= =?UTF-8?q?=20=E5=87=8F=E5=B0=91=E4=B8=80=E4=B8=AA=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ccbevaluation/ronghe/ExportDistrictRongHe.groovy | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/ronghe/ExportDistrictRongHe.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/ronghe/ExportDistrictRongHe.groovy index 33a6b05c2..d43bfa2cb 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/ronghe/ExportDistrictRongHe.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/ronghe/ExportDistrictRongHe.groovy @@ -77,7 +77,7 @@ class ExportDistrictRongHe extends BaseBatch{ } //2月8号 临时导出苏州一年的数据 -// exportBigdataForsale("2022-01-01", new_dists) //现在按updatetime导出 + exportBigdataForsale("2022-01-01", new_dists) //现在按updatetime导出 SSHHelper jschCommand = new SSHHelper(); System.out.println(jschCommand.executeCommand("sh /home/ccb_rh/output/rh_package.sh ${curDate}")); @@ -1310,10 +1310,11 @@ class ExportDistrictRongHe extends BaseBatch{ def exportBigdataForsale(publishDate, new_dists){ //["北京","上海"] + citys = ["苏州"] def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMMdd"); - def fileName = "/ccb_rh/${curDate}/FJW_000000_000000_BIGDATA_FORSALE_GJ_ADD_${curDate}_0001.dat" + def fileName = "/ccb_rh/${curDate}/FJW_000000_000000_BIGDATA_FORSALE_FJW_ADD_${curDate}_0001.dat" if(CommonDatautils.isWindow()){ - fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\ccb_rh\\${curDate}\\FJW_000000_000000_BIGDATA_FORSALE_GJ_ADD_${curDate}_0001.dat" + fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\ccb_rh\\${curDate}\\FJW_000000_000000_BIGDATA_FORSALE_FJW_ADD_${curDate}_0001.dat" } def headers = []//["城市ID","出售ID","挂牌房屋ID","城市名称","行政区ID","行政区名称","小区ID","小区名称","楼栋ID","楼栋编号","楼栋名称","单元ID","单元编号","单元名称","户ID","详细地址","建筑年代","权属","权属年限","单价","总价","出售付款方式","所在楼层","总楼层","建筑类型","室内结构","建筑结构","建筑面积","套内面积","户型","室","厅","厨","卫","朝向","装修情况","是否有电梯","几梯几户","发布时间","到期时间","是否首发","房源数据来源","中介公司ID","中介公司名称","发布人","发布人电话","描述信息","备注","创建时间","更新时间","来源公司","附加信息"] def index = 0 @@ -1420,7 +1421,7 @@ class ExportDistrictRongHe extends BaseBatch{ data << r.CREATETIME data << r.UPDATETIME data << r.SOURCECODE - data << r.ATTACH +// data << r.ATTACH //融合房源没有这个字段 allRows << data // if(allRows.size()%200000==0){ // FileUtils.batchCreateFile(allRows, fileName, headers, "utf-8", true);