}
if(filter.get("ended")==null)
tq.taskNotEnd();
tq.orderByTaskCreateTime().desc();
List<TaskInstance> lts = tq.listPagination(pageIndex, rowNum);
Long count = tq.count();
List<Map<String,Object>> instanceMaps = new ArrayList<Map<String,Object>>();
Pagination page = new Pagination(pageIndex,rowNum);
page.setTotal(count.intValue());