消息发送者 显示异常
This commit is contained in:
parent
aa27a8ad5a
commit
80a0dbb73b
|
@ -54,6 +54,7 @@ public class ActivitiNoticeAspect {
|
|||
final String eventName = delegateTask.getEventName();
|
||||
switch (eventName) {
|
||||
case TaskListener.EVENTNAME_ASSIGNMENT: // 节点被委派给某人
|
||||
logger.error("事件:" + eventName);
|
||||
notice(delegateTask, activitiNoticeOperation);
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -81,7 +81,7 @@ public class SysNoticeServiceImpl extends CrudServiceImpl<SysNoticeDao, SysNotic
|
|||
SysNoticeEntity entity = ConvertUtils.sourceToTarget(dto, SysNoticeEntity.class);
|
||||
|
||||
//更新发送者信息
|
||||
if (dto.getStatus() == NoticeStatusEnum.SEND.value()) {
|
||||
if (dto.getStatus() == NoticeStatusEnum.SEND.value() && StringUtils.isEmpty(dto.getSenderName())) {
|
||||
entity.setSenderName(SecurityUser.getUser().getRealName());
|
||||
entity.setSenderDate(new Date());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue