提交 555b6ecc authored 作者: ww1xhqc's avatar ww1xhqc

[数据模型] 修改一个更新的bug,提交工作流测试

上级 bd6db46d
......@@ -239,6 +239,8 @@ public class ModelImpl implements ModelService {
}
}
newSession.save(tableName,map);
newSession.getTransaction().begin();
newSession.getTransaction().commit();
newSession.close();
}
......
......@@ -44,7 +44,7 @@ public class WorkFlowController {
return workFlowService.findTaskByUserId(nextTaskVo);
}
@PostMapping("/findTaskDetail")
@GetMapping("/findTaskDetail")
@ApiOperation("任务个人待办任务详情")
public Map<String, Object> findTaskDetail(String taskId){
return workFlowService.findTaskDetail(taskId);
......
......@@ -225,7 +225,8 @@ public class WorkFlowServiceImpl implements WorkFlowService {
if (nextTaskVo.getRoleId() != null || nextTaskVo.getUserId() != null) {
taskQuery.or();
if (nextTaskVo.getUserId() != null) {
taskQuery.taskCandidateUser(nextTaskVo.getUserId()).orderByTaskCreateTime().desc();
// taskQuery.taskCandidateUser(nextTaskVo.getUserId()).orderByTaskCreateTime().desc();
taskQuery.taskAssignee(nextTaskVo.getUserId()).orderByTaskCreateTime().desc();
}
if (nextTaskVo.getRoleId() != null && nextTaskVo.getRoleId().size() > 0) {
taskQuery.taskCandidateGroupIn(nextTaskVo.getRoleId()).orderByTaskCreateTime().desc();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论