update - 优化评论中添加链接的处理
This commit is contained in:
parent
4f0538156e
commit
4cc0daa969
@ -22,4 +22,14 @@ public class BpmnTaskCommentExtDTO implements Serializable {
|
||||
*/
|
||||
private Integer score;
|
||||
|
||||
/**
|
||||
* pc 端的跳转链接
|
||||
*/
|
||||
private String pcUrl;
|
||||
|
||||
/**
|
||||
* 移动端的跳转链接
|
||||
*/
|
||||
private String mobileUrl;
|
||||
|
||||
}
|
||||
|
||||
@ -26,7 +26,7 @@ public class ProcessInstanceDTO implements Serializable {
|
||||
private ProcessInstanceEventEnum type;
|
||||
|
||||
/**
|
||||
* 流程实例所属业务分类
|
||||
* 流程实例所属业务分类,同时也等于流程模型对应的业务分类 ID
|
||||
*/
|
||||
private String category;
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@ public class ProcessTaskDTO implements Serializable {
|
||||
private ProcessTaskEventEnum type;
|
||||
|
||||
/**
|
||||
* 流程实例所属业务分类
|
||||
* 流程实例所属业务分类,同时也等于流程模型对应的业务分类 ID
|
||||
*/
|
||||
private String category;
|
||||
|
||||
|
||||
@ -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());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user