|  |  |  | 
|---|
|  |  |  | resultMap.put("msg",ResponseCodeEnum.MONITOR_POINT_IS_NOT_EXIST.getMsg()); | 
|---|
|  |  |  | return resultMap; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (updateMap.get("name").equals("")){ | 
|---|
|  |  |  | if (updateMap.get("name")!=null&&updateMap.get("name").equals("")){ | 
|---|
|  |  |  | resultMap.put("code",ResponseCodeEnum.PARAMETERS_IS_MISSING.getCode()); | 
|---|
|  |  |  | resultMap.put("msg",ResponseCodeEnum.PARAMETERS_IS_MISSING.getMsg()); | 
|---|
|  |  |  | return resultMap; | 
|---|
|  |  |  | 
|---|
|  |  |  | HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest(); | 
|---|
|  |  |  | String content = "修改了站点:"+oldMonitorPoint.getName()+";"; | 
|---|
|  |  |  | for (Object key:updateMap.keySet()) { | 
|---|
|  |  |  | if (key.toString().equals("name")){ | 
|---|
|  |  |  | if (key.toString().equals("name")&&updateMap.get(key)!=null){ | 
|---|
|  |  |  | content = content+"站点名称:"+oldMonitorPoint.getName()+"->"+updateMap.get(key)+";"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (key.toString().equals("longitude")){ | 
|---|
|  |  |  | if (key.toString().equals("longitude")&&updateMap.get(key)!=null){ | 
|---|
|  |  |  | content = content+"经度:"+oldMonitorPoint.getLongitude()+"->"+updateMap.get(key)+";"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (key.toString().equals("latitude")){ | 
|---|
|  |  |  | if (key.toString().equals("latitude")&&updateMap.get(key)!=null){ | 
|---|
|  |  |  | content = content+"纬度:"+oldMonitorPoint.getLatitude()+"->"+updateMap.get(key)+";"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (key.toString().equals("province_code")){ | 
|---|
|  |  |  | if (key.toString().equals("province_code")&&updateMap.get(key)!=null){ | 
|---|
|  |  |  | content = content+"省份编码:"+oldMonitorPoint.getProvinceCode()+"->"+updateMap.get(key)+";"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (key.toString().equals("city_code")){ | 
|---|
|  |  |  | if (key.toString().equals("city_code")&&updateMap.get(key)!=null){ | 
|---|
|  |  |  | content = content+"地级市编码:"+oldMonitorPoint.getCityCode()+"->"+updateMap.get(key)+";"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (key.toString().equals("area_code")){ | 
|---|
|  |  |  | if (key.toString().equals("area_code")&&updateMap.get(key)!=null){ | 
|---|
|  |  |  | content = content+"县/区/县级市:"+oldMonitorPoint.getAreaCode()+"->"+updateMap.get(key)+";"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (key.toString().equals("address")){ | 
|---|
|  |  |  | if (key.toString().equals("address")&&updateMap.get(key)!=null){ | 
|---|
|  |  |  | content = content+"地址:"+oldMonitorPoint.getAddress()+"->"+updateMap.get(key)+";"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (key.toString().equals("organization_id")){ | 
|---|
|  |  |  | if (key.toString().equals("organization_id")&&updateMap.get(key)!=null){ | 
|---|
|  |  |  | content = content+"组织id:"+oldMonitorPoint.getOrganizationId()+"->"+updateMap.get(key)+";"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (key.toString().equals("desc")){ | 
|---|
|  |  |  | if (key.toString().equals("desc")&&updateMap.get(key)!=null){ | 
|---|
|  |  |  | content = content+"描述:"+oldMonitorPoint.getDesc()+"->"+updateMap.get(key)+";"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|