fix project
This commit is contained in:
parent
5e22ef0804
commit
aeb25715f1
@ -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);
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,7 @@ public class Project {
|
||||
|
||||
private long date;
|
||||
|
||||
@DBRef
|
||||
private User user;
|
||||
|
||||
private long count;
|
||||
|
@ -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();
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user