提交 ed4bc325 编写于 作者: tangyaolong's avatar tangyaolong

修改格式

上级 0c81977c
......@@ -198,10 +198,14 @@ public class WFCoreResource
@ApiOperation(value = "获取我的分页缓存待办", tags = {"工作流任务" } ,notes = "获取我的分页缓存待办")
@RequestMapping(method= RequestMethod.GET , value="/mypagetasks")
public ResponseEntity<Page<WFTask>> getTaskAll(WFTaskSearchContext context) {
Page page = wfCoreService.getTaskByPage(context);
return ResponseEntity.status(HttpStatus.OK).body(new PageImpl(wfTaskMapping.toDto(page.getContent()), page.getPageable(), page.getContent().size()));
}
public ResponseEntity<List<WFTask>> getTaskAll(WFTaskSearchContext context) {
Page domains = wfCoreService.getTaskByPage(context);
return ResponseEntity.status(HttpStatus.OK)
.header("x-page", String.valueOf(context.getPageable().getPageNumber()))
.header("x-per-page", String.valueOf(context.getPageable().getPageSize()))
.header("x-total", String.valueOf(domains.getTotalElements()))
.body(domains.getContent());
}
@RequestMapping(value = "/mytasks/{processDefinitionKey}/{type}/{businessKey}/usertasks/{taskDefinitionKey}", method = RequestMethod.GET )
public ResponseEntity openTask(@PathVariable("processDefinitionKey") final String processDefinitionKey,@PathVariable("type") final String type,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册