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

import java.util.Map;


@Service("accpuntInfoService")
public class AccpuntInfoServiceImpl extends ServiceImpl<AccpuntInfoDao, AccpuntInfoEntity> implements AccpuntInfoService {

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

        return new PageUtils(page);
    }

}