weaver-hrm-organization/src/com/engine/organization/mapper/comp/CompMapper.java

95 lines
1.5 KiB
Java
Raw Normal View History

2022-05-17 13:34:00 +08:00
package com.engine.organization.mapper.comp;
import com.engine.organization.entity.comp.po.CompPO;
import org.apache.ibatis.annotations.Param;
2022-05-17 16:36:53 +08:00
import java.util.Collection;
2022-05-17 13:34:00 +08:00
import java.util.List;
/**
* @description: TODO
* @author:dxfeng
* @createTime: 2022/05/16
* @version: 1.0
*/
public interface CompMapper {
/**
* 列表查询
*
* @return
*/
List<CompPO> list();
/**
* 根据搜索条件查询数据
*
* @return
*/
List<CompPO> listByFilter(CompPO compPO);
/**
* 获取顶级数据
*
* @return
*/
List<CompPO> listParent();
/**
* 获取子层级数据
*
* @param ids
2022-05-17 13:34:00 +08:00
* @return
*/
List<CompPO> listChild(@Param("ids") Collection ids);
/**
* 根据ID查询数据
*
* @param id
* @return
*/
CompPO listById(@Param("id") long id);
2022-05-17 16:36:53 +08:00
/**
* 根据No查询数据
*
* @param compNo
* @return
*/
List<CompPO> listByNo(@Param("compNo") String compNo);
/**
* 保存公司/分部基础信息
*
* @param compPO
* @return
*/
int insertIgnoreNull(CompPO compPO);
/**
* 更新主表内容
*
* @param compPO
* @return
*/
int updateBaseComp(CompPO compPO);
2022-05-17 16:36:53 +08:00
/**
* 更新禁用标记
*
* @param compPO
* @return
*/
int updateForbiddenTagById(CompPO compPO);
2022-05-17 16:36:53 +08:00
/**
* 批量删除职务信息方案
*
* @param ids
*/
int deleteByIds(@Param("ids") Collection<Long> ids);
2022-05-17 13:34:00 +08:00
}