package com.ssj.dao.sys.wallet.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.ssj.bean.sys.wallet.domain.Wallet;

/**
 * @author Mount Liu
 * @date 2018/11/19
 */
@Repository
public interface WalletDao extends JpaRepository<Wallet, String> {

    /**
     * 分页查询列表
     *
     * @param specification
     * @param page
     * @return
     */
    Page<Wallet> findAll(Specification<Wallet> specification, Pageable page);

    /**
     * 通过用户id查看信息
     * @param userId
     * @return
     */
    Wallet findByUserId(String userId);
}
