Merge branch 'open_v2' into 'master'

修改无经纬度时,返回为数值型

See merge request !1164
This commit is contained in:
2025-09-09 22:34:22 +08:00
@@ -1684,16 +1684,16 @@ public class PropertyController {
try {
json = httpRequest.getJsonContent("http://192.168.0.100:30020/avmWeb/avmAnn", param, "UTF-8");
if (json.containsKey("msg") && "³É¹¦".equals(json.getString("msg"))) {
HashMap<String, String> resultMap = new HashMap<String, String>();
resultMap.put("avgPrice", json.getString("unitPrice"));
resultMap.put("totalPrice", json.getString("totalPrice"));
HashMap<String, Long> resultMap = new HashMap<String, Long>();
resultMap.put("avgPrice", Long.valueOf(json.getString("unitPrice")));
resultMap.put("totalPrice", Long.valueOf(json.getString("totalPrice")));
if (apiUser.getId() == 1007839) {
if (apiUser.getId() == 1007497) {
int round = DataUtil.generateRandomNumber(model.getCity() + model.getAddress());
Long newAvgPrice = (Long) (json.getLong("unitPrice") + json.getLong("unitPrice") * round / 100);
resultMap.put("avgPrice", newAvgPrice.toString());
resultMap.put("avgPrice", newAvgPrice);
double totalPrice = newAvgPrice * model.getSize();
resultMap.put("totalPrice", String.valueOf((int)totalPrice));
resultMap.put("totalPrice", (long) totalPrice);
}
mav.setModel(BasicModel.buildOKModel().setResult(resultMap));