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

import java.util.Map;


@Service("advisorInfoService")
public class AdvisorInfoServiceImpl extends ServiceImpl<AdvisorInfoDao, AdvisorInfoEntity> implements AdvisorInfoService {

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

        return new PageUtils(page);
    }

}