Search in sources :

Example 6 with TableDataInfo

use of com.ruoyi.common.core.page.TableDataInfo in project hocassian-media-matrix by hokaso.

the class BaseController method getDataTable.

/**
 * 响应请求分页数据
 */
@SuppressWarnings({ "rawtypes", "unchecked" })
protected TableDataInfo getDataTable(List<?> list) {
    TableDataInfo rspData = new TableDataInfo();
    rspData.setCode(HttpStatus.SUCCESS);
    rspData.setMsg("查询成功");
    rspData.setRows(list);
    rspData.setTotal(new PageInfo(list).getTotal());
    return rspData;
}
Also used : PageInfo(com.github.pagehelper.PageInfo) TableDataInfo(com.ruoyi.common.core.page.TableDataInfo)

Example 7 with TableDataInfo

use of com.ruoyi.common.core.page.TableDataInfo in project wumei-smart by kerwincui.

the class GenController method columnList.

/**
 * 查询数据表字段列表
 */
@PreAuthorize("@ss.hasPermi('tool:gen:list')")
@GetMapping(value = "/column/{talbleId}")
public TableDataInfo columnList(Long tableId) {
    TableDataInfo dataInfo = new TableDataInfo();
    List<GenTableColumn> list = genTableColumnService.selectGenTableColumnListByTableId(tableId);
    dataInfo.setRows(list);
    dataInfo.setTotal(list.size());
    return dataInfo;
}
Also used : GenTableColumn(com.ruoyi.generator.domain.GenTableColumn) TableDataInfo(com.ruoyi.common.core.page.TableDataInfo) GetMapping(org.springframework.web.bind.annotation.GetMapping) PreAuthorize(org.springframework.security.access.prepost.PreAuthorize)

Example 8 with TableDataInfo

use of com.ruoyi.common.core.page.TableDataInfo in project RuoYi-Vue by yangzongzhuan.

the class BaseController method getDataTable.

/**
 * 响应请求分页数据
 */
@SuppressWarnings({ "rawtypes", "unchecked" })
protected TableDataInfo getDataTable(List<?> list) {
    TableDataInfo rspData = new TableDataInfo();
    rspData.setCode(HttpStatus.SUCCESS);
    rspData.setMsg("查询成功");
    rspData.setRows(list);
    rspData.setTotal(new PageInfo(list).getTotal());
    return rspData;
}
Also used : PageInfo(com.github.pagehelper.PageInfo) TableDataInfo(com.ruoyi.common.core.page.TableDataInfo)

Example 9 with TableDataInfo

use of com.ruoyi.common.core.page.TableDataInfo in project RuoYi-Vue by yangzongzhuan.

the class GenController method columnList.

/**
 * 查询数据表字段列表
 */
@PreAuthorize("@ss.hasPermi('tool:gen:list')")
@GetMapping(value = "/column/{tableId}")
public TableDataInfo columnList(Long tableId) {
    TableDataInfo dataInfo = new TableDataInfo();
    List<GenTableColumn> list = genTableColumnService.selectGenTableColumnListByTableId(tableId);
    dataInfo.setRows(list);
    dataInfo.setTotal(list.size());
    return dataInfo;
}
Also used : GenTableColumn(com.ruoyi.generator.domain.GenTableColumn) TableDataInfo(com.ruoyi.common.core.page.TableDataInfo) GetMapping(org.springframework.web.bind.annotation.GetMapping) PreAuthorize(org.springframework.security.access.prepost.PreAuthorize)

Aggregations

TableDataInfo (com.ruoyi.common.core.page.TableDataInfo)9 PageInfo (com.github.pagehelper.PageInfo)3 GenTableColumn (com.ruoyi.generator.domain.GenTableColumn)3 PreAuthorize (org.springframework.security.access.prepost.PreAuthorize)3 PageDomain (com.ruoyi.common.core.page.PageDomain)2 ArrayList (java.util.ArrayList)2 GetMapping (org.springframework.web.bind.annotation.GetMapping)2 PostMapping (org.springframework.web.bind.annotation.PostMapping)2 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)2 StrUtil (cn.hutool.core.util.StrUtil)1 Page (com.baomidou.mybatisplus.extension.plugins.pagination.Page)1 PageQuery (com.ruoyi.common.core.domain.PageQuery)1 ServiceException (com.ruoyi.common.exception.ServiceException)1 LoginHelper (com.ruoyi.common.helper.LoginHelper)1 ProcessConstants (com.ruoyi.flowable.common.constant.ProcessConstants)1 FlowComment (com.ruoyi.flowable.common.enums.FlowComment)1 FlowServiceFactory (com.ruoyi.flowable.factory.FlowServiceFactory)1 UserOperateModel (com.ruoyi.web.controller.demo.domain.UserOperateModel)1 WfDefinitionVo (com.ruoyi.workflow.domain.vo.WfDefinitionVo)1 WfFormVo (com.ruoyi.workflow.domain.vo.WfFormVo)1