|
@@ -27,16 +27,12 @@ public class AppMaterialController extends BaseController {
|
|
try {
|
|
try {
|
|
// 开启分页
|
|
// 开启分页
|
|
startPage();
|
|
startPage();
|
|
-
|
|
|
|
// 查询数据
|
|
// 查询数据
|
|
List list = appMaterialService.geMaterialList(vo);
|
|
List list = appMaterialService.geMaterialList(vo);
|
|
-
|
|
|
|
// 移除空值
|
|
// 移除空值
|
|
list.removeAll(Collections.singleton(null));
|
|
list.removeAll(Collections.singleton(null));
|
|
-
|
|
|
|
// 获取分页信息
|
|
// 获取分页信息
|
|
TableDataInfo tableDataInfo = getDataTable(list);
|
|
TableDataInfo tableDataInfo = getDataTable(list);
|
|
-
|
|
|
|
// 直接返回数据,不需要手动构建 Map
|
|
// 直接返回数据,不需要手动构建 Map
|
|
return AjaxResult.success(tableDataInfo.getRows());
|
|
return AjaxResult.success(tableDataInfo.getRows());
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|