package com.yifu.cloud.plus.v1.yifu.insurances.mapper.insurances;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.insurances.entity.TEmployeeInsurancePre;
import com.yifu.cloud.plus.v1.yifu.insurances.vo.TEmployeeInsurancePreExportVo;
import com.yifu.cloud.plus.v1.yifu.insurances.vo.TEmployeeInsurancePreSearchVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商险待办任务表
 *
 * @author huych
 * @date 2025-03-31 12:25:13
 */
@Mapper
public interface TEmployeeInsurancePreMapper extends BaseMapper<TEmployeeInsurancePre> {
    /**
     * 商险待办任务表简单分页查询
     * @param tEmployeeInsurancePre 商险待办任务表
     * @return
     */
    IPage<TEmployeeInsurancePre> getTEmployeeInsurancePrePage(Page<TEmployeeInsurancePre> page, @Param("tEmployeeInsurancePre") TEmployeeInsurancePre tEmployeeInsurancePre);

	/**
	 * 商险待办任务表不分页查询
	 * @param tEmployeeInsurancePre 商险待办任务表
	 * @return
	 */
	List<TEmployeeInsurancePre> getTEmployeeInsurancePreNoPage(@Param("tEmployeeInsurancePre") TEmployeeInsurancePre tEmployeeInsurancePre);

	long selectExportCount(@Param("tEmployeeInsurancePre") TEmployeeInsurancePreSearchVo employeeRegistration);

	void updateBatchById(@Param("idList") List<String> idList);

	List<TEmployeeInsurancePreExportVo> selectExportList(@Param("tEmployeeInsurancePre") TEmployeeInsurancePreSearchVo employeeRegistration);

	List<TEmployeeInsurancePre> getAllUnconfimData();

	List<String> getAllUnDisData();

	/**
	 * 根据empPreId查询
	 * @param empPreId 入职确认信息表主键
	 * @return
	 */
	List<TEmployeeInsurancePre> getListByEmpPreId(@Param("empPreId") String empPreId);
	void deleteByEmpPreId(@Param("empPreId") String empPreId);
}
