package com.engine.salary.mapper.siaccount;

import com.engine.salary.entity.siaccount.po.InsuranceAccountDetailTempPO;
import org.apache.ibatis.annotations.Param;

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

/**
 * @Author weaver_cl
 * 
 * @Date 2022/4/13
 * @Version V1.0
 **/
public interface SIAccountDetailTempMapper {

    /**
     * 批量删除
     * @param employeeIds
     * @param billMonth
     */
    void batchDelAccountTempDetails(@Param("employeeIds") Collection<Long> employeeIds, @Param("billMonth") String billMonth);

    /**
     * 批量删除
     * @param employeeIds
     * @param billMonth
     */
    void batchDelByEmpIdsAndMonthAndPayOrg(@Param("employeeIds") Collection<Long> employeeIds, @Param("billMonth") String billMonth, @Param("paymentOrganization") Long paymentOrganization);

    /**
     * 批量保存
     * @param accounts
     */
    void batchSaveAccountTempDetails(@Param("accounts") Collection<InsuranceAccountDetailTempPO> accounts);


    /**
     * 获取
     * @param employeeIds
     * @param billMonth
     * @return
     */
    List<InsuranceAccountDetailTempPO> getListByEmployeeIdsAndBillMonth(@Param("employeeIds") Collection<Long> employeeIds, @Param("billMonth") String billMonth,@Param("paymentOrganization") Long paymentOrganization);
}
