| | |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.controller.AbstractBaseController; |
| | |
| | | import java.lang.reflect.Modifier; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | /** |
| | |
| | | return ""; |
| | | } |
| | | |
| | | protected <T> Page<T> toPage(Integer curr, Integer limit, Map<String, Object> param){ |
| | | Page<T> page = new Page<T>(curr, limit); |
| | | |
| | | param.entrySet().removeIf(next -> next.getKey().equals("curr") |
| | | || next.getKey().equals("limit") |
| | | || next.getKey().equals("orderByField") |
| | | || next.getKey().equals("orderByType") |
| | | || Cools.isEmpty(next.getValue())); |
| | | return page; |
| | | } |
| | | |
| | | /** |
| | | * 全字段模糊搜索 |
| | | * @param cls 模型类 |