diff --git a/WebContent/account/mySetting.vm b/WebContent/account/mySetting.vm
index 70fe86b..86f0936 100644
--- a/WebContent/account/mySetting.vm
+++ b/WebContent/account/mySetting.vm
@@ -38,6 +38,7 @@
#bodyNewStart
+
不要鸡冻,这个功能还木有做完,霍雍和思竹吃饭饭去了
- 消息提醒设置
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 a09af22..85744af 100644
--- a/src/com/taobao/rigel/rap/project/service/impl/ProjectMgrImpl.java
+++ b/src/com/taobao/rigel/rap/project/service/impl/ProjectMgrImpl.java
@@ -76,22 +76,26 @@ public List getProjectList(User user, int curPageNum, int pageSize) {
public int addProject(Project project) {
project.setUpdateTime(new Date());
project.setCreateDate(new Date());
+ List usersInformed = new ArrayList();
for (String account : project.getMemberAccountList()) {
User user = accountDao.getUser(account);
if (user != null) {
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);
+ usersInformed.add(user);
}
}
}
int result = projectDao.addProject(project);
+ for (User u : usersInformed) {
+ Notification o = new Notification();
+ o.setTypeId((short)2);
+ o.setTargetUser(project.getUser());
+ o.setUser(u);
+ o.setParam1(new Integer(result).toString());
+ o.setParam2(project.getName());
+ accountMgr.addNotification(o);
+ }
Group g = organizationDao.getGroup(project.getGroupId());
if (g.getProductionLineId() > 0) {