- 博客(1)
- 收藏
- 关注
转载 通用Mapper的select(T t)的使用
通用mapper类: public interface CategoryMapper extends Mapper<Category> { } 使用select(T t) public List<Category> queryCategoryListByParentId(Long pid) { // select(T t) 将对象c中的非空字段当作查询的条件参数 Category record = new Category(); record.setParentId(pid)
2021-02-17 17:45:36
1375
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人