package com.cool.store.mapper;

import com.cool.store.entity.HyPartnerCertificationInfoDO;
import org.apache.ibatis.annotations.Param;

/**
 * @author zhangchenbiao
 * @date 2023-05-29 03:51
 */
public interface HyPartnerCertificationInfoMapper {
    /**
     *
     * 默认插入方法，只会给有值的字段赋值
	 * 会对传进来的字段做判空处理，如果字段为空，则使用数据库默认字段或者null
     * dateTime:2023-05-29 03:51
     */
    int insertSelective(@Param("record") HyPartnerCertificationInfoDO record);

    /**
     *
     * 默认更新方法，根据主键更新，不会把null值更新到数据库，避免覆盖之前有值的
     * dateTime:2023-05-29 03:51
     */
    int updateByPrimaryKeySelective(@Param("record") HyPartnerCertificationInfoDO record);

    /**
     * 根据资质审核流程 id 获取面试会议 id
     * @param qualifyVerifyId 资质审核流程 id
     * @return 面试会议 id
     */
    String getInterviewIdByQualifyVerifyId(@Param("qualifyVerifyId") String qualifyVerifyId);

    /**
     * 根据资质审核流程 id 获取面试会议 id
     * @param qualifyVerifyId 资质审核流程 id
     * @return 面试会议计划 id
     */
    String getInterviewPlanIdByQualifyVerifyId(String qualifyVerifyId);

    HyPartnerCertificationInfoDO selectByPartnerLineId(@Param("partnerLineId") Long partnerLineId);

    int updateLineId(@Param("newPartnerId") String newPartnerId, @Param("newLineId") Long newLineId, @Param("oldLineId") Long oldLineId);


}