+6
-7
@@ -36,7 +36,7 @@ class BigdataCommunityBatch extends BaseBatch{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void process(Object args) {
|
public void process(Object args) {
|
||||||
def citys = CcbCommonUtils.citys_92;
|
def citys = CcbCommonUtils.getRunningCitys(args)
|
||||||
|
|
||||||
def rows = []
|
def rows = []
|
||||||
|
|
||||||
@@ -108,7 +108,6 @@ class BigdataCommunityBatch extends BaseBatch{
|
|||||||
if(ret){
|
if(ret){
|
||||||
rets << ret
|
rets << ret
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace()
|
e.printStackTrace()
|
||||||
} finally {
|
} finally {
|
||||||
@@ -180,15 +179,15 @@ class BigdataCommunityBatch extends BaseBatch{
|
|||||||
if(dist.address){
|
if(dist.address){
|
||||||
jsonObj = FangjiaClientUtils.addressStructure(dist.city, dist.address)
|
jsonObj = FangjiaClientUtils.addressStructure(dist.city, dist.address)
|
||||||
}
|
}
|
||||||
if(jsonObj && jsonObj.street){
|
if(jsonObj && jsonObj.result && jsonObj.result.street){
|
||||||
if(jsonObj.street){
|
if(jsonObj.result.street){
|
||||||
ret << jsonObj.street
|
ret << jsonObj.result.street
|
||||||
}else{
|
}else{
|
||||||
ret << ""
|
ret << ""
|
||||||
}
|
}
|
||||||
|
|
||||||
if(jsonObj.streetNumber){
|
if(jsonObj.result.streetNumber){
|
||||||
ret << jsonObj.streetNumber
|
ret << jsonObj.result.streetNumber
|
||||||
}else{
|
}else{
|
||||||
ret << ""
|
ret << ""
|
||||||
}
|
}
|
||||||
|
|||||||
+16
@@ -70,6 +70,22 @@ class CcbFtpTestUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static def listFileNames(month){
|
||||||
|
//上传到ftp
|
||||||
|
sftpChannel = reConnect();
|
||||||
|
Vector files = sftp.listFiles(ftpPath+ month+"/", sftpChannel);
|
||||||
|
return files
|
||||||
|
}
|
||||||
|
|
||||||
|
static def getFileLength(String path, String month){
|
||||||
|
sftpChannel = reConnect();
|
||||||
|
def size = sftp.getFileSize(ftpPath+ month+"/"+path, sftpChannel)
|
||||||
|
return size
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static main(args) {
|
static main(args) {
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+5
-4
@@ -12,13 +12,14 @@ class ExportOracleEvaluationData {
|
|||||||
def sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.236:1521:orcl",
|
def sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.236:1521:orcl",
|
||||||
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
|
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
|
||||||
|
|
||||||
|
def citys = null
|
||||||
static main(args) {
|
static main(args) {
|
||||||
def task = new ExportOracleEvaluationData()
|
def task = new ExportOracleEvaluationData()
|
||||||
task.run()
|
task.run(args)
|
||||||
}
|
}
|
||||||
|
|
||||||
def run() {
|
def run(args) {
|
||||||
|
citys = CcbCommonUtils.getRunningCitys(args)
|
||||||
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"));
|
||||||
|
|
||||||
//计算结果相关
|
//计算结果相关
|
||||||
@@ -369,7 +370,7 @@ class ExportOracleEvaluationData {
|
|||||||
|
|
||||||
def exportCommCaseDetailGj(month){
|
def exportCommCaseDetailGj(month){
|
||||||
|
|
||||||
def citys = CcbCommonUtils.citys;
|
// def citys = CcbCommonUtils.citys;
|
||||||
def cityCodeDataMap = CcbCommonUtils.findCityCodeValue()
|
def cityCodeDataMap = CcbCommonUtils.findCityCodeValue()
|
||||||
|
|
||||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"28"
|
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"28"
|
||||||
|
|||||||
+1
-1
@@ -44,7 +44,7 @@ class GuiDingPriceBatch extends BaseBatch{
|
|||||||
def distCodeMap = CcbCommonUtils.findAllDistrictCodeValue(city)
|
def distCodeMap = CcbCommonUtils.findAllDistrictCodeValue(city)
|
||||||
|
|
||||||
//添加自己库中的人工指导价
|
//添加自己库中的人工指导价
|
||||||
def prices = CcbCommonUtils.findPersonPrice(city, "2022-10-21", "2022-10-22")
|
def prices = CcbCommonUtils.findPersonPrice(city, "2022-10-22", "2022-10-27")
|
||||||
if(prices){
|
if(prices){
|
||||||
def distMap = getDistrictMap(city)
|
def distMap = getDistrictMap(city)
|
||||||
def rets = createCityDatas(cityCodeDatas, distCodeMap, distMap, prices)
|
def rets = createCityDatas(cityCodeDatas, distCodeMap, distMap, prices)
|
||||||
|
|||||||
+18
-18
@@ -30,28 +30,28 @@ class DataMatch {
|
|||||||
// println task.findAddress("昌州街道棠香路")
|
// println task.findAddress("昌州街道棠香路")
|
||||||
|
|
||||||
// task.run2MatchV2( "D:\\数据\\重庆农商行\\估值1-V2.xlsx")
|
// task.run2MatchV2( "D:\\数据\\重庆农商行\\估值1-V2.xlsx")
|
||||||
task.fzWeiyuanshuMatch("D:\\数据\\福州\\商品住房楼盘评估指导参考价情况表_匹配.xlsx")
|
task.fzWeiyuanshuMatch("D:\\数据\\福州\\连江楼盘.xlsx")
|
||||||
}
|
}
|
||||||
|
|
||||||
def fzWeiyuanshuMatch(fileName){
|
def fzWeiyuanshuMatch(fileName){
|
||||||
ExcelUtils.modify(fileName,{d->
|
ExcelUtils.multiThreadingModify(fileName,{d->
|
||||||
if(!d['K'] && d['C']){
|
// if(!d['G']){
|
||||||
def arr = OpenApiClient.search("福州", d['G'], d['C'])
|
// def arr = OpenApiClient.search("福州", "连江", d['C'])
|
||||||
if(arr){
|
// if(arr){
|
||||||
d['H'] = arr.city
|
// d['E'] = arr.city
|
||||||
d['I'] = arr.district
|
// d['F'] = arr.district
|
||||||
d['J'] = arr.name
|
// d['G'] = arr.name
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
// def results = null
|
def results = null
|
||||||
// if(!d['K'] && d['C']){
|
if(d['H'] && d['H']=="F" && d['C']){
|
||||||
// results = OpenApiClient.addressMatch("福州",d['C'], "property", false, "长乐", null)
|
results = OpenApiClient.addressMatch("福州",d['C'], "property", false, "连江", null)
|
||||||
// }
|
}
|
||||||
// if(results && results.precise>=0){
|
if(results && results.precise>=0){
|
||||||
// d['L'] = results.district
|
d['J'] = results.district
|
||||||
// d['M'] = results.name
|
d['K'] = results.name
|
||||||
// }
|
}
|
||||||
},0)
|
},0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user