package com.ruoyi.oa.service;
|
|
import com.ruoyi.oa.domain.SgIot;
|
import com.ruoyi.oa.domain.vo.SgIotVo;
|
import com.ruoyi.oa.domain.bo.SgIotBo;
|
import com.ruoyi.common.core.mybatisplus.core.IServicePlus;
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
import java.util.Collection;
|
import java.util.List;
|
|
/**
|
* IoT设备Service接口
|
*
|
* @author ruoyi
|
* @date 2022-05-12
|
*/
|
public interface ISgIotService extends IServicePlus<SgIot, SgIotVo> {
|
/**
|
* 查询单个
|
* @return
|
*/
|
SgIotVo queryById(Long id);
|
|
/**
|
* 查询列表
|
*/
|
TableDataInfo<SgIotVo> queryPageList(SgIotBo bo);
|
|
/**
|
* 查询列表
|
*/
|
List<SgIotVo> queryList(SgIotBo bo);
|
|
/**
|
* 根据新增业务对象插入IoT设备
|
* @param bo IoT设备新增业务对象
|
* @return
|
*/
|
Boolean insertByBo(SgIotBo bo);
|
|
/**
|
* 根据编辑业务对象修改IoT设备
|
* @param bo IoT设备编辑业务对象
|
* @return
|
*/
|
Boolean updateByBo(SgIotBo bo);
|
|
/**
|
* 校验并删除数据
|
* @param ids 主键集合
|
* @param isValid 是否校验,true-删除前校验,false-不校验
|
* @return
|
*/
|
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
|
|
int getNumber(SgIotBo bo);
|
}
|