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

119 lines
2.2 KiB
Java

package com.engine.organization.mapper.department;
import com.engine.organization.entity.department.po.DepartmentPO;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/**
* @Author weaver_cl
* @description:
* @Date 2022/5/20
* @Version V1.0
**/
public interface DepartmentMapper {
List<DepartmentPO> getDeptListByCompId(@Param("parentComp") Integer parentComp);
List<DepartmentPO> getDeptListByPId(@Param("PId") Long PId);
int countChildByPID(@Param("pid") Long pid);
/**
* 查询所有数据
*
* @return
*/
List<DepartmentPO> list();
/**
* 根据No查询数据
*
* @param deptNo
* @return
*/
List<DepartmentPO> listByNo(@Param("deptNo") String deptNo);
/**
* 根据搜索条件查询数据
*
* @return
*/
List<DepartmentPO> listByFilter(DepartmentPO departmentPO);
/**
* 浏览按钮展示数据用
*
* @param ids
* @return
*/
List<Map<String, Object>> listDeptsByIds(@Param("ids") Collection<Long> ids);
List<DepartmentPO> getDeptsByIds(@Param("ids") Collection<Long> ids);
/**
* 根据ID查询数据
*
* @param id
* @return
*/
DepartmentPO getDeptById(@Param("id") long id);
/**
* 根据ID查询名称
*
* @param id
* @return
*/
String getDeptNameById(@Param("id") int id);
/**
* 添加数据
*
* @param departmentPO
* @return
*/
int insertIgnoreNull(DepartmentPO departmentPO);
/**
* 更新主表内容
*
* @param departmentPO
* @return
*/
int updateBaseDept(DepartmentPO departmentPO);
/**
* 更新禁用标记
*
* @param departmentPO
* @return
*/
int updateForbiddenTagById(DepartmentPO departmentPO);
/**
* 批量禁用部门
*
* @param ids
* @return
*/
int forbiddenDepartmentByIds(@Param("ids") Collection<Long> ids);
/**
* 批量删除
*
* @param ids
*/
int deleteByIds(@Param("ids") Collection<Long> ids);
/**
* 查询所有被引用的ID
*
* @return
*/
List<String> listUsedId();
}