diff --git a/.gitignore b/.gitignore index d88f4f0..4878bf8 100644 --- a/.gitignore +++ b/.gitignore @@ -48,3 +48,4 @@ gen # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* +/upload/** \ No newline at end of file diff --git a/src/main/java/com/example/survey/service/impl/RecordServiceImpl.java b/src/main/java/com/example/survey/service/impl/RecordServiceImpl.java index a6b141a..5a00551 100644 --- a/src/main/java/com/example/survey/service/impl/RecordServiceImpl.java +++ b/src/main/java/com/example/survey/service/impl/RecordServiceImpl.java @@ -224,8 +224,9 @@ public class RecordServiceImpl implements RecordService { } @Override - public void record2word(String idNumber, HttpServletResponse response) { - //TODO 导出为word + public void record2word(String uuid, HttpServletResponse response) { + Record record = recordDao.getRecord(uuid); + } @Override diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 3b5b763..d9a23da 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -16,5 +16,5 @@ spring: port: 6379 file: - path: ./ - url: ./ + path: ./upload/ + url: /upload/