update - 优化评论中添加链接的处理

This commit is contained in:
wangli 2024-01-12 13:47:07 +08:00
parent 4f0538156e
commit 4cc0daa969
4 changed files with 13 additions and 3 deletions

View File

@ -22,4 +22,14 @@ public class BpmnTaskCommentExtDTO implements Serializable {
*/
private Integer score;
/**
* pc 端的跳转链接
*/
private String pcUrl;
/**
* 移动端的跳转链接
*/
private String mobileUrl;
}

View File

@ -26,7 +26,7 @@ public class ProcessInstanceDTO implements Serializable {
private ProcessInstanceEventEnum type;
/**
* 流程实例所属业务分类
* 流程实例所属业务分类同时也等于流程模型对应的业务分类 ID
*/
private String category;

View File

@ -28,7 +28,7 @@ public class ProcessTaskDTO implements Serializable {
private ProcessTaskEventEnum type;
/**
* 流程实例所属业务分类
* 流程实例所属业务分类同时也等于流程模型对应的业务分类 ID
*/
private String category;

View File

@ -357,7 +357,7 @@ public class BpmnProcessTaskServiceImpl implements BpmnProcessTaskService {
// 处理 CommentExt
taskComments.stream().filter(i -> Objects.equals(i.getTaskId(), vo.getTaskId()))
.filter(i -> Objects.equals(i.getTaskId(), COMMENT_TYPE_COMMENT_EXT)).findFirst()
.filter(i -> Objects.equals(i.getType(), COMMENT_TYPE_COMMENT_EXT)).findFirst()
.ifPresent(i -> vo.setCommentExt(i.getFullMessage()));
List<Attachment> attachments = attachmentByTaskIdMap.getOrDefault(vo.getTaskId(), Collections.emptyList());