|
|
@@ -86,12 +86,7 @@ public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${C
|
|
|
//获取数据
|
|
|
page = ${className}Mapper.selectPage(page, query);
|
|
|
//抓换为TableDataInfo适配前端
|
|
|
- TableDataInfo tableDataInfo = new TableDataInfo();
|
|
|
- tableDataInfo.setMsg("操作成功");
|
|
|
- tableDataInfo.setCode(200);
|
|
|
- tableDataInfo.setTotal(page.getTotal());
|
|
|
- tableDataInfo.setRows(page.getRecords());
|
|
|
- return tableDataInfo;
|
|
|
+ return TableDataInfo.build(page);
|
|
|
|
|
|
|
|
|
|