public List<TdWarehouse> findAll() { return (List<TdWarehouse>) repository.findAll(); }
public Page<TdWarehouse> findAllOrderBySortIdAsc(int page, int size) { PageRequest pageRequest = new PageRequest(page, size, new Sort(Direction.ASC, "sortId")); return repository.findAll(pageRequest); }
/** * 查找 * * @param ids * @return */ public List<TdWarehouse> findAll(Iterable<Long> ids) { return (List<TdWarehouse>) repository.findAll(ids); }