package com.ym.mec.biz.dal.dao;

import com.ym.mec.biz.dal.dto.EmployeeDto;
import com.ym.mec.biz.dal.entity.Employee;
import com.ym.mec.common.dal.BaseDAO;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface EmployeeDao extends BaseDAO<Integer, Employee> {

    /**
     * @Author: Joburgess
     * @Date: 2019/9/17
     * 根据部门获取下面的员工
     */
    List<EmployeeDto> queryEmployByOrganId(Map<String,Object> params);

    /**
     * @Author: Joburgess
     * @Date: 2019/9/17
     * 部门员工统计
     */
    int queryEmployByOrganIdCount(Map<String,Object> params);

    /**
     * 修改密码
     * @param userID
     * @param password
     */
    void updatePassword(@Param("userID") Long userID, @Param("password") String password);

    /**
     * @Author: Joburgess
     * @Date: 2019/9/17
     * 修改用户账户锁定状态
     */
    int updateUserLockStatus(@Param("userID") Long userID);

}