DepartmentMapper.java 737 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package org.example.mapper;
  2. import org.apache.ibatis.annotations.Mapper;
  3. import org.apache.ibatis.annotations.Param;
  4. import org.example.entity.Department;
  5. import java.util.List;
  6. /**
  7. * 科室Mapper接口
  8. */
  9. @Mapper
  10. public interface DepartmentMapper {
  11. /**
  12. * 查询科室列表
  13. */
  14. List<Department> findList(@Param("name") String name, @Param("enabled") Integer enabled);
  15. /**
  16. * 根据ID查询科室
  17. */
  18. Department findById(@Param("id") Long id);
  19. /**
  20. * 新增科室
  21. */
  22. int insert(Department department);
  23. /**
  24. * 更新科室
  25. */
  26. int update(Department department);
  27. /**
  28. * 删除科室
  29. */
  30. int deleteById(@Param("id") Long id);
  31. }