+52
-3
@@ -37,10 +37,11 @@ class ExportPgsqlEvaluationResult {
|
|||||||
// exportAvmEvaluationGJNB(curMonth)
|
// exportAvmEvaluationGJNB(curMonth)
|
||||||
// exportAVMEvaluationItemGJNB(curMonth)
|
// exportAVMEvaluationItemGJNB(curMonth)
|
||||||
|
|
||||||
exportCityPrice(curMonth)
|
// exportCityPrice(curMonth)
|
||||||
exportRegionPrice(curMonth)
|
// exportRegionPrice(curMonth)
|
||||||
|
|
||||||
exportCommunityBasePrice(curMonth)
|
// exportCommunityBasePrice(curMonth)
|
||||||
|
exportCommunityBasePrice1(curMonth)
|
||||||
|
|
||||||
// exportCommunityPdescribeGj(curMonth)
|
// exportCommunityPdescribeGj(curMonth)
|
||||||
// exportCommCaseDetailGj(curMonth)
|
// exportCommCaseDetailGj(curMonth)
|
||||||
@@ -242,6 +243,7 @@ class ExportPgsqlEvaluationResult {
|
|||||||
data << r.data_udt_tm
|
data << r.data_udt_tm
|
||||||
data << r.gujia_src_co
|
data << r.gujia_src_co
|
||||||
allRows << data
|
allRows << data
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -255,6 +257,53 @@ class ExportPgsqlEvaluationResult {
|
|||||||
createFileToFtp("COMMUNITY_BASE_PRICE_GJ",allRows, fileName1, curDate, false)
|
createFileToFtp("COMMUNITY_BASE_PRICE_GJ",allRows, fileName1, curDate, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def exportCommunityBasePrice1(yearMonth){
|
||||||
|
|
||||||
|
def fileName1 = linux_prefix + "MODEL_000000_000000_COMMUNITY_BASE_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||||
|
if(CommonDatautils.isWindow()){
|
||||||
|
fileName1 = win_prefix + "MODEL_000000_000000_COMMUNITY_BASE_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||||
|
}
|
||||||
|
|
||||||
|
def allRows = []
|
||||||
|
for(def city : citys) {
|
||||||
|
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 urbn_id='${cityCode}'";//gujiabds_clc_yrmo_val=${yearMonth} AND
|
||||||
|
pgsqlInstance.eachRow(sql, { r ->
|
||||||
|
def data = []
|
||||||
|
data << r.gujia_bss_prc_id
|
||||||
|
data << r.urbn_id
|
||||||
|
data << r.urbn_nm
|
||||||
|
data << r.gujia_admndiv_id
|
||||||
|
data << r.gujia_admndiv_nm
|
||||||
|
data << r.gujia_bds_id
|
||||||
|
data << r.comm_nm
|
||||||
|
data << r.gujiabds_clc_yrmo_val
|
||||||
|
data << r.gujia_bds_clc_avprc
|
||||||
|
data << r.gujia_comm_basic_prc
|
||||||
|
data << r.gujia_bds_clmtd
|
||||||
|
data << r.gujiabds_fwd_samp_rto
|
||||||
|
data << r.gujia_bds_mns_grd
|
||||||
|
data << r.gujia_bds_cfdrg
|
||||||
|
data << r.gujiabdsarndcmprccrlt
|
||||||
|
data << r.gujia_bds_cfdc_dgr
|
||||||
|
data << r.data_crt_tm
|
||||||
|
data << r.data_udt_tm
|
||||||
|
data << r.gujia_src_co
|
||||||
|
allRows << data
|
||||||
|
|
||||||
|
if(allRows.size()%200000==0){
|
||||||
|
FileUtils.batchCreateFile(allRows, fileName1, [], "utf-8", true);
|
||||||
|
allRows.clear()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if(allRows.size()>0){
|
||||||
|
FileUtils.batchCreateFile(allRows, fileName1, [], "utf-8", true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def exportCommunityPdescribeGj(month){
|
def exportCommunityPdescribeGj(month){
|
||||||
|
|
||||||
def fileName = linux_prefix + "MODEL_000000_000000_COMMUNITY_P_DESCRIBE_GJ_ADD_${curDate}_0001.dat"
|
def fileName = linux_prefix + "MODEL_000000_000000_COMMUNITY_P_DESCRIBE_GJ_ADD_${curDate}_0001.dat"
|
||||||
|
|||||||
Reference in New Issue
Block a user