存酒业务逻辑+mybatisPlus
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package me.zhengjie.utils;
|
||||
|
||||
import org.apache.poi.ss.formula.functions.T;
|
||||
import org.springframework.data.domain.Page;
|
||||
import java.util.*;
|
||||
|
||||
@@ -49,8 +50,12 @@ public class PageUtil extends cn.hutool.core.util.PageUtil {
|
||||
map.put("totalElements",page.getTotalElements());
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
public static Map<String,Object> toPlusPage(List<T> list, Integer total) {
|
||||
Map<String,Object> map = new LinkedHashMap<>(2);
|
||||
map.put("content",list);
|
||||
map.put("totalElements",total);
|
||||
return map;
|
||||
}
|
||||
/**
|
||||
* 自定义分页
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user