|
|
@ -88,8 +88,9 @@ public class MemoConcernController { |
|
|
|
@PostMapping("/{id}/exportWord") |
|
|
|
public void exportWord(@PathVariable("id") String id, HttpServletResponse response) throws Exception { |
|
|
|
URL resource = this.getClass().getClassLoader().getResource("templates/memo_concern_export_template.docx"); |
|
|
|
|
|
|
|
MemoConcernDTO data = memoConcernService.get(id); |
|
|
|
MemoConcernFormDTO formDTO = new MemoConcernFormDTO(); |
|
|
|
formDTO.setId(id); |
|
|
|
MemoConcernDTO data = memoConcernService.get(formDTO); |
|
|
|
|
|
|
|
if (data == null) { |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "未找到id为" + id + "的关怀项目", "未找到该关怀项目"); |
|
|
|