fix project

This commit is contained in:
copper 2021-05-24 15:24:58 +08:00
parent 5e22ef0804
commit aeb25715f1
3 changed files with 2 additions and 15 deletions

View File

@ -42,6 +42,7 @@ public class ProjectDaoImpl implements ProjectDao {
try {
mongoTemplate.save(project);
} catch (Exception e) {
// e.printStackTrace();
throw new ProjectException(ResultEnum.ALREADY_EXIST_PROJECT);
}

View File

@ -33,6 +33,7 @@ public class Project {
private long date;
@DBRef
private User user;
private long count;

View File

@ -105,21 +105,6 @@ public class WordUtil {
outputStream.close();
document.close();
FileUtils.forceDelete(temp);
// XWPFTemplate template = XWPFTemplate.compile(templatePath,
// configureBuilder.build()).render(values);
// try (BufferedOutputStream os = new
// BufferedOutputStream(response.getOutputStream())) {
// template.write(os);
// } catch (IOException e) {
// e.printStackTrace();
// } finally {
// try {
// template.close();
// } catch (IOException e) {
// e.printStackTrace();
// }
// }
}