为福州修改

This commit is contained in:
2023-07-21 18:15:51 +08:00
parent 17755d9d4e
commit d70506f4bd
2 changed files with 13 additions and 1 deletions
@@ -602,6 +602,18 @@ public class AvgPriceUpdateController {
calcCommandService.save(cmds);
json.put("msg", "任务保存成功,共保存" + cmds.size() + "条任务");
//均价修改,让小区也修改,为了福州可以识别被修改小区
if(commands.size()>0){
for (int i = 0, len = commands.size(); i < len; i++) {
JSONObject command = (JSONObject) commands.get(i);
if(command.containsKey("id")){
Map<String, Object> udata = new HashMap<String, Object>();
udata.put("modificationDate", new Date());
districtService.updateById(udata, command.getString("id"));
}
}
}
return model;
}
@@ -1016,7 +1016,7 @@
var type = $(this).attr('type');
var data ={};
var commands = Array();
commands.push({city:'${district.city!}',region:'${district.region!}',name:'${district.name!}',estateType:'${district.estateType2!}'})
commands.push({id:'${district.id!}',city:'${district.city!}',region:'${district.region!}',name:'${district.name!}',estateType:'${district.estateType2!}'})
data.commands = commands ;
data.calcRange = type;
$.ajax({