郑永安
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
package com.gkhy.safePlatform.safeCheck.service;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gkhy.safePlatform.commons.co.ContextCacheUser;
import com.gkhy.safePlatform.safeCheck.model.dto.req.*;
import com.gkhy.safePlatform.safeCheck.model.dto.resp.*;
 
import java.util.HashMap;
import java.util.List;
 
public interface SafeCheckBaseManagerService {
 
    /**
     * @description 获取巡检指标的单元及类型(有效状态)
     */
    List<SafeCheckQuotaTypeRespDTO> listQuotaType();
 
    /**
     * @description 获取巡检区域类型(有效状态)
     */
    List<SafeCheckRegionTypeRespDTO> listRegionType();
 
    /**
     * @description 获取所有巡检区域名称(有效状态)
     */
    List<SafeCheckRegionNameRespDTO> listRegionName();
 
    /**
     * @description 获取所有有效的RFID名称(有效状态)
     */
    List<SafeCheckRfidNameRespDTO> listRfidName();
 
    /**
     * @description 新增巡检区域
     */
    int saveRegion(ContextCacheUser currentUser, SafeCheckRegionReqDTO safeCheckRegionReqDTO);
 
    /**
     * @description 根据id删除巡检区域
     */
   int deleteRegionById(ContextCacheUser currentUser, Long id);
 
    /**
     * @description 根据id更新巡检区域
     */
    void updateRegionById(ContextCacheUser currentUser, SafeCheckRegionReqDTO safeCheckRegionReqDTO);
 
    /**
     * @description 条件分页查询所有的区域  没有条件就是全部查询
     */
    Page listRegionByPage(Page pageInfo, HashMap<String, Object> selectCondition,ContextCacheUser currentUser);
 
    /**
     * @description 根据巡检区域id、未删除标志查询巡检数据
     */
    SafeCheckRegionRespDTO getRegionById(Long id);
 
    /**
     * @description 新增巡检指标
     */
    int saveQuota(ContextCacheUser currentUser, SafeCheckQuotaReqDTO safeCheckQuotaReqDTO);
 
    /**
     * @description 根据巡检指标id删除巡检指标
     */
    void deleteQuotaById(ContextCacheUser currentUser, Long quotaId);
 
    /**
     * @description 根据巡检指标id修改巡检指标
     */
    void updateQuotaById(ContextCacheUser currentUser, SafeCheckQuotaReqDTO safeCheckQuotaReqDTO);
 
    /**
     * @description 根据巡检指标id获取巡检指标
     */
    SafeCheckQuotaUpdateRespDTO getQuataById(Long id);
 
    /**
     * @description 根据巡检指标name获取巡检指标
     */
    SafeCheckQuotaRespDTO getQuotaByName(String quotaName);
 
    /**
     * @description 分页获取当前页中的巡检指标信息
     */
    Page listQuotaByPage(Page pageInfo,String quotaName);
 
 
    /**
     * @description 新增巡检区域rfid
     *
     */
    void saveRfid(ContextCacheUser currentUser, SafeCheckRfidReqDTO safeCheckRfidReqDTO);
 
    /**
     * @description 条件分页查询  没有条件就是全部查询
     */
    Page listRfidByPage(Page pageInfo, SafeCheckRfidPageReqDTO safeCheckRfidPageReqDTO,ContextCacheUser currentUser);
 
    /**
     * @description 根据RFID的id值删除rfid
     */
    void deleteRfidById(ContextCacheUser currentUser, int rfidId);
 
    /**
     * @description 根据RFID的id值获取RFID
     */
    SafeCheckRfidRespDTO getRfidById(int rfidId);
 
    /**
     * @description 根据RFID的id更新RFID
     */
    void updateRfidById(ContextCacheUser currentUser, SafeCheckRfidReqDTO safeCheckRfidReqDTO);
 
    /**
     * @description 新增巡检点
     */
    void savePoint(ContextCacheUser currentUser, SafeCheckPointReqDTO safeCheckPointReqDTO);
 
    /**
     * @description 根据巡检点id删除巡检点
     */
    void deletePointById(ContextCacheUser currentUser,Long id);
 
    /**
     * @description 根据巡检点id查询数据
     */
    SafeCheckPointRespDTO getPointById(Long id);
 
    /**
     * @description 根据id更新巡检点
     */
    void updatePointById(ContextCacheUser currentUser, SafeCheckPointReqDTO safeCheckPointReqDTO);
 
    /**
     * @description 查询所有巡检点数据并进行分页展示
     */
    Page listPointByPage(Page pageInfo, SafeCheckPointPageReqDTO safeCheckPointPageReqDTO,ContextCacheUser currentUser);
 
    /**
     * @description 获取所有巡检点、巡检区域、巡检rfid的id值
     */
    List<SafeCheckPointRespDTO> getPointRegionRfidId();
 
 
    /**
     * 获取所有的巡检指标
     */
    List<ListQuotasRespDTO> listQuotas(ContextCacheUser currentUser);
}