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.ChanpinquanjingDao;
import com.friday.custody.entity.ChanpinquanjingEntity;
import com.friday.custody.service.AmbersService.ChanpinquanjingService;
import com.friday.custody.utils.PageUtils;
import com.friday.custody.utils.Query;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Map;

@Slf4j
@Service("chanpinquanjingService")
public class ChanpinquanjingServiceImpl extends ServiceImpl<ChanpinquanjingDao, ChanpinquanjingEntity> implements ChanpinquanjingService {

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

        return new PageUtils(page);
    }

}