新增均价接口
This commit is contained in:
+21
@@ -763,6 +763,27 @@ public class WeiXinEvaluationController {
|
||||
}
|
||||
return model;
|
||||
}
|
||||
|
||||
// 均价对比接口(房价通小程序用)
|
||||
public Object otherSourcePlusAction(EvaluationModel model){
|
||||
|
||||
JsonModel jsonMmodel = new JsonModel();
|
||||
Map<String, Integer> dataMap = new HashMap<String, Integer>();
|
||||
if(StringUtils.isNotBlank(model.getCityName()) && StringUtils.isNotBlank(model.getRegion()) && StringUtils.isNotBlank(model.getName()) && model.getBuildType() != null){
|
||||
String category = getEnCategory(model.getBuildType());
|
||||
AverageStatistics averageStatistics = averageStatisticsService.findOneAverageStatictics(model.getCityName(), model.getName(), category);
|
||||
|
||||
Integer tradeAvgPrice = dealPriceService.findDealPrices(model.getCityName(), model.getRegion(), model.getName(), DateUtil.getFirstDayOfMonth(new Date(), -6), DateUtil.getFirstDayOfMonth(new Date(), 0));
|
||||
//columnX = "['成交均价(近半年)','房价网挂牌均价','搜房挂牌均价','安居客挂牌均价']";
|
||||
dataMap.put("dealPrice", tradeAvgPrice);
|
||||
dataMap.put("fjw", averageStatistics.getFangjiaPrice());
|
||||
dataMap.put("soufang", averageStatistics.getSoufangEsfPrice());
|
||||
dataMap.put("anjuke", averageStatistics.getAnjukeEsfPrice());
|
||||
}
|
||||
jsonMmodel.setJsonModel(dataMap);
|
||||
return jsonMmodel;
|
||||
}
|
||||
|
||||
//均价对比
|
||||
public Object otherSourceAction(EvaluationModel model){
|
||||
|
||||
|
||||
+27
@@ -57,6 +57,9 @@ public class EvaluationModel extends BaseModel{
|
||||
private Map<String, List<ReportFileAttach>> reportFileMap;
|
||||
private UserTrades userTrades;
|
||||
private String address;
|
||||
private Integer buildType;
|
||||
private String name;
|
||||
private String region;
|
||||
|
||||
|
||||
public void setId(String id) {
|
||||
@@ -326,4 +329,28 @@ public class EvaluationModel extends BaseModel{
|
||||
public void setLoan(Integer loan) {
|
||||
this.loan = loan;
|
||||
}
|
||||
|
||||
public Integer getBuildType() {
|
||||
return buildType;
|
||||
}
|
||||
|
||||
public void setBuildType(Integer buildType) {
|
||||
this.buildType = buildType;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getRegion() {
|
||||
return region;
|
||||
}
|
||||
|
||||
public void setRegion(String region) {
|
||||
this.region = region;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,6 +52,9 @@ public class EvaluateParamMap {
|
||||
BUILD_TYPE_MAP.put("6", "联排别墅");
|
||||
BUILD_TYPE_MAP.put("7", "叠加别墅");
|
||||
BUILD_TYPE_MAP.put("8", "公寓");
|
||||
BUILD_TYPE_MAP.put("9","联列住宅");
|
||||
BUILD_TYPE_MAP.put("10","花园住宅");
|
||||
BUILD_TYPE_MAP.put("11","旧式里弄2");
|
||||
|
||||
HOUSE_PROPERTY_MAP.put("1","个人产权");
|
||||
HOUSE_PROPERTY_MAP.put("2","集体产权");
|
||||
|
||||
Reference in New Issue
Block a user