update ruoyi-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java.

This commit is contained in:
kagome2014 2020-12-16 02:02:38 +08:00 committed by Gitee
parent 78eed9cd56
commit aeacb3af9b
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ public class BaseController
protected TableDataInfo getDataTable(List<?> list) protected TableDataInfo getDataTable(List<?> list)
{ {
TableDataInfo rspData = new TableDataInfo(); TableDataInfo rspData = new TableDataInfo();
rspData.setCode(0); rspData.setCode(Type.SUCCESS.value());
rspData.setRows(list); rspData.setRows(list);
rspData.setTotal(new PageInfo(list).getTotal()); rspData.setTotal(new PageInfo(list).getTotal());
return rspData; return rspData;