AdminRepository.java 414 Bytes
package com.xkl.repository;

import com.xkl.domain.Admin;
import org.springframework.data.repository.CrudRepository;

/**
 * Admin类的CRUD操作
 * @see Admin
 */
public interface AdminRepository extends CrudRepository<Admin, Long> {

//    public Admin findByAccount(String account);
    public Admin findByAccountAndStatus(String account,int status);
    public Admin findByIdAndStatus(long id,int status);

}