编辑员工

This commit is contained in:
slhaf
2024-09-10 13:25:41 +08:00
parent 46491d98a7
commit f9f2a66022
5 changed files with 80 additions and 9 deletions

View File

@@ -6,6 +6,7 @@ import com.sky.entity.Employee;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;
@Mapper
public interface EmployeeMapper {
@@ -38,4 +39,7 @@ public interface EmployeeMapper {
* @param employee
*/
void update(Employee employee);
@Select("select * from employee where id = #{id}")
Employee getById(Long id);
}