forked from github/dataease
refactor: 优化数据同步接口
This commit is contained in:
parent
5a8aa7f81d
commit
19499a2429
@ -67,7 +67,13 @@ public class DataSetTableTaskController {
|
||||
public Pager<List<DataSetTaskDTO>> taskList(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody BaseGridRequest request) {
|
||||
Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
|
||||
|
||||
return PageUtils.setPageInfo(page, dataSetTableTaskService.taskList4User(request));
|
||||
Pager<List<DataSetTaskDTO>> listPager = PageUtils.setPageInfo(page, dataSetTableTaskService.taskList4User(request));
|
||||
List<DataSetTaskDTO> listObject = listPager.getListObject();
|
||||
for (DataSetTaskDTO dto : listObject) {
|
||||
dataSetTableTaskLogService.lastExecStatus(dto);
|
||||
}
|
||||
|
||||
return listPager;
|
||||
}
|
||||
|
||||
@ApiIgnore
|
||||
|
Loading…
Reference in New Issue
Block a user