| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- package com.ydtech.modules.admin.service;
- import com.baomidou.mybatisplus.extension.service.IService;
- import com.ydtech.core.page.HttpResult;
- import com.ydtech.core.page.PageRequest;
- import com.ydtech.core.page.PageResult;
- import com.ydtech.modules.admin.model.SysArea;
- import com.ydtech.modules.admin.model.SysDept;
- import com.ydtech.modules.admin.model.vo.SysDeptRemoveVo;
- import com.ydtech.modules.admin.model.vo.SysDeptTreeVo;
- import com.ydtech.modules.admin.model.vo.SysDeptVo;
- import com.ydtech.modules.admin.model.vo.TreeSysDeptVO;
- import java.util.List;
- public interface SysDeptService extends IService<SysDept> {
- //
- PageResult findSubDepts(PageRequest pageRequest);
- String findMaxDeptId(String deptId);
- //
- String findMaxHouseId(String deptId);
- List<TreeSysDeptVO> selectListWhere(String where, Object[] paramValues);
- /**
- * 获取树结构
- *
- * @param deptId 部门id
- * @param managementSource 机构来源
- * @return 返回部门列表
- */
- List<SysDept> findTree(String deptId, String managementSource);
- /**
- * 增加机构
- *
- * @param sysDeptVo 机构信息
- */
- void addDept(SysDeptVo sysDeptVo);
- /**
- * 修改机构
- *
- * @param record 机构信息
- */
- HttpResult updateDept(SysDept record);
- /**
- * 删除机构
- */
- void deleteDept(SysDeptRemoveVo sysDeptRemoveVo);
- /**
- * 获取不分页树结构
- */
- List<SysDept> getUserList(String deptId);
- /**
- * 获取机构树(不包含团队 dept_type=C)
- * @param deptId
- * @return
- */
- public List<SysDept> findCompanyTree(String deptId);
- /**
- * 根据传入机构,查询归属所有团队
- * @param deptId
- * @return
- */
- public List<SysDept> findTeamList(String deptId);
- /**
- * @version
- * @author: hxl
- * @Date: 2024/4/28 10:22
- * @Description: 查询省、市、县、门店列表信息
- */
- List<SysDept> queryListByParentId(String level, String parentId);
- /**
- * 查询归属地区信息
- * @param deptId
- * @return
- */
- String queryBelongArea(String deptId);
- /**
- * 查询归属地区信息
- *
- * @param deptId
- * @return
- */
- List<SysArea> getListQueryBelongArea(String deptId);
- /**
- * @version
- * @author: hxl
- * @Date: 2024/6/28 8:40
- * @Description: 查询后线机构树
- */
- List<SysDept> queryHXDeptTree();
- /**
- * @version
- * @author: hxl
- * @Date: 2024/6/28 8:41
- * @Description: 查询前线机构树
- */
- List<SysDept> queryQXDeptTree();
- List<SysDeptTreeVo> getSysDeptTree();
- List<SysDeptTreeVo> getPartnerDeptTree();
- }
|