消息发送者 显示异常

This commit is contained in:
wangliwen 2022-05-30 14:44:25 +08:00
parent aa27a8ad5a
commit 80a0dbb73b
2 changed files with 2 additions and 1 deletions

View File

@ -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:

View File

@ -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());
}