sky-take-out/sky-server/src/main/java/com/sky/mapper/EmployeeMapper.java

25 lines
548 B
Java
Raw Normal View History

2024-01-05 09:45:49 +08:00
package com.sky.mapper;
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 09:45:49 +08:00
}