2024-01-05 09:45:49 +08:00
|
|
|
package com.sky.mapper;
|
|
|
|
|
2024-01-05 16:58:14 +08:00
|
|
|
import com.github.pagehelper.Page;
|
|
|
|
import com.sky.dto.EmployeePageQueryDTO;
|
2024-01-05 09:45:49 +08:00
|
|
|
import com.sky.entity.Employee;
|
2024-01-05 13:31:14 +08:00
|
|
|
import org.apache.ibatis.annotations.Insert;
|
2024-01-05 09:45:49 +08:00
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
|
|
|
|
|
@Mapper
|
|
|
|
public interface EmployeeMapper {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 根据用户名查询员工
|
2024-01-05 23:33:15 +08:00
|
|
|
*
|
2024-01-06 14:34:19 +08:00
|
|
|
* @param username String
|
|
|
|
* @return Employee
|
2024-01-05 09:45:49 +08:00
|
|
|
*/
|
|
|
|
Employee getByUsername(String username);
|
|
|
|
|
2024-01-05 13:31:14 +08:00
|
|
|
/**
|
|
|
|
* 插入员工数据
|
2024-01-05 23:33:15 +08:00
|
|
|
*
|
2024-01-05 13:31:14 +08:00
|
|
|
* @param employee 员工
|
|
|
|
*/
|
|
|
|
void insert(Employee employee);
|
2024-01-05 16:58:14 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 员工分页查询
|
2024-01-05 23:33:15 +08:00
|
|
|
*
|
2024-01-05 16:58:14 +08:00
|
|
|
* @param employeePageQueryDTO EmployeePageQueryDTO
|
|
|
|
* @return Page<Employee>
|
|
|
|
*/
|
|
|
|
Page<Employee> pageQuery(EmployeePageQueryDTO employeePageQueryDTO);
|
2024-01-05 23:22:10 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 启用或禁用员工账号
|
2024-01-05 23:33:15 +08:00
|
|
|
*
|
2024-01-05 23:22:10 +08:00
|
|
|
* @param employee Employee
|
|
|
|
*/
|
|
|
|
void update(Employee employee);
|
2024-01-05 23:33:15 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 根据id查询员工信息
|
|
|
|
* @param id Integer
|
|
|
|
*/
|
|
|
|
Employee getById(Integer id);
|
2024-01-05 09:45:49 +08:00
|
|
|
}
|