You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
weaver-hrm-organization/src/com/engine/organization/mapper/department/DepartmentMapper.java

45 lines
1012 B
Java

3 years ago
package com.engine.organization.mapper.department;
import com.engine.organization.entity.department.po.DepartmentPO;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;
3 years ago
import java.util.List;
import java.util.Map;
3 years ago
/**
* @Author weaver_cl
* @Description: TODO
* @Date 2022/5/20
* @Version V1.0
**/
public interface DepartmentMapper {
List<DepartmentPO> getDeptListByCompId(@Param("parentComp") int parentComp);
List<DepartmentPO> getDeptListByPId(@Param("PId") Long PId);
3 years ago
List<DepartmentPO> getDeptList(DepartmentPO departmentPO);
/**
*
*
* @return
*/
List<DepartmentPO> listParent();
List<Map<String,Object>> listDeptsByIds(@Param("ids") Collection<Long> ids);
/**
*
*
* @param ids
* @return
*/
List<DepartmentPO> listChild(@Param("ids") Collection ids);
DepartmentPO getDeptById(@Param("id") int id);
String getDeptNameById(@Param("id") int id);
3 years ago
}