IDepartmentService.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq.Expressions;
  4. using System.Threading.Tasks;
  5. using YiSha.Entity.OrganizationManage;
  6. using YiSha.Model.Param.OrganizationManage;
  7. namespace YiSha.IService.OrganizationManage
  8. {
  9. public partial interface IDepartmentService
  10. {
  11. #region 获取数据
  12. Task<List<DepartmentEntity>> GetListPartial(DepartmentListParam param);
  13. Task<DepartmentEntity> GetEntityPartial(int id);
  14. Task<int> GetMaxSortPartial();
  15. /// <summary>
  16. /// 部门名称是否存在
  17. /// </summary>
  18. /// <param name="entity"></param>
  19. /// <returns></returns>
  20. bool ExistDepartmentNamePartial(DepartmentEntity entity);
  21. /// <summary>
  22. /// 是否存在子部门
  23. /// </summary>
  24. /// <param name="id"></param>
  25. /// <returns></returns>
  26. bool ExistChildrenDepartmentPartial(int id);
  27. #endregion
  28. #region 提交数据
  29. Task SaveFormPartial(DepartmentEntity entity);
  30. #endregion
  31. #region 私有方法
  32. #endregion
  33. }
  34. }