weaver-hrm-organization/src/com/engine/organization/mapper/department/DepartmentMapper.java

42 lines
908 B
Java
Raw Normal View History

2022-05-20 15:00:03 +08:00
package com.engine.organization.mapper.department;
import com.engine.organization.entity.department.po.DepartmentPO;
import org.apache.ibatis.annotations.Param;
2022-05-23 17:46:37 +08:00
import java.util.Collection;
2022-05-20 15:00:03 +08:00
import java.util.List;
/**
* @Author weaver_cl
* @Description: TODO
* @Date 2022/5/20
* @Version V1.0
**/
public interface DepartmentMapper {
List<DepartmentPO> getDeptListByCompId(@Param("parentComp") int parentComp);
2022-05-23 17:46:37 +08:00
List<DepartmentPO> getDeptListByPId(@Param("PId") Long PId);
2022-05-20 15:00:03 +08:00
2022-05-23 17:46:37 +08:00
List<DepartmentPO> getDeptList(DepartmentPO departmentPO);
/**
* 获取顶级数据
*
* @return
*/
List<DepartmentPO> listParent();
/**
* 获取子层级数据
*
* @param ids
* @return
*/
List<DepartmentPO> listChild(@Param("ids") Collection ids);
DepartmentPO getDeptById(@Param("id") int id);
String getDeptNameById(@Param("id") int id);
2022-05-20 15:00:03 +08:00
}