yxk-20260518-待办列表接口返回增加deadline字段,从流程变量获取数据
This commit is contained in:
+3
-1
@@ -55,6 +55,8 @@ public class TaskDTO implements java.io.Serializable {
|
||||
|
||||
/** 业务标题*/
|
||||
private String bpmBizTitle;
|
||||
/** 截止时间 */
|
||||
private String deadline;
|
||||
/** 流程状态 未发起、处理中、处理完成*/
|
||||
private String bpmStatus;
|
||||
/** 超时提醒*/
|
||||
@@ -88,4 +90,4 @@ public class TaskDTO implements java.io.Serializable {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
+2
@@ -296,6 +296,7 @@ public class ActivitiServiceImpl implements ActivitiService {
|
||||
Set<String> needSet = new HashSet<String>();
|
||||
needSet.add(WorkFlowGlobals.BPM_BIZ_TITLE);
|
||||
needSet.add(WorkFlowGlobals.BPM_DES_FORM_CODE);
|
||||
needSet.add("deadline");
|
||||
Map<String, Object> processVariables = runtimeService.getVariables(processInstanceId,needSet);
|
||||
|
||||
//流程定义
|
||||
@@ -309,6 +310,7 @@ public class ActivitiServiceImpl implements ActivitiService {
|
||||
dto.setTaskId(t.getTaskDefinitionKey());
|
||||
dto.setTaskEndTime(t.getDueDate());
|
||||
dto.setProcessInstanceId(t.getProcessInstanceId());
|
||||
dto.setDeadline(oConvertUtils.getString(processVariables.get("deadline")));
|
||||
dto.setProcessApplyUserId(applyUserId);
|
||||
// dto.setProcessApplyUserName(ownerSysUser!=null?ownerSysUser.getRealname():"");
|
||||
dto.setProcessDefinitionId(processInstance != null ? processInstance.getProcessDefinitionId() : null);
|
||||
|
||||
Reference in New Issue
Block a user