package com.gxwebsoft.apps.mapper;

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

import java.util.List;

/**
 * 故障报警记录Mapper
 *
 * @author 科技小王子
 * @since 2022-12-01 23:49:44
 */
public interface EquipmentAlarmMapper extends BaseMapper<EquipmentAlarm> {

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

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

}
