fix project
This commit is contained in:
parent
5e22ef0804
commit
aeb25715f1
@ -42,6 +42,7 @@ public class ProjectDaoImpl implements ProjectDao {
|
|||||||
try {
|
try {
|
||||||
mongoTemplate.save(project);
|
mongoTemplate.save(project);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
// e.printStackTrace();
|
||||||
throw new ProjectException(ResultEnum.ALREADY_EXIST_PROJECT);
|
throw new ProjectException(ResultEnum.ALREADY_EXIST_PROJECT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ public class Project {
|
|||||||
|
|
||||||
private long date;
|
private long date;
|
||||||
|
|
||||||
|
@DBRef
|
||||||
private User user;
|
private User user;
|
||||||
|
|
||||||
private long count;
|
private long count;
|
||||||
|
@ -105,21 +105,6 @@ public class WordUtil {
|
|||||||
outputStream.close();
|
outputStream.close();
|
||||||
document.close();
|
document.close();
|
||||||
FileUtils.forceDelete(temp);
|
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