郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
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
59
60
61
62
63
64
65
66
67
68
package com.gkhy.safePlatform.doublePrevention.service.baseService;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gkhy.safePlatform.doublePrevention.entity.PreventProduceDevice;
import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventProduceDeviceQueryReqDTO;
import com.gkhy.safePlatform.doublePrevention.entity.statistics.DeviceEveryLevelCountDO;
import com.gkhy.safePlatform.doublePrevention.repository.param.PreventProduceDeviceDeleteParams;
import com.gkhy.safePlatform.doublePrevention.repository.param.PreventProduceDeviceQueryParams;
import com.gkhy.safePlatform.doublePrevention.repository.param.PreventProduceDeviceUpdateParams;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
/**
 * (PreventProduceDevice)表服务接口
 *
 * @author makejava
 * @since 2022-06-25 10:40:17
 */
public interface PreventProduceDeviceService  extends IService<PreventProduceDevice> {
 
    /**
     * 生产装置-分页查询
     * */
    IPage<PreventProduceDevice> getDevicePage(Page<Object> page, PreventProduceDeviceQueryParams queryParams);
    /**
     * 生产装置-根绝风险等级查询
     * */
    PreventProduceDevice getByLevel(Byte riskLevel);
 
    /**
     * 生产装置-根绝设备名称和所在位置查询
     * */
    PreventProduceDevice selectByNameAndLocation(String produceDeviceName, String location);
    /**
     * 生产装置-新增
     * */
    int saveDevice(PreventProduceDevice device);
    /**
     * 生产装置-删除
     */
    int deleteById(PreventProduceDeviceDeleteParams param);
    /**
     * 生产装置-修改信息
     */
    int updateProduceDevice(PreventProduceDeviceUpdateParams updateParams);
    /**
     * 生产装置-查询-通过设备名称
     */
    PreventProduceDevice getDeviceByName(String produceDeviceName);
    /**
     * 生产装置-查询-通过id
     */
    PreventProduceDevice getDeviceById(Long id);
    /**
     * 生产装置- 查询生产装置列表
     */
    List<PreventProduceDevice> getListDevices();
 
    /**
     * @Description: 统计各生产装置等级的数量
     */
    DeviceEveryLevelCountDO countDeviceEveryLevel();
 
}