diff --git a/src/com/taobao/rigel/rap/project/service/impl/ProjectMgrImpl.java b/src/com/taobao/rigel/rap/project/service/impl/ProjectMgrImpl.java index 74eb4ea..a09af22 100644 --- a/src/com/taobao/rigel/rap/project/service/impl/ProjectMgrImpl.java +++ b/src/com/taobao/rigel/rap/project/service/impl/ProjectMgrImpl.java @@ -79,7 +79,16 @@ public int addProject(Project project) { for (String account : project.getMemberAccountList()) { User user = accountDao.getUser(account); if (user != null) { - project.addMember(user); + boolean addSuccess = project.addMember(user); + if (addSuccess) { + Notification o = new Notification(); + o.setTypeId((short)2); + o.setTargetUser(project.getUser()); + o.setUser(user); + o.setParam1(new Integer(project.getId()).toString()); + o.setParam2(project.getName()); + accountMgr.addNotification(o); + } } } int result = projectDao.addProject(project);