package com.sqx.modules.shipinquan.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sqx.common.utils.PageUtils;
import com.sqx.common.utils.Result;
import com.sqx.modules.shipinquan.dao.BlShipinquanDao;
import com.sqx.modules.shipinquan.entity.BlShipinquan;
import com.sqx.modules.shipinquan.service.BlShipinquanService;
import org.springframework.stereotype.Service;

@Service
public class BlShipinquanServiceImpl extends ServiceImpl<BlShipinquanDao, BlShipinquan> implements BlShipinquanService {
    @Override
    public Result findPage(Integer page, Integer limit, BlShipinquan entity){
        Page<BlShipinquan> pages=new Page<>(page,limit);
        return Result.success().put("data",new PageUtils(baseMapper.findPage(pages,entity)));
    }
}