| | |
| | | } |
| | | |
| | | @Override |
| | | public void downloadFile(Long id, Integer type, SystemUserVo loginUserInfo) throws IOException { |
| | | public String downloadFile(Long id, Integer type, SystemUserVo loginUserInfo) throws IOException { |
| | | Complaint complaint = baseMapper.getDetailBg(id); |
| | | if (Objects.isNull(complaint)) { |
| | | throw new ServiceException("该诉求不存在"); |
| | |
| | | response.setHeader("Content-disposition", "attachment;filename=\"" + fileNameEncode + ".docx" + "\""); |
| | | InputStream resourceAsStream = this.getClass().getResourceAsStream("/template/" + fileName); |
| | | XWPFTemplate.compile(resourceAsStream).render(map).writeAndClose(response.getOutputStream()); |
| | | return complaint.getName(); |
| | | } |
| | | |
| | | |
| | |
| | | return this.baseMapper.getTimeoutAndNotComment(); |
| | | } |
| | | |
| | | /** |
| | | * 修改办理进度 |
| | | * @param dto |
| | | */ |
| | | @Override |
| | | public void updateProgress(ComplaintProcessUpdateDto dto) { |
| | | complaintProgressService.update(new LambdaUpdateWrapper<ComplaintProgress>().eq(ComplaintProgress::getId, dto.getId()) |
| | | .set(ComplaintProgress::getDescribe, dto.getDescribe()).set(ComplaintProgress::getImgUrl, dto.getImgUrl()) |
| | | .set(ComplaintProgress::getVideo, dto.getVideo()) ) ; |
| | | } |
| | | |
| | | /** |
| | | * 删除办理进度 |
| | | * @param |
| | | */ |
| | | @Override |
| | | public void delProgress(Long id) { |
| | | complaintProgressService.removeById(id); |
| | | } |
| | | |
| | | } |
| | | |