wg-basic/basic-interface/src/main/java/ink/wgink/interfaces/department/IDepartmentBaseService.java

313 lines
7.4 KiB
Java
Raw Normal View History

2021-01-24 21:21:46 +08:00
package ink.wgink.interfaces.department;
2021-02-16 18:21:24 +08:00
import ink.wgink.pojo.ListPage;
import ink.wgink.pojo.dtos.ZTreeDTO;
import ink.wgink.pojo.dtos.department.DepartmentDTO;
import ink.wgink.pojo.dtos.department.DepartmentSimpleDTO;
2021-02-25 23:23:47 +08:00
import ink.wgink.pojo.pos.DepartmentPO;
2021-02-16 18:21:24 +08:00
import ink.wgink.pojo.result.SuccessResultList;
import java.util.List;
import java.util.Map;
2021-01-24 21:21:46 +08:00
/**
* When you feel like quitting. Think about why you started
* 当你想要放弃的时候想想当初你为何开始
*
* @ClassName: IDepartmentService
* @Description: 组织机构
* @Author: WangGeng
* @Date: 2021/1/24 12:53
* @Version: 1.0
**/
2021-01-28 12:13:15 +08:00
public interface IDepartmentBaseService {
2021-02-16 18:21:24 +08:00
/**
* 部门列表
*
* @param params
* @return
*/
List<DepartmentDTO> list(Map<String, Object> params);
2021-11-06 16:36:27 +08:00
/**
* 部门列表
*
2021-11-06 17:40:55 +08:00
* @param departmentParentId
* @return
*/
List<DepartmentDTO> listByParentId(String departmentParentId);
/**
* 部门列表
*
* @param departmentAreaCode
2021-11-06 16:36:27 +08:00
* @return
*/
2021-11-06 17:40:55 +08:00
List<DepartmentDTO> listByAreaCode(String departmentAreaCode);
2021-11-06 16:36:27 +08:00
/**
* 部门列表
*
2021-11-08 15:58:27 +08:00
* @param departmentAreaCode 地区编码
* @param order 排序方式
* @return
*/
List<DepartmentDTO> listByAreaCodeAndOrder(String departmentAreaCode, String order);
/**
* 部门列表
*
* @param departmentAreaCode 地区编码
2021-11-06 17:40:55 +08:00
* @return
*/
List<DepartmentDTO> listAllByAreaCode(String departmentAreaCode);
2021-11-08 15:58:27 +08:00
/**
* 部门列表
*
* @param departmentAreaCode 地区编码
* @param order 排序方式
* @return
*/
List<DepartmentDTO> listAllByAreaCodeAndOrder(String departmentAreaCode, String order);
2021-11-06 17:40:55 +08:00
/**
* 部门全部子列表
*
2021-11-08 15:58:27 +08:00
* @param departmentAreaCode 地区编码
2021-11-06 16:36:27 +08:00
* @return
*/
2021-11-06 17:40:55 +08:00
List<DepartmentDTO> listSubAllByAreaCode(String departmentAreaCode);
2021-11-06 16:36:27 +08:00
2021-11-08 15:58:27 +08:00
/**
* 部门全部子列表
*
* @param departmentAreaCode 地区编码
* @param order 排序方式
* @return
*/
List<DepartmentDTO> listSubAllByAreaCodeAndOrder(String departmentAreaCode, String order);
2021-02-16 18:21:24 +08:00
/**
* 通过ID获取组织部门详情
*
* @param departmentId
* @return
*/
DepartmentDTO get(String departmentId);
/**
* easyui组织部门
*
* @param page
* @return
*/
SuccessResultList<List<DepartmentDTO>> listPage(ListPage page);
/**
* easyui组织部门列表
*
* @param departmentParentId
* @param page
* @return
*/
SuccessResultList<List<DepartmentDTO>> listPageByParentId(String departmentParentId, ListPage page);
2021-11-06 16:36:27 +08:00
/**
* 组织部门列表
*
2021-11-06 17:40:55 +08:00
* @param departmentAreaCode
2021-11-06 16:36:27 +08:00
* @param page
* @return
*/
2021-11-06 17:40:55 +08:00
SuccessResultList<List<DepartmentDTO>> listPageByAreaCode(String departmentAreaCode, ListPage page);
2021-11-06 16:36:27 +08:00
/**
* 组织部门列表
*
2021-11-06 17:40:55 +08:00
* @param departmentAreaCode
* @param page
* @return
*/
SuccessResultList<List<DepartmentDTO>> listPageAllByAreaCode(String departmentAreaCode, ListPage page);
/**
* 组织部门子列表
*
* @param departmentAreaCode
2021-11-06 16:36:27 +08:00
* @param page
* @return
*/
2021-11-06 17:40:55 +08:00
SuccessResultList<List<DepartmentDTO>> listPageSubAllByAreaCode(String departmentAreaCode, ListPage page);
2021-11-06 16:36:27 +08:00
2021-02-16 18:21:24 +08:00
/**
* 组织部门列表递归获取全部内容
*
* @param params
* @return
*/
List<DepartmentDTO> listAll(Map<String, Object> params);
/**
* zTree组织部门
*
* @param params
* @return
*/
List<ZTreeDTO> listZTree(Map<String, Object> params);
/**
* zTree组织部门
*
* @param departmentParentId
* @param params
* @return
*/
List<ZTreeDTO> listZTree(String departmentParentId, Map<String, Object> params);
2021-11-12 17:45:51 +08:00
/**
* zTree组织部门
*
* @param departmentParentId
* @param departmentType
* @return
*/
List<ZTreeDTO> listZTree(String departmentParentId, Integer departmentType);
2021-11-11 16:46:27 +08:00
/**
* zTree组织部门
*
* @param areaCode
* @param parentId
* @return
*/
List<ZTreeDTO> listZTreeByAreaCodeAndParentId(String areaCode, String parentId);
/**
* 部门列表
*
* @param departmentAreaCode 地区ID
* @param departmentParentId 上级部门ID0为查询地区下部门其他为地区下所有下级部门
* @param departmentType 部门类型1机构2部门
* @return
*/
List<ZTreeDTO> listZTreeByAreaCodeAndParentIdAndType(String departmentAreaCode, String departmentParentId, Integer departmentType);
2021-02-16 18:21:24 +08:00
/**
* 部门ID列表
*
* @param params
* @return
*/
List<String> listId(Map<String, Object> params);
/**
* 获取基础部门ID列表
*
* @param departmentSimpleDTOs
2021-02-16 18:21:24 +08:00
* @return
*/
List<String> listRootId(List<DepartmentSimpleDTO> departmentSimpleDTOs);
2021-02-16 18:21:24 +08:00
/**
* 获取上级部门
*
* @param departmentSimpleDTO1
* @param departmentSimpleDTO2
2021-02-16 18:21:24 +08:00
* @return
*/
DepartmentSimpleDTO getHigherLevel(DepartmentSimpleDTO departmentSimpleDTO1, DepartmentSimpleDTO departmentSimpleDTO2);
2021-02-16 18:21:24 +08:00
/**
* 获得同一级部门数量按部门名称
*
* @param params
* @return
*/
Integer count(Map<String, Object> params);
/**
* 通过ID获取组织部门详情简单格式
*
* @param departmentId
* @return
*/
2021-02-25 23:23:47 +08:00
DepartmentPO getPO(String departmentId);
2021-02-16 18:21:24 +08:00
/**
* 部门列表
*
* @param params
* @return
*/
2021-02-25 23:23:47 +08:00
List<DepartmentPO> listPO(Map<String, Object> params);
/**
* 部门列表简单格式
*
* @param departmentIds 部门ID列表
* @return
*/
List<DepartmentPO> listPO(List<String> departmentIds);
2021-02-16 18:21:24 +08:00
/**
* 通过上级ID获取组织部门全部列表简单格式
*
* @param departmentParentId
* @return
*/
2021-09-23 23:13:28 +08:00
List<DepartmentPO> listPOByParentId(String departmentParentId);
2021-02-16 18:21:24 +08:00
/**
* 通过上级ID和添加获取组织部门全部增量列表简单格式
*
* @param departmentParentId
* @param addDate
* @return
*/
2021-09-23 23:13:28 +08:00
List<DepartmentPO> listPOByParentIdAndAddDate(String departmentParentId, String addDate);
2021-02-16 18:21:24 +08:00
/**
* 通过上级ID和更新获取组织部门全部新增和修改的列表简单格式
*
* @param departmentParentId
* @param updateDate
* @return
*/
2021-09-23 23:13:28 +08:00
List<DepartmentPO> listPOByParentIdAndUpdateDate(String departmentParentId, String updateDate);
2021-02-16 18:21:24 +08:00
/**
* 通过区域编码获取组织部门列表
*
* @param departmentAreaCode 部门区域编码
* @return
*/
List<DepartmentPO> listPOByAreaCode(String departmentAreaCode);
/**
* 通过区域编码部门类型获取组织部门列表
*
* @param departmentAreaCode
* @param departmentType
* @return
*/
List<DepartmentPO> listPOByAreaCodeAndType(String departmentAreaCode, Integer departmentType);
/**
* 统计地区全部组织
*
* @param areaCode
* @return
*/
Integer countByAreaCode(String areaCode);
/**
* 统计地区全部组织
*
* @param areaCode
* @return
*/
Integer countAllByAreaCode(String areaCode);
2021-01-24 21:21:46 +08:00
}