package com.muchinfo.mtp3interface.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.muchinfo.mtp3pojos.entity.Loginaccount;
import com.muchinfo.mtp3pojos.vo.investor.InvestorLoginQueryParam;
import com.muchinfo.mtp3pojos.vo.investor.InvestorLoginQueryResult;
import com.muchinfo.mtp3pojos.vo.tradingacc.TradingAccountQueryParam;
import com.muchinfo.mtp3pojos.vo.tradingacc.TradingAccountQueryResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 登录账户表 Mapper 接口
 * </p>
 *
 * @author XKF
 * @since 2024-06-27
 */
@Mapper
public interface ILoginaccountMapper extends BaseMapper<Loginaccount> {

    List<Long> getLoginNotExistsLt(Long userId);

    String getLoginidsByUserid (Long userid);

    IPage<InvestorLoginQueryResult> queryLoginAccountPage(IPage<InvestorLoginQueryResult> page, @Param("vo") InvestorLoginQueryParam param);

    IPage<TradingAccountQueryResult> queryTradingAccount(IPage<TradingAccountQueryResult> page, @Param("vo") TradingAccountQueryParam param);
}
