<repo_name>LOLtoulan/imoocOA<file_sep>/oa_dao/src/main/java/com/imooc/oa/dao/EmployeeDao.java
package com.imooc.oa.dao;

import com.imooc.oa.entity.Department;
import com.imooc.oa.entity.Employee;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository("employeeDao")
public interface EmployeeDao extends JpaRepository {
    void insert(Employee employee);
    void update(Employee employee);
    void delete(String sn);
    Employee select(String sn);
    List<Employee> selectAll();
    List<Employee> selectByDepartmentAndPost(@Param("dsn") String dsn,@Param("post") String post);
    int selectCount();//记录总数
    List<Employee> findByPage(HashMap<String,Object> map);

}
