DepartmentService.java 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package com.goafanti.admin.service;
  2. import com.goafanti.admin.bo.DepartmentComboBox;
  3. import com.goafanti.common.model.Department;
  4. import com.goafanti.common.model.WorkingHours;
  5. import java.util.List;
  6. public interface DepartmentService {
  7. int addWorkingHours(WorkingHours in);
  8. int deleteWorkingHours(Integer id);
  9. Object selectWorkingHours();
  10. Object getWorkingHours(String depId);
  11. boolean checkWorkingHoursType(Integer type);
  12. boolean checkDepWorkingHouresType(Integer id);
  13. /**
  14. * 查询分管部门、查询管理部门
  15. * @return
  16. */
  17. List<Department> selectMyDeps();
  18. /**
  19. * 查出部门,及下级部门
  20. * @param subId 部门编号
  21. * @param type 0=包含本部门,1不包含本部门
  22. * @param myShiro 0=正常,1=只看我相关部门
  23. */
  24. List<Department> selectSubDeps(String subId,Integer type,Integer myShiro);
  25. List<Department> selectSubDeps(String subId,Integer type);
  26. List<Department> selectSubDeps(String subId);
  27. List<Department> getLowerDep(String depIds);
  28. List<DepartmentComboBox> selectAllDep();
  29. }