Merge branch 'script_gj' into 'master'

update

See merge request !641
This commit is contained in:
2023-05-23 09:36:27 +08:00
@@ -53,17 +53,17 @@ class ExportAllPgData {
//计算结果相关
exportAvmEvaluationGJNB()
exportAVMEvaluationItemGJNB()
exportCityPrice()
exportRegionPrice()
// exportAvmEvaluationGJNB()
// exportAVMEvaluationItemGJNB()
//
// exportCityPrice()
// exportRegionPrice()
exportCommunityBasePrice()
// exportCommunityBasePrice1(curMonth)
exportCommunityPdescribeGj()
exportCommCaseDetailGj()
// exportCommunityPdescribeGj()
// exportCommCaseDetailGj()
//
exportInOk()
//
@@ -795,6 +795,13 @@ class ExportAllPgData {
def exportCommunityBasePrice(){
def fileName = linux_prefix + "MODEL_000000_000000_COMMUNITY_BASE_PRICE_GJNB_ADD_${curDate}_0001.dat"
def fileName1 = linux_prefix + "MODEL_000000_000000_COMMUNITY_BASE_PRICE_GJ_ADD_${curDate}_0001.dat"
if(CommonDatautils.isWindow()){
fileName = win_prefix + "MODEL_000000_000000_COMMUNITY_BASE_PRICE_GJNB_ADD_${curDate}_0001.dat"
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)
@@ -821,18 +828,18 @@ class ExportAllPgData {
data << r.data_udt_tm
data << r.gujia_src_co
allRows << data
if(allRows.size()%200000==0){
createFileToFtp("COMMUNITY_BASE_PRICE_GJNB",allRows, fileName, curDate, true)
createFileToFtp("COMMUNITY_BASE_PRICE_GJ",allRows, fileName1, curDate, true)
allRows.clear()
}
});
}
def fileName = linux_prefix + "MODEL_000000_000000_COMMUNITY_BASE_PRICE_GJNB_ADD_${curDate}_0001.dat"
def fileName1 = linux_prefix + "MODEL_000000_000000_COMMUNITY_BASE_PRICE_GJ_ADD_${curDate}_0001.dat"
if(CommonDatautils.isWindow()){
fileName = win_prefix + "MODEL_000000_000000_COMMUNITY_BASE_PRICE_GJNB_ADD_${curDate}_0001.dat"
fileName1 = win_prefix + "MODEL_000000_000000_COMMUNITY_BASE_PRICE_GJ_ADD_${curDate}_0001.dat"
if(allRows.size()>0){
createFileToFtp("COMMUNITY_BASE_PRICE_GJNB",allRows, fileName, curDate, true)
createFileToFtp("COMMUNITY_BASE_PRICE_GJ",allRows, fileName1, curDate, true)
}
createFileToFtp("COMMUNITY_BASE_PRICE_GJNB",allRows, fileName, curDate, false)
createFileToFtp("COMMUNITY_BASE_PRICE_GJ",allRows, fileName1, curDate, false)
}