fix(项目管理): 修复删除操作消息发送没有创建人问题
--bug=1038764 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001038764
This commit is contained in:
parent
6934478aec
commit
b8222d02be
|
@ -44,7 +44,7 @@ public class SendNoticeAspect {
|
|||
|
||||
private final static String ID = "id";
|
||||
private final static String PROJECT_ID = "projectId";
|
||||
|
||||
private final static String CREATE_USER = "createUser";
|
||||
|
||||
@Pointcut("@annotation(io.metersphere.system.notice.annotation.SendNotice)")
|
||||
public void pointcut() {
|
||||
|
@ -165,6 +165,9 @@ public class SendNoticeAspect {
|
|||
if (object.containsKey(PROJECT_ID) && resource.get(PROJECT_ID) == null) {
|
||||
resource.put(PROJECT_ID, object.get(PROJECT_ID));
|
||||
}
|
||||
if (object.containsKey(CREATE_USER) && resource.get(CREATE_USER) == null) {
|
||||
resource.put(CREATE_USER, object.get(CREATE_USER));
|
||||
}
|
||||
}
|
||||
}
|
||||
commonNoticeSendService.sendNotice(taskType, event, resources, sessionUser, currentProjectId);
|
||||
|
|
Loading…
Reference in New Issue