weaver-hrm-salary/src/com/engine/salary/mapper/extemp/ExternalEmployeeMapper.java

89 lines
2.0 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.engine.salary.mapper.extemp;
import com.engine.salary.entity.datacollection.DataCollectionEmployee;
import com.engine.salary.entity.extemp.po.ExtEmpPO;
import com.engine.salary.entity.salarysob.param.SalarySobRangeEmpQueryParam;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;
import java.util.List;
public interface ExternalEmployeeMapper {
/**
* 查询所有记录
*
* @return 返回集合没有返回空List
*/
List<ExtEmpPO> listAll();
/**
* 根据主键查询
*
* @param id 主键
* @return 返回记录没有返回null
*/
ExtEmpPO getById(Long id);
List<ExtEmpPO> listSome(ExtEmpPO po);
/**
* 新增忽略null字段
*
* @param externalEmployee 新增的记录
* @return 返回影响行数
*/
int insertIgnoreNull(ExtEmpPO externalEmployee);
/**
* 修改,修改所有字段
*
* @param externalEmployee 修改的记录
* @return 返回影响行数
*/
int update(ExtEmpPO externalEmployee);
/**
* 修改忽略null字段
*
* @param externalEmployee 修改的记录
* @return 返回影响行数
*/
int updateIgnoreNull(ExtEmpPO externalEmployee);
/**
* 删除记录
*
* @return 返回影响行数
*/
int delete(Long id);
/**
* 根据薪资账套的人员范围转换而成的查询参数查询人员
*
* @param queryParams 薪资账套的人员范围转换而成的查询参数
* @return
*/
Collection<DataCollectionEmployee> listByParams( @Param("params") List<SalarySobRangeEmpQueryParam> queryParams);
/**
* 获取所有员工,关联部门
*
* @return
*/
List<DataCollectionEmployee> listEmployee();
/**
* 多表联查
* @param ids
* @return
*/
List<DataCollectionEmployee> getEmployeeByIdsAll(@Param("collection")List<Long> ids);
/**
* 报表专用
* @return
*/
Collection<DataCollectionEmployee> listAllForReport();
}