package com.artfess.cqxy.warranty.dao;

import com.artfess.cqxy.warranty.entity.Warranty;
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;

/**
 * (Warranty)表数据库访问层
 *
 * @author 黎沐华
 * @since 2022-06-01 15:00:58
 */
public interface WarrantyDao extends BaseMapper<Warranty> {

    /**
     * 通过ID获取数据，关联项目信息，不能使用原生查询
     * @param id ID
     * @return 一条数据
     */
    Warranty getById(@Param("id") String id);

    IPage<Warranty> queryAllByPage(IPage<Warranty> convert2IPage,@Param(Constants.WRAPPER) Wrapper<Warranty> convert2Wrapper);

}

