智慧保安后台管理-验收版本
tangzy
2021-09-17 9ef68c9682b9bb56b72031fd92d150d65edfc07c
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.information.service.impl;
 
import org.springblade.modules.dispatcher.vo.DispatcherVO;
import org.springblade.modules.information.entity.Information;
import org.springblade.modules.information.vo.InformationVO;
import org.springblade.modules.information.mapper.InformationMapper;
import org.springblade.modules.information.service.IInformationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
 
import java.util.List;
import java.util.Map;
 
/**
 *  服务实现类
 *
 * @author BladeX
 * @since 2021-07-07
 */
@Service
public class InformationServiceImpl extends ServiceImpl<InformationMapper, Information> implements IInformationService {
 
    @Override
    public IPage<InformationVO> selectInformationPage(IPage<InformationVO> page, InformationVO information) {
        return page.setRecords(baseMapper.selectInformationPage(page, information));
    }
 
    @Override
    public void deleteIn(String ids) {
        baseMapper.deleteIn(ids);
    }
 
    @Override
    public void deleteSh(String ids) {
        baseMapper.deleteSh(ids);
    }
 
    @Override
    public void deleteMe(String ids) {
        baseMapper.deleteMe(ids);
    }
 
    @Override
    public Map selectCount(String departmentid) {
        return baseMapper.selectCount(departmentid);
    }
 
    @Override
    public List<Map<Object, String>> selectInCount(String jurisdiction,String deptid) {
        return baseMapper.selectInCount(jurisdiction,deptid);
    }
 
    @Override
    public List<Map<String, Object>>selectCs(String jurisdiction,String deptid) {
        return baseMapper.selectCs(jurisdiction,deptid);
    }
 
    @Override
    public List<Map<String, Object>> selectTo(String jurisdiction,String deptid) {
        return baseMapper.selectTo(jurisdiction,deptid);
    }
 
    @Override
    public Map<String, String> queryYearSoil(String year,String jurisdiction,String deptid) {
        return baseMapper.queryYearSoil(year,jurisdiction,deptid);
    }
    @Override
    public Map<String, String> queryYearAn(String year,String jurisdiction,String deptid) {
        return baseMapper.queryYearAn(year,jurisdiction,deptid);
    }
 
    @Override
    public List<Map<Object, Object>> queryCountB(String jurisdiction, String deptid) {
        return baseMapper.queryCountB(jurisdiction, deptid);
    }
 
    @Override
    public List<Map<Object, Object>> queryCountZc(String jurisdiction, String deptid) {
        return baseMapper.queryCountZc(jurisdiction, deptid);
    }
 
    @Override
    public List<Map<Object, Object>> queryCountCz(String jurisdiction, String deptid) {
        return baseMapper.queryCountCz(jurisdiction, deptid);
    }
 
    @Override
    public List<Map<Object, Object>> queryCountSb(String jurisdiction, String deptid) {
        return baseMapper.queryCountSb(jurisdiction, deptid);
    }
 
    @Override
    public List<Map<Object, Object>> queryCountKh(String jurisdiction, String deptid) {
        return baseMapper.queryCountKh(jurisdiction, deptid);
    }
 
    @Override
    public List<Map<Object, Object>> queryCountPq(String jurisdiction, String deptid) {
        return baseMapper.queryCountPq(jurisdiction, deptid);
    }
 
    @Override
    public Map<String, String> queryYearZ(String year, String jurisdiction, String deptid) {
        return baseMapper.queryYearZ(year, jurisdiction, deptid);
    }
 
    @Override
    public Map<String, String> queryYearZc(String year, String jurisdiction, String deptid) {
        return baseMapper.queryYearZc(year, jurisdiction, deptid);
    }
 
    @Override
    public Map<String, String> queryYearCz(String year, String jurisdiction, String deptid) {
        return baseMapper.queryYearCz(year, jurisdiction, deptid);
    }
 
    @Override
    public Map<String, String> queryYearKh(String year, String jurisdiction, String deptid) {
        return baseMapper.queryYearKh(year, jurisdiction, deptid);
    }
 
    @Override
    public Map<String, String> queryYearBanan(String year, String jurisdiction, String deptid) {
        return baseMapper.queryYearBanan(year, jurisdiction, deptid);
    }
 
    @Override
    public List<Map<Object, Object>> selectExtype(String jurisdiction, String deptid,String type) {
        return baseMapper.selectExtype(jurisdiction, deptid,type);
    }
 
