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 bpmBizTitle;
|
||||||
|
/** 截止时间 */
|
||||||
|
private String deadline;
|
||||||
/** 流程状态 未发起、处理中、处理完成*/
|
/** 流程状态 未发起、处理中、处理完成*/
|
||||||
private String bpmStatus;
|
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>();
|
Set<String> needSet = new HashSet<String>();
|
||||||
needSet.add(WorkFlowGlobals.BPM_BIZ_TITLE);
|
needSet.add(WorkFlowGlobals.BPM_BIZ_TITLE);
|
||||||
needSet.add(WorkFlowGlobals.BPM_DES_FORM_CODE);
|
needSet.add(WorkFlowGlobals.BPM_DES_FORM_CODE);
|
||||||
|
needSet.add("deadline");
|
||||||
Map<String, Object> processVariables = runtimeService.getVariables(processInstanceId,needSet);
|
Map<String, Object> processVariables = runtimeService.getVariables(processInstanceId,needSet);
|
||||||
|
|
||||||
//流程定义
|
//流程定义
|
||||||
@@ -309,6 +310,7 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|||||||
dto.setTaskId(t.getTaskDefinitionKey());
|
dto.setTaskId(t.getTaskDefinitionKey());
|
||||||
dto.setTaskEndTime(t.getDueDate());
|
dto.setTaskEndTime(t.getDueDate());
|
||||||
dto.setProcessInstanceId(t.getProcessInstanceId());
|
dto.setProcessInstanceId(t.getProcessInstanceId());
|
||||||
|
dto.setDeadline(oConvertUtils.getString(processVariables.get("deadline")));
|
||||||
dto.setProcessApplyUserId(applyUserId);
|
dto.setProcessApplyUserId(applyUserId);
|
||||||
// dto.setProcessApplyUserName(ownerSysUser!=null?ownerSysUser.getRealname():"");
|
// dto.setProcessApplyUserName(ownerSysUser!=null?ownerSysUser.getRealname():"");
|
||||||
dto.setProcessDefinitionId(processInstance != null ? processInstance.getProcessDefinitionId() : null);
|
dto.setProcessDefinitionId(processInstance != null ? processInstance.getProcessDefinitionId() : null);
|
||||||
|
|||||||
+1
@@ -80,6 +80,7 @@ public class TaskTask implements Serializable {
|
|||||||
private java.lang.String processType;
|
private java.lang.String processType;
|
||||||
/**流程状态*/
|
/**流程状态*/
|
||||||
@Excel(name = "流程状态", width = 15)
|
@Excel(name = "流程状态", width = 15)
|
||||||
|
@Dict(dicCode = "super_status")
|
||||||
@Schema(description = "流程状态")
|
@Schema(description = "流程状态")
|
||||||
private java.lang.String bpmStatus;
|
private java.lang.String bpmStatus;
|
||||||
/**关联台账事项ID*/
|
/**关联台账事项ID*/
|
||||||
|
|||||||
Reference in New Issue
Block a user