boolean save(T entity)
:保存一个实体。boolean saveBatch(Collection<T> entityList)
:批量保存实体。boolean removeById(Serializable id)
:根据 ID 删除实体。boolean removeByMap(Map<String, Object> columnMap)
:根据列映射删除实体。boolean remove(Wrapper<T> queryWrapper)
:根据条件删除实体。boolean updateById(T entity)
:根据 ID 更新实体。boolean update(T entity, Wrapper<T> updateWrapper)
:根据条件更新实体。T getById(Serializable id)
:根据 ID 获取实体。List<T> listByMap(Map<String, Object> columnMap)
:根据列映射获取实体列表。List<T> list(Wrapper<T> queryWrapper)
:根据条件获取实体列表。IPage<T> page(IPage<T> page, Wrapper<T> queryWrapper)
:分页查询。List<T> list()
:获取所有实体。boolean existsById(Serializable id)
:检查是否存在具有指定 ID 的实体。int count()
:获取实体总数。
MyBatis-Plus的IService的默认方法清单
于 2023-12-25 00:58:24 首次发布