    @Override
    public List<Map<Object, Object>> selectJur() {
        return baseMapper.selectJur();
    }
 
    @Override
    public int selectExtypeUser() {
        return baseMapper.selectExtypeUser();
    }
 
    @Override
    public List<Map<Object, Object>> selectBx(String jurisdiction, String deptid,String type) {
        return baseMapper.selectBx(jurisdiction, deptid,type);
    }
 
    @Override
    public Map<String, String> queryYearDe(String year, String jurisdiction, String deptid) {
        return baseMapper.queryYearDe(year, jurisdiction, deptid);
    }
 
    @Override
    public Map selectPcount(String jurisdiction, String deptid) {
        return baseMapper.selectPcount(jurisdiction, deptid);
    }
 
    @Override
    public Map selectWPcount(String jurisdiction, String deptid) {
        return baseMapper.selectWPcount(jurisdiction, deptid);
    }
 
    @Override
    public List<Map<Object, Object>> selectIn(String jurisdiction) {
        return baseMapper.selectIn(jurisdiction);
    }
 
    @Override
    public void deleteDept(String ids) {
        baseMapper.deleteDept(ids);
    }
 
    @Override
    public IPage selectLi(IPage page,String jurisdiction, String deptid,String stats) {
        return page.setRecords(baseMapper.selectLi(page,jurisdiction, deptid,stats));
    }
 
    @Override
    public List<Map<Object, Object>> seCountI(String jurisdiction, String deptid) {
        return baseMapper.seCountI(jurisdiction, deptid);
    }
 
    @Override
    public String seCountUm(String jurisdiction, String deptid) {
        return baseMapper.seCountUm(jurisdiction, deptid);
    }
 
    @Override
    public String seCountUg(String jurisdiction, String deptid) {
        return baseMapper.seCountUg(jurisdiction, deptid);
    }
 
    @Override
    public Map<String, String> queryYearPz(String year, String jurisdiction, String deptid) {
        return baseMapper.queryYearPz(year, jurisdiction, deptid);
    }
 
    @Override
    public IPage selectTb(IPage page,String jurisdiction,String enterpriseName) {
        return page.setRecords(baseMapper.selectTb(page,jurisdiction, enterpriseName));
    }
 
    @Override
    public IPage selectJj(IPage page,String jurisdiction,String enterpriseName) {
        return page.setRecords(baseMapper.selectJj(page,jurisdiction, enterpriseName));
    }
 
    @Override
    public IPage selectYw(IPage page,String jurisdiction, String deptid,String stats) {
        return page.setRecords(baseMapper.selectYw(page,jurisdiction, deptid,stats));
    }
 
    @Override
    public IPage selectUIn(IPage page,String deptid, String name, String hold, String photo, String examinationtype, String dispatch,String soil) {
        return page.setRecords(baseMapper.selectUIn(page,deptid, name, hold, photo, examinationtype, dispatch,soil));
    }
 
    @Override
    public IPage selectDis(IPage page,String jurisdiction,String deptid,String fid) {
        return page.setRecords(baseMapper.selectDis(page,jurisdiction,deptid,fid));
    }
 
    @Override
    public List<Map<Object, Object>> selectFw() {
        return baseMapper.selectFw();
    }
 
    @Override
    public List<Map<Object, Object>> selectCf(String jurisdiction) {
        return baseMapper.selectCf(jurisdiction);
    }
 
    @Override
    public List<Map<Object, Object>> selectCl(String jurisdiction) {
        return baseMapper.selectCl(jurisdiction);
    }
 
    @Override
    public List<Map<Object,Object>> selectWg(String jurisdiction) {
        return baseMapper.selectWg(jurisdiction);
    }
 
    @Override
    public List<Map<Object, Object>> selectJy(String jurisdiction) {
        return baseMapper.selectJy(jurisdiction);
    }
 
    @Override
    public List<Map<Object, Object>> selectYs(String jurisdiction) {
        return baseMapper.selectYs(jurisdiction);
    }
 
    @Override
    public List<Map<Object, Object>> selectAge(String jurisdiction, String deptid) {
        return baseMapper.selectAge(jurisdiction, deptid);
    }
 
    @Override
    public List<Map<Object, Object>> selJur() {
        return baseMapper.selJur();
    }
 
    @Override
    public String selJurchilder(String id) {
        return baseMapper.selJurchilder(id);
    }
 
    @Override
    public List<Map<Object, Object>> seleJuList(String substring) {
        return baseMapper.seleJuList(substring);
    }
 
