将城市修改为非必填字段
This commit is contained in:
+3
-3
@@ -213,15 +213,15 @@ public class ComprehensiveQueryController {
|
|||||||
HouseValueInformationDto houseValueInformation = new HouseValueInformationDto();
|
HouseValueInformationDto houseValueInformation = new HouseValueInformationDto();
|
||||||
RestfulModelAndView mav = new RestfulModelAndView();
|
RestfulModelAndView mav = new RestfulModelAndView();
|
||||||
|
|
||||||
if (StringUtils.isBlank(model.getAddress()) || StringUtils.isBlank(model.getCity()) || StringUtils.isBlank(String.valueOf(model.getSize()))) {
|
if (StringUtils.isBlank(model.getAddress()) || StringUtils.isBlank(String.valueOf(model.getSize()))) {
|
||||||
mav.setModel(BasicModel.buildBadRequestModel("城市(city),地址(address),面积(size)为必填字段"));
|
mav.setModel(BasicModel.buildBadRequestModel("地址(address),面积(size)为必填字段"));
|
||||||
return mav;
|
return mav;
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpRequest httpRequest = new HttpRequest();
|
HttpRequest httpRequest = new HttpRequest();
|
||||||
JSONObject json = null;
|
JSONObject json = null;
|
||||||
Map<String, String> communityAvgPriceParams = new HashMap<String, String>();
|
Map<String, String> communityAvgPriceParams = new HashMap<String, String>();
|
||||||
communityAvgPriceParams.put("city", model.getCity());
|
// communityAvgPriceParams.put("city", model.getCity());
|
||||||
communityAvgPriceParams.put("address", model.getAddress());
|
communityAvgPriceParams.put("address", model.getAddress());
|
||||||
communityAvgPriceParams.put("category", model.getCategory());
|
communityAvgPriceParams.put("category", model.getCategory());
|
||||||
communityAvgPriceParams.put("useMap", String.valueOf(model.isUseMap()));
|
communityAvgPriceParams.put("useMap", String.valueOf(model.isUseMap()));
|
||||||
|
|||||||
Reference in New Issue
Block a user