类 DeptService

java.lang.Object
cool.scx.base.BasicService<Entity>
cool.scx.base.BaseModelService<Dept>
cool.scx.ext.organization.dept.DeptService

public class DeptService extends cool.scx.base.BaseModelService<Dept>

CoreDeptService class.

版本:
1.1.2
作者:
scx567888
  • 字段概要

    从类继承的字段 cool.scx.base.BasicService

    countResultHandler, entityBeanListHandler, entityClass, scxDaoTableInfo
  • 构造器概要

    构造器
    构造器
    说明
    DeptService(UserDeptService userDeptService)
    Constructor for CoreDeptService.
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    void
    递归删除 部门节点
    getDeptListByUser
    递归查询 dept
    getUserDeptByUserIDs.
    void
    saveDeptListWithUserID(Long userID, List<Long> deptIDs)
    saveDeptListWithUserID

    从类继承的方法 cool.scx.base.BaseModelService

    add, add, add, add, buildGetSQL, buildGetSQL, buildGetSQL, buildGetSQL, buildGetSQLWithAlias, buildGetSQLWithAlias, buildGetSQLWithAlias, buildGetSQLWithAlias, buildListSQL, buildListSQL, buildListSQL, buildListSQL, buildListSQLWithAlias, buildListSQLWithAlias, buildListSQLWithAlias, buildListSQLWithAlias, count, count, delete, delete, get, get, get, get, list, list, list, list, revokeDelete, revokeDelete, update, update, update, update

    从类继承的方法 cool.scx.base.BasicService

    _buildSelectSQL, _buildSelectSQLWithAlias, _count, _delete, _insert, _insertBatch, _scxDaoTableInfo, _select, _truncate, _update, autoTransaction, autoTransaction

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • DeptService

      public DeptService(UserDeptService userDeptService)

      Constructor for CoreDeptService.

      参数:
      userDeptService - a UserDeptService object.
  • 方法详细资料

    • getDeptListByUser

      public List<Dept> getDeptListByUser(User user)
      getDeptListByUser
      参数:
      user - a User object
      返回:
      a List object
    • saveDeptListWithUserID

      public void saveDeptListWithUserID(Long userID, List<Long> deptIDs)
      saveDeptListWithUserID
      参数:
      userID - a Long object
      deptIDs - a String object
    • deleteByUserID

      public void deleteByUserID(Long id)
      参数:
      id - a Long object
    • findDeptByUserID

      public List<UserDept> findDeptByUserID(Long userID)
      参数:
      userID - a Long object
      返回:
      a List object
    • getUserDeptByUserIDs

      public List<UserDept> getUserDeptByUserIDs(List<Long> userIDs)

      getUserDeptByUserIDs.

      参数:
      userIDs - a List object
      返回:
      a List object
    • deleteDeptWithChildren

      public void deleteDeptWithChildren(Long id)
      递归删除 部门节点
      参数:
      id - id
    • getDeptWithChildren

      public List<Dept> getDeptWithChildren(Long id)
      递归查询 dept
      参数:
      id - id
      返回:
      r