package com.yd.csf.service.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yd.csf.service.dto.PolicyReportData;
import com.yd.csf.service.model.PolicyFollow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Zhang Jianan
* @description 针对表【policy_follow(新单跟进表)】的数据库操作Mapper
* @createDate 2025-09-16 18:18:06
* @Entity generator.domain.PolicyFollow
*/
public interface PolicyFollowMapper extends BaseMapper<PolicyFollow> {

    PolicyReportData queryPolicyReportData(@Param("policyBizId") String policyBizId);

    //policyHolder（中英文姓名）查询policy_policyholder表
    //signer签单员姓名查询policy_follow
    //brokerName转介人（主，第一个转介人，一个保单对应多个转介人，查询第一个转介人姓名即可） policy_broker
    List<String> queryPolicyNoList(@Param("policyHolder") String policyHolder,
                                   @Param("signer") String signer,
                                   @Param("brokerName") String brokerName);
}




