package com.huyi.service.common.contract.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huyi.service.common.contract.mapper.ContractMapper;
import com.huyi.service.common.contract.service.IContractService;
import com.keao.tianhu.starter.mybatis.plus.entity.QueryRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 合同Service业务层处理
 * 
 * @author ch
 * @date 2021-08-17
 */
@Service
public class ContractServiceImpl implements IContractService
{
    @Autowired
    private ContractMapper ownContractMapper;

    /**
     * 查询合同列表
     * @param map
     * @param request
     * @return
     */
    @Override
    public IPage<Map> selectContractList(Map map,QueryRequest request){
        Page page = new Page(request.getPageNum(),request.getPageSize());
        return ownContractMapper.selectContractList(page,map);
    }
}
