/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the yifu4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

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

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.csp.entity.EmployeeRegistrationLeave;
import com.yifu.cloud.plus.v1.csp.vo.EmployeeRegistrationLeaveConfirmExportVo;
import com.yifu.cloud.plus.v1.csp.vo.EmployeeRegistrationLeaveExportVo;
import com.yifu.cloud.plus.v1.csp.vo.EmployeeRegistrationLeaveSearchVo;
import com.yifu.cloud.plus.v1.csp.vo.EmployeeRegistrationLeaveTableVo;
import com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceAlert;
import com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsurancePreRenewDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 自动化离职待办
 *
 * @author hgw
 * @date 2025-11-19 19:23:15
 */
@Mapper
public interface EmployeeRegistrationLeaveMapper extends BaseMapper<EmployeeRegistrationLeave> {
	/**
	 * 自动化离职待办简单分页查询
	 *
	 * @param employeeRegistrationLeave 自动化离职待办
	 * @return
	 */
	IPage<EmployeeRegistrationLeaveTableVo> getEmployeeRegistrationLeaveTablePage(Page<EmployeeRegistrationLeaveTableVo> page
			, @Param("employeeRegistrationLeave") EmployeeRegistrationLeaveSearchVo employeeRegistrationLeave);

	List<EmployeeRegistrationLeaveTableVo> getEmployeeRegistrationLeaveTablePage2000(
			@Param("employeeRegistrationLeave") EmployeeRegistrationLeaveSearchVo employeeRegistrationLeave);

	IPage<EmployeeRegistrationLeaveTableVo> getEmployeeRegistrationLeaveConfirmTablePage(Page<EmployeeRegistrationLeaveTableVo> page
			, @Param("employeeRegistrationLeave") EmployeeRegistrationLeaveSearchVo employeeRegistrationLeave);


	List<EmployeeRegistrationLeaveExportVo> getEmployeeRegistrationLeaveTableList(
			@Param("employeeRegistrationLeave") EmployeeRegistrationLeaveSearchVo employeeRegistrationLeave);

	List<EmployeeRegistrationLeaveConfirmExportVo> getEmployeeRegistrationLeaveConfirmTableList(
			@Param("employeeRegistrationLeave") EmployeeRegistrationLeaveSearchVo employeeRegistrationLeave);

	int getEmployeeRegistrationLeaveTableCount(
			@Param("employeeRegistrationLeave") EmployeeRegistrationLeaveSearchVo employeeRegistrationLeave);

	int getEmployeeRegistrationLeaveConfirmTableCount(
			@Param("employeeRegistrationLeave") EmployeeRegistrationLeaveSearchVo employeeRegistrationLeave);

	List<EmployeeRegistrationLeave> selectLeaveListBySure(@Param("idList") List<String> idList);

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

	List<EmployeeRegistrationLeave> selectLeaveListByDispatch(@Param("idList") List<String> idList);

	List<EmployeeRegistrationLeave> selectLeaveListByHandleAndType(@Param("idList") List<String> idList, @Param("doType") String doType);
	List<EmployeeRegistrationLeave> selectLeaveListByHandleAndInsuranceType(@Param("idList") List<String> idList);

}
