package com.friday.custody.service.AmbersService.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.friday.custody.dao.IInvestorInfoDao;
import com.friday.custody.entity.IInvestorInfoEntity;
import com.friday.custody.service.AmbersService.IInvestorInfoService;
import com.friday.custody.utils.PageUtils;
import com.friday.custody.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("iInvestorInfoService")
public class IInvestorInfoServiceImpl extends ServiceImpl<IInvestorInfoDao, IInvestorInfoEntity> implements IInvestorInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<IInvestorInfoEntity> page = this.page(
                new Query<IInvestorInfoEntity>().getPage(params),
                new QueryWrapper<IInvestorInfoEntity>()
        );

        return new PageUtils(page);
    }

}