| | |
| | | package com.vci.frameworkcore.compatibility; |
| | | |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.frameworkcore.model.dto.OrgDepartmentDTO; |
| | | import com.vci.frameworkcore.pagemodel.OrgDepartmentVO; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | | import com.vci.starter.web.pagemodel.DataGrid; |
| | |
| | | * @throws VciBaseException 参数为空或者数据库存在问题的时候会抛出异常 |
| | | */ |
| | | OrgDepartmentVO getDeptByDeptOid(String deptOid) throws VciBaseException; |
| | | |
| | | /** |
| | | * 根据父部门主键获取和部门名称部门的信息 |
| | | * @param parentDeptOid 父部门主键 |
| | | * @param conditionMap 查询条件 |
| | | * @return 部门的显示对象,如果部门不存在则返回null,不会抛出异常 |
| | | * @throws VciBaseException 参数为空或者数据库存在问题的时候会抛出异常 |
| | | */ |
| | | OrgDepartmentVO getDeptByDeptPOidAndCondition(String parentDeptOid,Map<String,String> conditionMap) throws VciBaseException; |
| | | |
| | | /** |
| | | * 批量获取部门的信息 (根据部门主键) |
| | |
| | | * @param queryMap 查询条件,如果需要使用用户的属性来查询可以使用pkUser.xxxx |
| | | * @return 部门的显示对象 |
| | | */ |
| | | OrgDepartmentVO listDeptByUserOid(String userOid, Map<String, String> queryMap); |
| | | |
| | | List<OrgDepartmentVO> listDeptByUserOid(String userOid, Map<String, String> queryMap); |
| | | |
| | | /** |
| | | * 获取未关联某个用户的部门 |
| | |
| | | List<OrgDepartmentVO> listChildrenDeptByParentOid(String pkFatherDepartmment, Map<String, String> queryMap); |
| | | |
| | | /** |
| | | * 获取某个部门的所有曾经的下级部门 |
| | | * 获取某个部门的所有层级的下级部门 |
| | | * @param pkFatherDepartmment 部门的主键 |
| | | * @param queryMap 查询条件 |
| | | * @return 部门显示对象 |
| | |
| | | */ |
| | | DataGrid refTreeGridDept(TreeQueryObject treeQueryObject); |
| | | |
| | | /** |
| | | * 保存部门角色关联信息,带查重功能,多对多保存 |
| | | * @param userOIds 用户id |
| | | * @param deptId 部门oid |
| | | * @return |
| | | */ |
| | | boolean saveUsersDept(String[] userOIds, String deptId) throws PLException; |
| | | |
| | | /** |
| | | * 增加部门信息 |
| | | * @param orgDepartmentDTO |
| | | * @return |
| | | */ |
| | | boolean addDept(OrgDepartmentDTO orgDepartmentDTO) throws PLException; |
| | | |
| | | /** |
| | | * 修改部门信息 |
| | | * @param orgDepartmentDTO |
| | | * @return |
| | | */ |
| | | boolean updateDept(OrgDepartmentDTO orgDepartmentDTO) throws PLException; |
| | | |
| | | /** |
| | | * 删除部门 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | boolean deleteDept(String[] ids) throws PLException; |
| | | |
| | | /** |
| | | * 获取所有部门的信息 |
| | | * @return key:部门由名称组成的路径(/间隔),value对应最小层级的部门信息 |
| | | */ |
| | | Map<String,OrgDepartmentVO> getDeptAllTreeMap(); |
| | | |
| | | } |