package com.artfess.device.base.dao;

import com.artfess.device.base.model.DeviceBaseContract;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 对合同信息进行管理 Mapper 接口
 *
 * @company 阿特菲斯信息技术有限公司
 * @author min.wu
 * @since 2022-07-12
 */
public interface DeviceBaseContractDao extends BaseMapper<DeviceBaseContract> {

    IPage<DeviceBaseContract> queryPage(IPage<DeviceBaseContract> convert2IPage, @Param(Constants.WRAPPER) Wrapper<DeviceBaseContract> convert2Wrapper);

    List<DeviceBaseContract> getContractList(@Param("deviceId") String deviceId);
}
