| | |
| | | /** |
| | | * 获取应急预案详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('plan:eplan:query')") |
| | | /*@PreAuthorize("@ss.hasPermi('plan:eplan:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return success(ardEplanService.selectArdEplanById(id)); |
| | | }*/ |
| | | @PreAuthorize("@ss.hasPermi('plan:eplan:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | ArdEplan result = ardEplanService.selectArdEplanById(id); |
| | | Map<String,Object> map = new HashMap(); |
| | | map.put("id",result.getId()); |
| | | map.put("name",result.getName()); |
| | | map.put("time",result.getTime()); |
| | | String info = result.getInfo(); |
| | | String[] infoArr = info.split(";"); |
| | | List<Map<String,String>> infoList = new ArrayList(); |
| | | for(String str : infoArr){ |
| | | Map<String,String> infoMap = new HashMap(); |
| | | infoMap.put("longitude",str.split(",")[0]); |
| | | infoMap.put("latitude",str.split(",")[1]); |
| | | infoMap.put("altitude",str.split(",")[2]); |
| | | infoMap.put("text",str.split(",")[3]); |
| | | infoList.add(infoMap); |
| | | } |
| | | map.put("obj",infoList); |
| | | map.put("userId",result.getUserId()); |
| | | map.put("deptId",result.getDeptId()); |
| | | map.put("createBy",result.getCreateBy()); |
| | | return success(map); |
| | | } |
| | | |
| | | /** |