Browse Source

人员关怀

master
zhaoqifeng 4 years ago
parent
commit
c91570f3cb
  1. 5
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/controller/MemoConcernController.java

5
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/controller/MemoConcernController.java

@ -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 + "的关怀项目", "未找到该关怀项目");

Loading…
Cancel
Save