写字楼估值报告接口优化

This commit is contained in:
liuhongyang
2025-03-12 15:26:03 +08:00
parent f1f00f8865
commit b10556c3d3
2 changed files with 3 additions and 1 deletions
@@ -573,6 +573,9 @@ public class OfficeController {
if (model.getCity().endsWith("市")) {
model.setCity(model.getCity().replaceAll("市$", ""));
}
if (model.getDistrict().endsWith("区")) {
model.setDistrict(model.getDistrict().replaceAll("区$", ""));
}
if (model.getMaxFloor() != null && (model.getMaxFloor() <= 0 || model.getMaxFloor() > 59)) {
mav.setModel(BasicModel.buildBadRequestModel("maxFloor取值非法,正确范围[1,60)"));
return mav;
@@ -38,7 +38,6 @@ public class FangJiaTongUrl {
String replaceAll3 = null;
if(!StringUtils.isBlank(str)){
String replaceAll = str.replaceAll("\\\\", "");
System.out.println(replaceAll);
String replaceAll2 = replaceAll.replaceAll("\"[{]", "{");
replaceAll3 = replaceAll2.replaceAll("[}]\"", "}");
}