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 org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 会员交易明细 Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2022-09-01
 */
public interface CuMemberTeamMapper extends BaseMapper<CuMemberTeam> {

    List<CuMemberTeamExt> queryCuMemberTeam(CuMemberTeamExt cuMemberTeamExt);

    /*
     * @description: 查询会员伞下团队
     * @author: sui q
     * @date: 2023/4/24 20:04
     * @param: null null
     **/
    List<CuMemberTeam> queryCuMemberUmbrella(Long pkMember);

    /*
     * @description: 更新体系下所有的团队为空
     * @author: sui q
     * @date: 2023/4/24 19:26
     * @param: null null
     **/
    void updateSelfCuMemberTeam(Long pkMember);

    /*
     * @description: 更新伞下会员
     * @author: sui q
     * @date: 2023/4/24 19:34
     * @param: null null
     **/
    void updateCuMemberUnderUmbrella(CuMemberTeam cuMemberTeam);

    /*
     * @description: 更新伞下会员
     * @author: sui q
     * @date: 2023/4/24 19:34
     * @param: null null
     **/
    void updateCuMemberUnderUmbrellaNull(Long pkMember);
    /**
     * 查询会员团队信息
     * @param memberTeamInfoParam
     * @return
     */
    List<MemberTeamVo> queryMemberTeamInfoList(MemberTeamInfoParam memberTeamInfoParam);
    /**
     * 查询会员安置团队信息
     * @param memberTeamInfoParam
     * @return
     */
    List<MemberTeamVo> queryMemberTeamInfoPlaceParentList(MemberTeamInfoParam memberTeamInfoParam);
}
