| 123456789101112131415161718192021222324252627282930313233343536373839 |
- package org.example.mapper;
- import org.apache.ibatis.annotations.Mapper;
- import org.apache.ibatis.annotations.Param;
- import org.example.entity.Department;
- import java.util.List;
- /**
- * 科室Mapper接口
- */
- @Mapper
- public interface DepartmentMapper {
-
- /**
- * 查询科室列表
- */
- List<Department> findList(@Param("name") String name, @Param("enabled") Integer enabled);
-
- /**
- * 根据ID查询科室
- */
- Department findById(@Param("id") Long id);
-
- /**
- * 新增科室
- */
- int insert(Department department);
-
- /**
- * 更新科室
- */
- int update(Department department);
-
- /**
- * 删除科室
- */
- int deleteById(@Param("id") Long id);
- }
|