唐耀东
2022-05-12 b78f403d9237c2bbddbc9be505acfd068a0521aa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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);
}