package com.yifu.cloud.plus.v1.check.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.check.entity.TCheckIdCard;
import com.yifu.cloud.plus.v1.check.vo.CheckBatchVo;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser;

import java.util.List;
import java.util.Map;

/**
 * 身份证实名校验自留库
 *
 * @author hgw
 * @date 2022-05-11 16:12:18
 */
public interface TCheckIdCardService extends IService<TCheckIdCard> {

     /**
      * 身份证实名校验自留库简单分页查询
      *
      * @param tCheckIdCard 身份证实名校验自留库
      * @return
      */
     IPage<TCheckIdCard> getTCheckIdCardPage(Page<TCheckIdCard> page, TCheckIdCard tCheckIdCard);

     /**
      * @param
      * @Description: 获取所有list
      * @Author: hgw
      * @Date: 2022/5/12 15:29
      * @return: java.util.List<com.yifu.cloud.v1.checks.api.entity.TCheckIdCard>
      **/
     List<TCheckIdCard> getAllList(TCheckIdCard tCheckIdCard);

     Map<String, TCheckIdCard> getAllMap(TCheckIdCard tCheckIdCard);

     /**
      * @param checkList
      * @Description: 校验
      * @Author: hgw
      * @Date: 2022/5/12 15:20
      * @return: com.yifu.cloud.v1.common.core.util.R<java.lang.String>
      **/
     R<List<TCheckIdCard>> checkIdCard(List<TCheckIdCard> checkList);

    TCheckIdCard checkIdCardSingle(TCheckIdCard tCheckIdCard);

	R<List<TCheckIdCard>> checkSalaryIdCard(List<TCheckIdCard> checkList, YifuUser user, Integer judgeAgeType);

	/**
	 * @param list
	 * @Description: 预入职导入使用的批量姓名身份证校验
	 * @Author: hgw
	 * @Date: 2024/10/15 11:36
	 * @return: com.yifu.cloud.plus.v1.check.vo.CheckBatchVo
	 **/
	CheckBatchVo checkIdCardBatch(List<TCheckIdCard> list);

	/**
	 * @Description: C端预入职校验
	 * @Author: hgw
	 * @Date: 2024/6/27 14:29
	 * @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<com.yifu.cloud.plus.v1.check.entity.TCheckIdCard>
	 **/
	R<String> checkPreEmpIdCard(String idCard, String name, String deptId);

}
