package com.gxwebsoft.apps.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.apps.entity.EquipmentRecord;
import com.gxwebsoft.apps.param.EquipmentRecordParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 前世今生Mapper
 *
 * @author 科技小王子
 * @since 2022-12-03 01:23:53
 */
public interface EquipmentRecordMapper extends BaseMapper<EquipmentRecord> {

    /**
     * 分页查询
     *
     * @param page  分页对象
     * @param param 查询参数
     * @return List<EquipmentRecord>
     */
    List<EquipmentRecord> selectPageRel(@Param("page") IPage<EquipmentRecord> page,
                             @Param("param") EquipmentRecordParam param);

    /**
     * 查询全部
     *
     * @param param 查询参数
     * @return List<User>
     */
    List<EquipmentRecord> selectListRel(@Param("param") EquipmentRecordParam param);

}
