编辑员工
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user