Merge branch 'dev/dev_xp' into dev/3.1_release_merge
This commit is contained in:
@@ -30,6 +30,7 @@ import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
@@ -385,6 +386,8 @@ public class MessageCenterServiceImpl extends ServiceImpl<NotificationMapper, No
|
||||
return PageBaseResponse.success(convert);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void videoFinishedMsg(Long userId, String projectName, boolean isSuccess) {
|
||||
Account account = accountService.getById(userId);
|
||||
String language = account.getLanguage();
|
||||
@@ -410,11 +413,10 @@ public class MessageCenterServiceImpl extends ServiceImpl<NotificationMapper, No
|
||||
}
|
||||
}
|
||||
notification.setContent(JSON.toJSONString(sysNotificationDTO));
|
||||
|
||||
notification.setIsRead(0);
|
||||
notification.setCreateTime(LocalDateTime.now());
|
||||
|
||||
save(notification);
|
||||
|
||||
pushMessage("system", userId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user