package com.qmth.sop.business.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qmth.sop.business.entity.SysDeviceModel;
import java.util.Map;

/**
 * 设备品牌型号表 服务类
 *
 * @author: shudonghui
 * @date: 2023-08-25 10:29:08
 * @version: 1.0
 * @email: shudonghui@qmth.com.cn
 * @Company: www.qmth.com.cn
 */
public interface SysDeviceModelService extends IService<SysDeviceModel> {

    /**
     * 查询列表
     *
     * @param iPage iPage
     * @return 结果
     */
    IPage<SysDeviceModel> query(IPage<Map> iPage, String query);

    /**
     * 新增修改设备品牌型号表
     *
     * @param sysDeviceModel sysDeviceModel
     */
    Boolean saveSysDeviceModel(SysDeviceModel sysDeviceModel);

    /**
     * 查询或新增设备幸好偶
     *
     * @param brand 品牌
     * @param model 型号
     * @return 型号id
     */
    SysDeviceModel findOrAddDeviceModel(String brand, String model);


    /**
     * 删除设备品牌型号表
     *
     * @param id id
     */
    Boolean delete(Long id);
}