临时跑数据
This commit is contained in:
+14
-14
@@ -34,21 +34,21 @@ class ExportPgsqlEvaluationResult {
|
|||||||
def curMonth = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), 0, "yyyyMM"));
|
def curMonth = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), 0, "yyyyMM"));
|
||||||
|
|
||||||
//计算结果相关
|
//计算结果相关
|
||||||
exportAvmEvaluationGJNB(curMonth)
|
// exportAvmEvaluationGJNB(curMonth)
|
||||||
exportAVMEvaluationItemGJNB(curMonth)
|
// exportAVMEvaluationItemGJNB(curMonth)
|
||||||
|
|
||||||
exportCityPrice(curMonth)
|
exportCityPrice(curMonth)
|
||||||
exportRegionPrice(curMonth)
|
exportRegionPrice(curMonth)
|
||||||
|
|
||||||
exportCommunityBasePrice(curMonth)
|
exportCommunityBasePrice(curMonth)
|
||||||
|
|
||||||
exportCommunityPdescribeGj(curMonth)
|
// exportCommunityPdescribeGj(curMonth)
|
||||||
exportCommCaseDetailGj(curMonth)
|
// exportCommCaseDetailGj(curMonth)
|
||||||
|
//
|
||||||
exportInOk()
|
// exportInOk()
|
||||||
|
//
|
||||||
SSHHelperTest jschCommand = new SSHHelperTest();
|
// SSHHelperTest jschCommand = new SSHHelperTest();
|
||||||
System.out.println(jschCommand.executeCommand("sh /home/ccb_evaluation/output/eval_package.sh ${curDate}"));
|
// System.out.println(jschCommand.executeCommand("sh /home/ccb_evaluation/output/eval_package.sh ${curDate}"));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -161,7 +161,7 @@ class ExportPgsqlEvaluationResult {
|
|||||||
def allRows = []
|
def allRows = []
|
||||||
for(def city : citys) {
|
for(def city : citys) {
|
||||||
def cityCode = cityCodeMap.get(city)
|
def cityCode = cityCodeMap.get(city)
|
||||||
def sql = "select gujia_trdpt_avprc_id,urbn_id,urbn_nm,gujiabds_clc_yrmo_val,gujia_bds_clc_avprc,gujia_bds_urbn_avprc,to_char(data_crt_tm,'yyyy-mm-dd hh24:mi:ss') as data_crt_tm,to_char(data_udt_tm,'yyyy-mm-dd hh24:mi:ss') as data_udt_tm,gujia_src_co from "+database+"avm_city_price_gj_h where gujiabds_clc_yrmo_val=${month} AND urbn_id='${cityCode}'";
|
def sql = "select gujia_trdpt_avprc_id,urbn_id,urbn_nm,gujiabds_clc_yrmo_val,gujia_bds_clc_avprc,gujia_bds_urbn_avprc,to_char(data_crt_tm,'yyyy-mm-dd hh24:mi:ss') as data_crt_tm,to_char(data_udt_tm,'yyyy-mm-dd hh24:mi:ss') as data_udt_tm,gujia_src_co from "+database+"avm_city_price_gj_h where urbn_id='${cityCode}'";//gujiabds_clc_yrmo_val=${month} AND
|
||||||
pgsqlInstance.eachRow(sql, { r ->
|
pgsqlInstance.eachRow(sql, { r ->
|
||||||
def data = []
|
def data = []
|
||||||
data << r.gujia_trdpt_avprc_id
|
data << r.gujia_trdpt_avprc_id
|
||||||
@@ -188,7 +188,7 @@ class ExportPgsqlEvaluationResult {
|
|||||||
def allRows = []
|
def allRows = []
|
||||||
for(def city : citys) {
|
for(def city : citys) {
|
||||||
def cityCode = cityCodeMap.get(city)
|
def cityCode = cityCodeMap.get(city)
|
||||||
def sql = "select gujia_trdpt_avprc_id,urbn_id,urbn_nm,gujia_admndiv_id,gxda_admndiv_nm,gujiabds_clc_yrmo_val,gujia_bds_clc_avprc,gujia_bds_urbn_avprc,to_char(data_crt_tm,'yyyy-mm-dd hh24:mi:ss') as data_crt_tm,to_char(data_udt_tm,'yyyy-mm-dd hh24:mi:ss') as data_udt_tm,gujia_src_co from "+database+"avm_district_price_gj_h where gujiabds_clc_yrmo_val=${month} AND urbn_id='${cityCode}'";
|
def sql = "select gujia_trdpt_avprc_id,urbn_id,urbn_nm,gujia_admndiv_id,gxda_admndiv_nm,gujiabds_clc_yrmo_val,gujia_bds_clc_avprc,gujia_bds_urbn_avprc,to_char(data_crt_tm,'yyyy-mm-dd hh24:mi:ss') as data_crt_tm,to_char(data_udt_tm,'yyyy-mm-dd hh24:mi:ss') as data_udt_tm,gujia_src_co from "+database+"avm_district_price_gj_h where urbn_id='${cityCode}'"; //gujiabds_clc_yrmo_val=${month} AND
|
||||||
|
|
||||||
pgsqlInstance.eachRow(sql, { r ->
|
pgsqlInstance.eachRow(sql, { r ->
|
||||||
def data = []
|
def data = []
|
||||||
@@ -219,7 +219,7 @@ class ExportPgsqlEvaluationResult {
|
|||||||
def allRows = []
|
def allRows = []
|
||||||
for(def city : citys) {
|
for(def city : citys) {
|
||||||
def cityCode = cityCodeMap.get(city)
|
def cityCode = cityCodeMap.get(city)
|
||||||
def sql = "select gujia_bss_prc_id,urbn_id,urbn_nm,gujia_admndiv_id,gujia_admndiv_nm,gujia_bds_id,comm_nm,gujiabds_clc_yrmo_val,gujia_bds_clc_avprc,gujia_comm_basic_prc,gujia_bds_clmtd,gujiabds_fwd_samp_rto,gujia_bds_mns_grd,gujia_bds_cfdrg,gujiabdsarndcmprccrlt,gujia_bds_cfdc_dgr,to_char(data_crt_tm,'yyyy-mm-dd hh24:mi:ss') as data_crt_tm,to_char(data_udt_tm,'yyyy-mm-dd hh24:mi:ss') as data_udt_tm,gujia_src_co from "+database+"avm_community_base_price_gj_h where gujiabds_clc_yrmo_val=${yearMonth} AND urbn_id='${cityCode}'";
|
def sql = "select gujia_bss_prc_id,urbn_id,urbn_nm,gujia_admndiv_id,gujia_admndiv_nm,gujia_bds_id,comm_nm,gujiabds_clc_yrmo_val,gujia_bds_clc_avprc,gujia_comm_basic_prc,gujia_bds_clmtd,gujiabds_fwd_samp_rto,gujia_bds_mns_grd,gujia_bds_cfdrg,gujiabdsarndcmprccrlt,gujia_bds_cfdc_dgr,to_char(data_crt_tm,'yyyy-mm-dd hh24:mi:ss') as data_crt_tm,to_char(data_udt_tm,'yyyy-mm-dd hh24:mi:ss') as data_udt_tm,gujia_src_co from "+database+"avm_community_base_price_gj_h where urbn_id='${cityCode}'";//gujiabds_clc_yrmo_val=${yearMonth} AND
|
||||||
pgsqlInstance.eachRow(sql, { r ->
|
pgsqlInstance.eachRow(sql, { r ->
|
||||||
def data = []
|
def data = []
|
||||||
data << r.gujia_bss_prc_id
|
data << r.gujia_bss_prc_id
|
||||||
@@ -387,8 +387,8 @@ class ExportPgsqlEvaluationResult {
|
|||||||
def createFileToFtp(tableName,allRows, fileName, curDate, isAppend){
|
def createFileToFtp(tableName,allRows, fileName, curDate, isAppend){
|
||||||
FileUtils.batchCreateFile(allRows, fileName, [], "utf-8", isAppend);
|
FileUtils.batchCreateFile(allRows, fileName, [], "utf-8", isAppend);
|
||||||
println tableName+" 数据文件输出完成......"
|
println tableName+" 数据文件输出完成......"
|
||||||
CcbFtpTestUtils.ftpUpload(null, fileName, curDate)
|
//CcbFtpTestUtils.ftpUpload(null, fileName, curDate)
|
||||||
println tableName+" 上传Ftp完成......"
|
//println tableName+" 上传Ftp完成......"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user