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

import java.util.Map;


@Service("rpamessageService")
public class RpamessageServiceImpl extends ServiceImpl<RpamessageDao, RpamessageEntity> implements RpamessageService {

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

        return new PageUtils(page);
    }

}