package com.hzs.member.account.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.member.account.CuMemberBusinessLicense;
import com.hzs.common.domain.member.account.CuMemberBusinessLicenseExt;
import com.hzs.member.account.vo.CuMemberBusinessLicenseVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 会员营业执照 Mapper 接口
 */
public interface CuMemberBusinessLicenseMapper extends BaseMapper<CuMemberBusinessLicense> {

    /**
     * 根据会员ID查询营业执照
     *
     * @param pkMember  会员ID
     * @param pkCountry 国家ID
     * @return CuMemberBusinessLicenseExt
     */
    CuMemberBusinessLicenseExt selectBusinessLicenseById(@Param("pkMember") Long pkMember, @Param("pkCountry") Integer pkCountry);

    /**
     * 查询营业执照列表信息
     *
     * @param licenseVO 入参
     * @return List<CuMemberBusinessLicenseExt>
     */
    List<CuMemberBusinessLicenseExt> selectLicenseList(CuMemberBusinessLicenseVO licenseVO);

    /**
     * 根据业务单号修改审批信息
     *
     * @param licenseVO 入参
     * @return Integer
     */
    Integer updateLicenseByBusinessNo(CuMemberBusinessLicenseVO licenseVO);

    /**
     * 查询营业执照详情
     *
     * @param pkId ID
     * @return CuMemberBusinessLicenseVO
     */
    CuMemberBusinessLicenseExt selectLicenseDetail(@Param("pkId") Long pkId);
}
