提交 5eefe9fc authored 作者: whydesc's avatar whydesc

--修改工作流履历信息

上级 673558c4
...@@ -7,6 +7,7 @@ import org.jeecg.modules.flowable.domain.dto.FlowViewerDto; ...@@ -7,6 +7,7 @@ import org.jeecg.modules.flowable.domain.dto.FlowViewerDto;
import org.jeecg.modules.flowable.domain.vo.FlowTaskVo; import org.jeecg.modules.flowable.domain.vo.FlowTaskVo;
import java.io.InputStream; import java.io.InputStream;
import java.util.Date;
import java.util.List; import java.util.List;
/** /**
...@@ -180,6 +181,7 @@ public interface IFlowTaskService { ...@@ -180,6 +181,7 @@ public interface IFlowTaskService {
public Result<List<String>> todoListAll(); public Result<List<String>> todoListAll();
public void saveMyTaskFlow(String thistaskId,Task nextTask,String userType,String approvalId,String messageTaskName);
public void saveMyTaskFlowHis(Task task,String userType,String approvalId,Date cdate,String loginUserid,String taskType,String OptionType);
}
}
...@@ -471,7 +471,11 @@ public class FlowDefinitionServiceImpl extends FlowServiceFactory implements IFl ...@@ -471,7 +471,11 @@ public class FlowDefinitionServiceImpl extends FlowServiceFactory implements IFl
} }
String userType="user";
String approvalId=sysUser.getId();
flowTaskService.saveMyTaskFlowHis(task,userType,approvalId,cdate,sysUser.getId(),ProcessConstants.TASK_TYPE_START,OptionType);
/**
MyTaskFlowHis taskFlowHis=new MyTaskFlowHis(); MyTaskFlowHis taskFlowHis=new MyTaskFlowHis();
taskFlowHis.setTaskId(task.getId()); taskFlowHis.setTaskId(task.getId());
taskFlowHis.setProcDefId(task.getProcessDefinitionId()); taskFlowHis.setProcDefId(task.getProcessDefinitionId());
...@@ -488,8 +492,7 @@ public class FlowDefinitionServiceImpl extends FlowServiceFactory implements IFl ...@@ -488,8 +492,7 @@ public class FlowDefinitionServiceImpl extends FlowServiceFactory implements IFl
taskFlowHis.setFormTableName(flowForm.getFormTableName()); taskFlowHis.setFormTableName(flowForm.getFormTableName());
} }
String userType="user";
String approvalId=sysUser.getId();
if(userType.equals("user")) { if(userType.equals("user")) {
taskFlowHis.setUid(approvalId); taskFlowHis.setUid(approvalId);
...@@ -509,6 +512,7 @@ public class FlowDefinitionServiceImpl extends FlowServiceFactory implements IFl ...@@ -509,6 +512,7 @@ public class FlowDefinitionServiceImpl extends FlowServiceFactory implements IFl
taskFlowHis.setFlowName(flowname); taskFlowHis.setFlowName(flowname);
myTaskFlowHisService.save(taskFlowHis); myTaskFlowHisService.save(taskFlowHis);
*/
......
...@@ -114,8 +114,8 @@ public class PageTitleconfigController extends JeecgController<PageTitleconfig, ...@@ -114,8 +114,8 @@ public class PageTitleconfigController extends JeecgController<PageTitleconfig,
wrapper.or().in("roleid", Arrays.asList(finalRoleids.split(","))); wrapper.or().in("roleid", Arrays.asList(finalRoleids.split(",")));
} }
}) })
.orderByDesc("priority") .orderByDesc("st_time")
.orderByDesc("st_time"); .orderByDesc("priority");
queryWrapper.last("limit 5"); queryWrapper.last("limit 5");
List<MyTask> list = myTaskService.list(queryWrapper); List<MyTask> list = myTaskService.list(queryWrapper);
return Result.OK(list); return Result.OK(list);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论