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 {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 根据用户名查询员工
|
|
|
|
* @param username
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@Select("select * from employee where username = #{username}")
|
|
|
|
Employee getByUsername(String username);
|
|
|
|
|
2024-01-05 13:31:14 +08:00
|
|
|
/**
|
|
|
|
* 插入员工数据
|
|
|
|
* @param employee 员工
|
|
|
|
*/
|
|
|
|
void insert(Employee employee);
|
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
|
|
|
|
|
|
|
/**
|
|
|
|
* 启用或禁用员工账号
|
|
|
|
* @param employee Employee
|
|
|
|
*/
|
|
|
|
void update(Employee employee);
|
2024-01-05 09:45:49 +08:00
|
|
|
}
|