package tech.glinfo.enbao.modules.sys.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import tech.glinfo.enbao.common.utils.PageUtils;
import tech.glinfo.enbao.common.utils.Query;

import tech.glinfo.enbao.modules.sys.dao.BusinessCooperationDao;
import tech.glinfo.enbao.modules.sys.entity.BusinessCooperationEntity;
import tech.glinfo.enbao.modules.sys.service.BusinessCooperationService;


@Service("businessCooperationService")
public class BusinessCooperationServiceImpl extends ServiceImpl<BusinessCooperationDao, BusinessCooperationEntity> implements BusinessCooperationService {

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

        return new PageUtils(page);
    }

}