package com.engine.salary.service;

import com.engine.salary.entity.SalarySobExtRangePO;
import com.engine.salary.entity.salarysob.param.SalarySobRangeExtSaveParam;
import com.engine.salary.entity.salarysob.param.SalarySobRangeQueryParam;
import com.engine.salary.util.page.PageInfo;

import java.util.Collection;
import java.util.List;

/**
 * 薪资账套人员范围
 * <p>Copyright: Copyright (c) 2022</p>
 * <p>Company: 泛微软件</p>
 *
 * @author qiantao
 * @version 1.0
 **/
public interface SalarySobExtRangeService {

    /**
     * 根据主键id查询薪资账套的人员范围
     *
     * @param ids       薪资账套的人员范围的主键id
     * @return
     */
    List<SalarySobExtRangePO> listByIds(Collection<Long> ids);

    /**
     * 根据薪资账套ID和类型查询薪资账套的人员范围
     *
     * @param salarySobId 薪资账套id
     * @return
     */
    List<SalarySobExtRangePO> listBySalarySobId(Long salarySobId);


    /**
     * 保存外部人员
     * @param saveParam
     */
    void saveExtRange(SalarySobRangeExtSaveParam saveParam);

    /**
     * 外部人员列表
     * @param param
     * @return
     */
    PageInfo<SalarySobExtRangePO> listPage4Ext(SalarySobRangeQueryParam param);


    void deleteSalarySobExtRange(Collection<Long> ids);

}
