@RequestMapping(value = "downLoadWord", method = RequestMethod.GET) public void downloadExcel(String constCheckId, HttpServletResponse response) throws IOException, TemplateException { ConstCheck constCheck=constCheckService.getDownLoadNewSById(constCheckId); Group groupSG = groupService.findGroupByGroupId(constCheck.getTaskSGGroupId()); Group groupJL = groupService.findGroupByGroupId(constCheck.getTaskJLGroupId()); constCheck.setTaskSGGroupName(groupSG.getGroupName()); constCheck.setTaskJLGroupName(groupJL.getGroupName()); if(StringUtils.isBlank(constCheck.getFileRelevanceKey())){ Map<String, Object> constCheckMap = new HashMap<>(); if(StringUtils.isBlank(constCheck.getTaskName())){ constCheckMap.put("task","无项目名称"); }else{ constCheckMap.put("task",constCheck.getTaskName()); } if(StringUtils.isBlank(constCheck.getCheckResult())){ constCheckMap.put("check","无监理工作情况"); }else{ constCheckMap.put("check",constCheck.getCheckResult()); } if(StringUtils.isBlank(constCheck.getRemark())){ constCheckMap.put("remark","无备注"); }else{ constCheckMap.put("remark",constCheck.getRemark()); } if(StringUtils.isBlank(constCheck.getTaskSGGroupName())){ constCheckMap.put("SG","无施工单位"); }else{ constCheckMap.put("SG",constCheck.getTaskSGGroupName()); } if(StringUtils.isBlank(constCheck.getTaskJLGroupName())){ constCheckMap