    @Override
    public List<Map<String, Object>> seleP(String jurisdiction, String deptid) {
        return baseMapper.seleP(jurisdiction, deptid);
    }
 
    /**
     * 获取保安公司信息(本市保安公司,分公司)包含经纬度
     * @return
     */
    @Override
    public List<InformationVO> getSecurityUnitPositionInfo() {
        return baseMapper.getSecurityUnitPositionInfo();
    }
 
    /**
     * 根据辖区查询保安公司分页信息(本市保安公司,分公司)
     * @param page  分页条件
     * @param information 查询条件
     * @return
     */
    @Override
    public IPage<InformationVO> getSecurityUnitInfoPage(IPage<InformationVO> page, InformationVO information) {
        return page.setRecords(baseMapper.getSecurityUnitInfoPage(page, information));
    }
 
    /**
     * 根据辖区查询统计保安公司持证情况分页信息(本市保安公司,分公司)
     * @param page  分页条件
     * @param information 查询条件
     * @return
     */
    @Override
    public IPage<InformationVO> getSecurityUnitHoldInfoPage(IPage<InformationVO> page, InformationVO information) {
        return page.setRecords(baseMapper.getSecurityUnitHoldInfoPage(page, information));
    }
 
    /**
     * 根据辖区查询统计保安公司持证率低于50%的保安公司个数及保安公司分页信息(本市保安公司,分公司)
     * @param page  分页条件
     * @param information 查询条件
     * @return
     */
    @Override
    public IPage<InformationVO> getSecurityUnitHoldLess50Page(IPage<InformationVO> page, InformationVO information) {
        return page.setRecords(baseMapper.getSecurityUnitLess50Page(page,1,information));
    }
 
    /**
     * 根据辖区查询统计保安公司派遣率低于50%的保安公司个数及保安公司分页信息(本市保安公司,分公司)
     * @param page  分页条件
     * @param information 查询条件
     * @return
     */
    @Override
    public IPage<InformationVO> getSecurityUnitDispatcherLess50Page(IPage<InformationVO> page, InformationVO information) {
        return page.setRecords(baseMapper.getSecurityUnitLess50Page(page,2, information));
    }
 
    /**
     * 根据辖区查询统计保安公司社保缴纳率低于50%的保安公司个数及保安公司分页信息(本市保安公司,分公司)
     * @param page  分页条件
     * @param information 查询条件
     * @return
     */
    @Override
    public IPage<InformationVO> getSecurityUnitSoilLess50Page(IPage<InformationVO> page, InformationVO information) {
        return page.setRecords(baseMapper.getSecurityUnitLess50Page(page,3, information));
    }
 
    /**
     * 根据辖区查询统计保安公司考试通过率低于50%的保安公司个数及保安公司分页信息(本市保安公司,分公司)
     * @param page  分页条件
     * @param information 查询条件
     * @return
     */
    @Override
    public IPage<InformationVO> getSecurityUnitExamLess50Page(IPage<InformationVO> page, InformationVO information) {
        return page.setRecords(baseMapper.getSecurityUnitExamLess50Page(page, information));
    }
 
    /**
     * 根据辖区查询统计当前辖区下的保安公司(本市保安公司,分公司)预警信息,包含(未持证,现实表现差,未缴纳社保,资格审查异常)
     * @param page  分页条件
     * @param information 查询条件
     * @return
     */
    @Override
    public IPage<InformationVO> getSubstationWarnInfoPage(IPage<InformationVO> page, InformationVO information) {
        return page.setRecords(baseMapper.getSubstationWarnInfoPage(page, information));
    }
 
    /**
     * 根据辖区查询统计当前辖区下的保安公司(本市保安公司,分公司))服务对象小于2家的公司数量的分页信息
     * @param page  分页条件
     * @param information 查询条件
     * @return
     */
    @Override
    public IPage<InformationVO> getSecurityUnitServerLess2Page(IPage<InformationVO> page, InformationVO information) {
        return page.setRecords(baseMapper.getSecurityUnitServerLess2Page(page, information));
    }
 
    /**
     * 根据辖区查询统计保安公司保险缴纳率低于90%的保安公司个数及保安公司分页信息(本市保安公司,分公司)
     * @param page  分页条件
     * @param information 查询条件
     * @return
     */
    @Override
    public IPage<InformationVO> getSecurityUnitInsuranceLessPage(IPage<InformationVO> page, InformationVO information) {
        return page.setRecords(baseMapper.getSecurityUnitLess50Page(page,4, information));
    }
}