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.OneInvestorInfoDao;
import com.friday.custody.entity.OneInvestorInfoEntity;
import com.friday.custody.service.AmbersService.OneInvestorInfoService;
import com.friday.custody.utils.PageUtils;
import com.friday.custody.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("oneInvestorInfoService")
public class OneInvestorInfoServiceImpl extends ServiceImpl<OneInvestorInfoDao, OneInvestorInfoEntity> implements OneInvestorInfoService {

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

        return new PageUtils(page);
    }

}