package com.jeeplus.pubmodules.contract.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeeplus.pubmodules.contract.domain.Contract;
import com.jeeplus.pubmodules.contract.service.dto.ContractInfoDto;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.toolkit.Constants;

/**
 * @author: 王强
 * @create: 2023-01-13 14:29
 **/
public interface ContractMapper extends BaseMapper<Contract> {

    void updateStatusById(@Param("id") String id, @Param("type") String type);

    IPage<ContractInfoDto> findList(Page<ContractInfoDto> page, @Param(Constants.WRAPPER) QueryWrapper<ContractInfoDto> queryWrapper);
}
