This commit is contained in:
2023-08-11 18:23:22 +08:00
3 changed files with 13 additions and 15 deletions
@@ -197,13 +197,11 @@ public class AddrSvcController {
try { try {
//新匹配接口 //新匹配接口
json = request.getJsonContent("http://192.168.0.100:32080/FangJiaNlpService/match", params, "UTF-8"); json = request.getJsonContent("http://192.168.0.100:32080/FangJiaNlpService/match", params, "UTF-8");
BasicModel basicModel = new BasicModel(0, "ok");
if (json != null && json.size()>0) { if (json != null && json.size()>0) {
BasicModel basicModel = new BasicModel(0, "ok");
basicModel.setResult(CommonDtoUtils.transformV(MatchedBuildingDto.class, json)); basicModel.setResult(CommonDtoUtils.transformV(MatchedBuildingDto.class, json));
mav.setModel(basicModel);
}else {
mav.setModel(BasicModel.buildServerErrorModel().setMsg("服务升级中..."));
} }
mav.setModel(basicModel);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
mav.setModel(BasicModel.buildServerErrorModel().setMsg("服务升级中...")); mav.setModel(BasicModel.buildServerErrorModel().setMsg("服务升级中..."));
@@ -61,8 +61,8 @@ class BigdataCitypriceBatch extends BaseBatch{
def dealStartDate = DateUtils.addMonth(DateUtils.parseFromTightByPattern(startDate.toString(), "yyyyMMdd"), -1) def dealStartDate = DateUtils.addMonth(DateUtils.parseFromTightByPattern(startDate.toString(), "yyyyMMdd"), -1)
def lastYearDate = DateUtils.addMonth(startDate.toString(),-12, "yyyyMMdd").toInteger(); def lastYearDate = DateUtils.addMonth(startDate.toString(),-12, "yyyyMMdd").toInteger();
// cityRun(citys, startDate, endDate, cityCodeMap) cityRun(citys, startDate, endDate, cityCodeMap)
// regionRun(citys, startDate, endDate, cityCodeMap) regionRun(citys, startDate, endDate, cityCodeMap)
districtRun(citys, startDate, endDate, dealStartDate, lastYearDate, cityCodeMap) districtRun(citys, startDate, endDate, dealStartDate, lastYearDate, cityCodeMap)
} }
@@ -160,15 +160,15 @@ class DistrictSellStatBatch extends BaseBatch {
if(weekendPriceObj.value_type!=1){ if(weekendPriceObj.value_type!=1){
if(dist.city == "福州"){ if(dist.city == "福州"){
// if(Math.abs(mom)*100>3){ if(Math.abs(mom)*100>3){
// def randMarkup = nextDouble(0, 3) def randMarkup = nextDouble(0, 3)
// if(mom < 0){ if(mom < 0){
// mom = DataUtil.roundDouble(randMarkup*(-1)/100, 4) mom = DataUtil.roundDouble(randMarkup*(-1)/100, 4)
// }else{ }else{
// mom = DataUtil.roundDouble(randMarkup/100, 4) mom = DataUtil.roundDouble(randMarkup/100, 4)
// } }
// curPrice = (int)(lastMonthPriceObj.avg_price*mom + lastMonthPriceObj.avg_price) curPrice = (int)(lastMonthPriceObj.avg_price*mom + lastMonthPriceObj.avg_price)
// } }
}else{ }else{
if(Math.abs(mom)*100>10){ if(Math.abs(mom)*100>10){
def randMarkup = nextDouble(0, 10) def randMarkup = nextDouble(0, 10)