package com.gxwebsoft.apps.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.apps.entity.Equipment;
import com.gxwebsoft.apps.param.EquipmentParam;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 设备管理Service
 *
 * @author 科技小王子
 * @since 2022-11-30 02:11:16
 */
public interface EquipmentService extends IService<Equipment> {

    /**
     * 分页关联查询
     *
     * @param param 查询参数
     * @return PageResult<Equipment>
     */
    PageResult<Equipment> pageRel(EquipmentParam param);

    /**
     * 关联查询全部
     *
     * @param param 查询参数
     * @return List<Equipment>
     */
    List<Equipment> listRel(EquipmentParam param);

    /**
     * 根据id查询
     *
     * @param equipmentId 设备ID
     * @return Equipment
     */
    Equipment getByIdRel(Integer equipmentId);

    Equipment getByEquipmentCode(String equipmentCode);
}
