package com.maintain.business.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.maintain.business.domain.ErpCar;
import com.maintain.business.domain.ErpRepairForm;
import com.maintain.business.domain.vo.ErpCarVo;
import com.maintain.business.domain.vo.ErpRepairFormVo;
import com.maintain.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 报修单Mapper接口
 *
 * @author liushuai
 * @date 2025-04-01
 */
public interface ErpRepairFormMapper extends BaseMapperPlus<ErpRepairFormMapper, ErpRepairForm, ErpRepairFormVo> {

    /**
     * 自定义分页查询
     * @param page
     * @param queryWrapper
     * @return
     */
    Page<ErpRepairFormVo> customQueryPageList(@Param("page") Page<ErpRepairForm> page, @Param(Constants.WRAPPER) Wrapper<ErpRepairForm> queryWrapper);

    /**
     * 自定义查询
     * @param queryWrapper
     * @return
     */
    List<ErpRepairFormVo> customQueryList(@Param(Constants.WRAPPER) Wrapper<ErpRepairForm> queryWrapper);

    /**
     * 自定义查询
     * @param ids
     * @return
     */
    List<ErpRepairFormVo> customQueryListByIds(@Param("ids") List<Long> ids);

    /**
     * 自定义查询
     * @param id
     * @return
     */
    ErpRepairFormVo customQueryById(@Param("id") Long id);

}
