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

import java.util.Map;


@Service("outsourcingInfoService")
public class OutsourcingInfoServiceImpl extends ServiceImpl<OutsourcingInfoDao, OutsourcingInfoEntity> implements OutsourcingInfoService {

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

        return new PageUtils(page);
    }

}