ludc
2024-07-04 8c4b79d994c5a95dd33d4b0313e2f2d63985e074
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/frameworkcore/compatibility/OrgDeptQueryServiceI.java
@@ -1,7 +1,7 @@
package com.vci.frameworkcore.compatibility;
import com.vci.corba.common.PLException;
import com.vci.corba.common.data.UserEntityInfo;
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;
@@ -27,6 +27,15 @@
     * @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;
    /**
     * 批量获取部门的信息 (根据部门主键)
@@ -94,7 +103,7 @@
    List<OrgDepartmentVO> listChildrenDeptByParentOid(String pkFatherDepartmment, Map<String, String> queryMap);
    /**
     * 获取某个部门的所有曾经的下级部门
     * 获取某个部门的所有层级的下级部门
     * @param pkFatherDepartmment 部门的主键
     * @param queryMap 查询条件
     * @return 部门显示对象
@@ -124,11 +133,25 @@
    boolean saveUsersDept(String[] userOIds, String deptId) throws PLException;
    /**
     * 根据部门名称组成的树路径,查询部门信息
     * @param deptTreeNameList 部门名称(上下级部门之间以反斜杠隔开(/))
     * @return 返回的key为部门名称组成的上下级关系(deptTreeNameList中的每个元素),value为对应的部门信息
     * 增加部门信息
     * @param orgDepartmentDTO
     * @return
     */
    //Map<String,String> getDeptByTreeName(/*请传去重后的list*/List<String> deptTreeNameList);
    boolean addDept(OrgDepartmentDTO orgDepartmentDTO) throws PLException;
    /**
     * 修改部门信息
     * @param orgDepartmentDTO
     * @return
     */
    boolean updateDept(OrgDepartmentDTO orgDepartmentDTO) throws PLException;
    /**
     * 删除部门
     * @param ids
     * @return
     */
    boolean deleteDept(String[] ids) throws PLException;
    /**
     * 获取所有部门的信息