@@ -142,4 +142,5 @@ public class WorkflowTaskBomDTO extends BaseDTO implements Serializable {
private LocalDateTime applyTimeStart; // 发起开始时间
private LocalDateTime applyTimeEnd; // 发起结束时间
+ private String applyUserId; // 发起人ID
}
@@ -91,6 +91,9 @@
<if test="createdUserId != null and createdUserId != ''">
and bom.created_user_id = #{createdUserId}
</if>
+ <if test="applyUserId != null and applyUserId != ''">
+ and task.created_user_id = #{applyUserId}
+ </if>
<if test="status != null">
and bom.status = #{status}
@@ -95,6 +95,9 @@ public class WorkflowTaskBomServiceImpl extends BaseServiceImpl<WorkflowTaskBomM
statusList.add(FlowTaskStatusEnum.BACK.getValue());
statusList.add(FlowTaskStatusEnum.CANCEL.getValue());
break;
+ case 2: // 我发起的项目
+ record.setApplyUserId(SecurityUtils.getUserInfo().getUserId());
+ break;
record.setStatusList(statusList);