package com.shuangyulin.mapper;
/**
 * 联系QQ: 287307421或254540457
 * @author 双鱼林
 * 更多精品源码到：http://www.shuangyulin.com
 */

import java.util.ArrayList;
import org.apache.ibatis.annotations.Param;
import com.shuangyulin.po.Employee;



public interface EmployeeMapper {
	/*添加员工信息*/
	public void addEmployee(Employee employee) throws Exception;

	/*按照查询条件分页查询员工记录*/
	public ArrayList<Employee> queryEmployee(@Param("where") String where,@Param("startIndex") int startIndex,@Param("pageSize") int pageSize) throws Exception;

	/*按照查询条件查询所有员工记录*/
	public ArrayList<Employee> queryEmployeeList(@Param("where") String where) throws Exception;

	/*按照查询条件的员工记录数*/
	public int queryEmployeeCount(@Param("where") String where) throws Exception; 

	/*根据主键查询某条员工记录*/
	public Employee getEmployee(String employeeNo) throws Exception;

	/*更新员工记录*/
	public void updateEmployee(Employee employee) throws Exception;

	/*删除员工记录*/
	public void deleteEmployee(String employeeNo) throws Exception;

}
