package tech.glinfo.enbao.modules.sh.service.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 org.springframework.stereotype.Service;
import tech.glinfo.enbao.common.utils.PageUtils;
import tech.glinfo.enbao.common.utils.Query;
import tech.glinfo.enbao.modules.sh.dao.OtherShProductDao;
import tech.glinfo.enbao.modules.sh.entity.ShProductEntity;
import tech.glinfo.enbao.modules.sh.service.OtherShProductService;

import java.util.List;
import java.util.Map;


@Service("otherShProductService")
public class OtherShProductServiceImpl extends ServiceImpl<OtherShProductDao, ShProductEntity> implements OtherShProductService {

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

        return new PageUtils(page);
    }

}