From 56aea7aa05995ac0cca7c28e1324c4360afd4df5 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期五, 06 十二月 2024 18:02:16 +0800 Subject: [PATCH] 系统管理:用户管理接口 --- medicalWaste-system/src/main/java/com/sinata/system/service/SysDepartmentService.java | 67 +++++++++++++++++++++++++++++++++ 1 files changed, 66 insertions(+), 1 deletions(-) diff --git a/medicalWaste-system/src/main/java/com/sinata/system/service/SysDepartmentService.java b/medicalWaste-system/src/main/java/com/sinata/system/service/SysDepartmentService.java index d000280..5e9e5fe 100644 --- a/medicalWaste-system/src/main/java/com/sinata/system/service/SysDepartmentService.java +++ b/medicalWaste-system/src/main/java/com/sinata/system/service/SysDepartmentService.java @@ -1,7 +1,8 @@ package com.sinata.system.service; -import com.sinata.system.domain.SysDepartment; import com.baomidou.mybatisplus.extension.service.IService; +import com.sinata.system.domain.SysDepartment; +import com.sinata.system.domain.dto.SysDepartmentDTO; import com.sinata.system.domain.vo.SysDepartmentVO; import java.util.List; @@ -20,4 +21,68 @@ * @return */ List<SysDepartmentVO> listByType(Integer type); + + /** + * 根据父级id获取区域信息 + * + * @param parentId + * @return + */ + SysDepartment getDepartmentByParentId(Long parentId); + + /** + * 获取区域树 + * + * @param keyword + * @return + */ + List<SysDepartmentVO> getRegionTree(String keyword); + + /** + * 当前登录用户所在区域 + * + * @return + */ + SysDepartment getMyDepartment(); + + /** + * 新增区域 + * + * @param dto + * @return + */ + void addRegion(SysDepartmentDTO dto); + + /** + * 编辑区域 + * + * @param dto + * @return + */ + void editRegion(SysDepartmentDTO dto); + + /** + * 获取树编码 + * + * @param parentId + * @return + */ + String getTreeCode(Long parentId); + + /** + * 生成组织编码 + * 区域、医疗机构、处置单位、监管单位 4位 按组织类型不重复 + * + * @param parentId + * @param orgType + * @return + */ + String getOrgCode(Long parentId, Integer orgType); + + /** + * 删除区域 + * + * @param id + */ + void deleteRegion(Long id); } -- Gitblit v1.7.1