SmartDepartmentService.java 922 B

123456789101112131415161718192021222324252627282930313233343536
  1. package com.template.services;
  2. import com.template.model.pojo.SmartDepartment;
  3. import com.template.model.pojo.SmartDepartment;
  4. import com.baomidou.mybatisplus.extension.service.IService;
  5. import com.template.model.result.PageUtils;
  6. import java.util.List;
  7. /**
  8. * <p>
  9. * 服务类
  10. * </p>
  11. *
  12. * @author ceshi
  13. * @since 2023-12-04
  14. */
  15. public interface SmartDepartmentService extends IService<SmartDepartment> {
  16. int insertSmartDepartment(SmartDepartment rns);
  17. int updateSmartDepartment(SmartDepartment rns);
  18. PageUtils<SmartDepartment> queryPageSmartDepartments(int currentPage, int pageCount, String name);
  19. int deleteSmartDepartmentById(int id);
  20. SmartDepartment getSmartById(int id);
  21. SmartDepartment getSmartByName(String name);
  22. SmartDepartment getSmartByName(String name,Integer parentId);
  23. List<SmartDepartment> getSmartsByName(String name);
  24. int existDataByName(String name);
  25. }