package com.engine.salary.mapper.siarchives;

import com.engine.salary.entity.siarchives.dto.InsuranceArchivesBaseHistoryDTO;
import com.engine.salary.entity.siarchives.po.InsuranceArchivesBaseHistoryPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author sy
 * @Date 2023/10/16
 **/
public interface InsuranceBaseAdjustHistoryMapper {

    /**
     * 批量保存
     */
    void batchSave(@Param("infos") List<InsuranceArchivesBaseHistoryPO> infos);

    /**
     * 根据人员id和个税扣缴义务人id获取基数调整记录
     */
    List<InsuranceArchivesBaseHistoryDTO> listByEmployeeIdAndPayOrg(@Param("paymentOrganization")Long paymentOrganization, @Param("employeeId")Long employeeId);

    /**
     * 根据操作人或操作对象获取基数调整记录
     */
    List<InsuranceArchivesBaseHistoryDTO> listByEmployeeIdAndOperator(@Param("operator")Long operator, @Param("employeeId")Long employeeId);
    List<InsuranceArchivesBaseHistoryDTO> listByExtEmpIdAndOperator(@Param("operator")Long operator, @Param("employeeId")Long employeeId);
}
