package com.hzs.member.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.member.base.CuMemberTeam;
import com.hzs.common.domain.member.ext.CuMemberTeamExt;
import com.hzs.member.base.param.MemberTeamInfoParam;
import com.hzs.member.base.vo.MemberTeamVo;

import java.util.List;

/**
 * 会员交易明细 Mapper 接口
 */
public interface CuMemberTeamMapper extends BaseMapper<CuMemberTeam> {

    List<CuMemberTeamExt> queryCuMemberTeam(CuMemberTeamExt cuMemberTeamExt);

    /*
     *  查询会员伞下团队
     **/
    List<CuMemberTeam> queryCuMemberUmbrella(Long pkMember);

    /*
     *  更新体系下所有的团队为空
     **/
    void updateSelfCuMemberTeam(Long pkMember);

    /*
     *  更新伞下会员
     **/
    void updateCuMemberUnderUmbrella(CuMemberTeam cuMemberTeam);

    /*
     *  更新伞下会员
     **/
    void updateCuMemberUnderUmbrellaNull(Long pkMember);

    /**
     * 查询会员团队信息
     *
     * @param memberTeamInfoParam
     * @return
     */
    List<MemberTeamVo> queryMemberTeamInfoList(MemberTeamInfoParam memberTeamInfoParam);
}
