package com.engine.salary.mapper.report;

import com.engine.salary.report.entity.po.SalaryStatisticsPushDetailPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Harryxzy
 * @ClassName SalaryStatisticsPushPOMapper
 * @date 2023/09/11 11:01
 * @description 报表分享明细
 */
public interface salaryStatisticsPushDetailMapper {
    /**
     * 查询所有记录
     *
     * @return 返回集合，没有返回空List
     */
    List<SalaryStatisticsPushDetailPO> listAll();

    /**
     * 条件查询
     *
     * @return 返回集合，没有返回空List
     */
    List<SalaryStatisticsPushDetailPO> listSome(SalaryStatisticsPushDetailPO SalaryStatisticsPushDetailPO);


    /**
     * 根据主键查询
     *
     * @param id 主键
     * @return 返回记录，没有返回null
     */
    SalaryStatisticsPushDetailPO getById(Long id);

    /**
     * 新增，忽略null字段
     *
     * @param SalaryStatisticsPushDetailPO 新增的记录
     * @return 返回影响行数
     */
    int insertIgnoreNull(SalaryStatisticsPushDetailPO SalaryStatisticsPushDetailPO);

    /**
     * 修改，修改所有字段
     *
     * @param SalaryStatisticsPushDetailPO 修改的记录
     * @return 返回影响行数
     */
    int update(SalaryStatisticsPushDetailPO SalaryStatisticsPushDetailPO);

    /**
     * 修改，忽略null字段
     *
     * @param SalaryStatisticsPushDetailPO 修改的记录
     * @return 返回影响行数
     */
    int updateIgnoreNull(SalaryStatisticsPushDetailPO SalaryStatisticsPushDetailPO);

    /**
     * 删除记录
     *
     * @param SalaryStatisticsPushDetailPO 待删除的记录
     * @return 返回影响行数
     */
    int delete(SalaryStatisticsPushDetailPO SalaryStatisticsPushDetailPO);

    /**
     * 根据批次id查询
     * @param batchIds
     */
    List<SalaryStatisticsPushDetailPO> queryPushDetailPOByBatchId(@Param("batchIds") List<Long> batchIds);

    /**
     * 根据批次id、员工id查询
     * @param
     */
    List<SalaryStatisticsPushDetailPO> queryPushDetailPOByBatchIdAndEmpIds(@Param("batchId")Long batchId, @Param("empIds")List<Long> sharedBy);
}
