| | |
| | | { |
| | | startPage(); |
| | | List<ArdEplan> list = ardEplanService.selectArdEplanList(ardEplan); |
| | | List<Map<String,Object>> result = new ArrayList(); |
| | | for(ArdEplan para : list){ |
| | | Map<String,Object> map = new HashMap(); |
| | | map.put("id",para.getId()); |
| | | map.put("name",para.getName()); |
| | | map.put("time",para.getTime()); |
| | | String info = para.getInfo(); |
| | | String[] infoArr = info.split(";"); |
| | | List<Map<String,String>> infoList = new ArrayList(); |
| | |
| | | infoMap.put("text",str.split(",")[3]); |
| | | infoList.add(infoMap); |
| | | } |
| | | map.put("obj",infoList); |
| | | map.put("userId",para.getUserId()); |
| | | map.put("deptId",para.getDeptId()); |
| | | map.put("createBy",para.getCreateBy()); |
| | | result.add(map); |
| | | para.setInfoList(infoList); |
| | | } |
| | | return getDataTable(result); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出应急预案列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('plan:eplan:export')") |
| | | /*@PreAuthorize("@ss.hasPermi('plan:eplan:export')") |
| | | @Log(title = "应急预案", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ArdEplan ardEplan) |
| | |
| | | List<ArdEplan> list = ardEplanService.selectArdEplanList(ardEplan); |
| | | ExcelUtil<ArdEplan> util = new ExcelUtil<ArdEplan>(ArdEplan.class); |
| | | util.exportExcel(response, list, "应急预案数据"); |
| | | } |
| | | }*/ |
| | | |
| | | /** |
| | | * 获取应急预案详细信息 |