mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
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
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
package com.panzhihua.service_community.service;
 
import java.util.List;
 
import com.panzhihua.common.model.dtos.community.ComMngPopulationDTO;
import com.panzhihua.common.model.dtos.community.ComMngPopulationEditDTO;
import com.panzhihua.common.model.dtos.community.ComMngPopulationTagCardNoDTO;
import com.panzhihua.common.model.dtos.community.ComMngPopulationTagDTO;
import com.panzhihua.common.model.dtos.community.bigscreen.BigScreenEventDTO;
import com.panzhihua.common.model.dtos.community.bigscreen.BigScreenEventDetailDTO;
import com.panzhihua.common.model.dtos.grid.PageComMngPopulationDTO;
import com.panzhihua.common.model.dtos.grid.PagePopulationListDTO;
import com.panzhihua.common.model.dtos.grid.admin.ComMngPopulationExportDTO;
import com.panzhihua.common.model.dtos.grid.admin.ComMngPopulationListDTO;
import com.panzhihua.common.model.dtos.grid.admin.PageComMngVillagePopulationDTO;
import com.panzhihua.common.model.dtos.user.PageInputUserDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.community.*;
import com.panzhihua.common.model.vos.user.ComMngTagVO;
import com.panzhihua.common.model.vos.user.UserElectronicFileVO;
import com.panzhihua.service_community.model.dos.ComMngPopulationDO;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
 
/**
 * 实有人口Service
 */
public interface ComMngPopulationService {
    /**
     * 新增实有人口
     * 
     * @param comMngPopulationVO
     *            实有人口信息
     * @return 新增结果
     */
    R addPopulation(ComMngPopulationVO comMngPopulationVO);
 
    /**
     * 编辑实有人口
     * 
     * @param comMngPopulationVO
     *            编辑内容
     * @return 编辑结果
     */
    R putPopulation(ComMngPopulationVO comMngPopulationVO);
 
    /**
     * 查询实有人口
     * 
     * @param comMngPopulationVO
     *            请求参数
     * @return 实有人口集合
     */
    R listPopulation(ComMngPopulationDTO comMngPopulationVO);
 
    /**
     * 实有人口详情
     * 
     * @param populationId
     *            实有人口id
     * @return 实有人口详情
     */
    R detailPopulation(Long populationId, Long communityId);
 
    /**
     * 分页查询实有人口
     * 
     * @param comMngPopulationVO
     *            查询参数
     * @return 分页集合
     */
    R pagePopulation(ComMngPopulationDTO comMngPopulationVO);
 
    /**
     * 老人导出
     *
     * @param comMngPopulationVO
     *            查询参数
     * @return 分页集合
     */
    R exportOld(ComMngPopulationDTO comMngPopulationVO);
 
    /**
     * 查询平台所有的实有人口
     * 
     * @return 实有人口集合 按照创建顺序倒序排列
     */
    R listPopulationAll();
 
    /**
     * 删除实有人口
     * 
     * @param populationId
     *            实有人口id
     * @return 删除结果
     */
    R deletePopulation(Long populationId);
 
    /**
     * 导入实有人口
     * 
     * @param list
     * @param communityId
     * @return
     */
    R listSavePopulation(List<ComMngPopulationServeExcelVO> list, Long communityId, Long userId);
 
    /**
     * 导入吸毒人员
     * 
     * @param list
     * @param communityId
     * @return
     */
    R listSaveDrugPopulation(List<ComMngPopulationDrugExcelVO> list, Long communityId, Long userId);
 
    /**
     * 批量导入社区矫正人员
     *
     * @param list
     *            社区矫正人员数据
     * @param communityId
     *            社区id
     * @return 导入结果
     */
    R listSaveCorrectPopulation(List<ComMngPopulationCorrectExcelVO> list, Long communityId, Long userId);
 
    /**
     * 批量导入重精人员
     *
     * @param list
     *            重精人员数据
     * @param communityId
     *            社区id
     * @return 导入结果
     */
    R listSaveMajorPopulation(List<ComMngPopulationMajorExcelVO> list, Long communityId, Long userId);
 
    /**
     * 批量导入邪教人员
     *
     * @param list
     *            邪教人员数据
     * @param communityId
     *            社区id
     * @return 导入结果
     */
    R listSaveCultPopulation(List<ComMngPopulationCultExcelVO> list, Long communityId, Long userId);
 
    /**
     * 批量导入刑释人员
     *
     * @param list
     *            刑释人员数据
     * @param communityId
     *            社区id
     * @return 导入结果
     */
    R listSaveRehabilitationPopulation(List<ComMngPopulationRehabilitationExcelVO> list, Long communityId, Long userId);
 
    /**
     * 批量导入重点上访人员
     *
     * @param list
     *            重点上访人员数据
     * @param communityId
     *            社区id
     * @return 导入结果
     */
    R listSaveKeyPopulation(List<ComMngPopulationKeyExcelVO> list, Long communityId, Long userId);
 
    /**
     * 批量导入服刑人员
     *
     * @param list
     *            服刑人员数据
     * @param communityId
     *            社区id
     * @return 导入结果
     */
    R listSaveSentencePopulation(List<ComMngPopulationSentenceExcelVO> list, Long communityId, Long userId);
 
    /**
     * 批量导入退役军人
     *
     * @param list
     *            退役军人数据
     * @param communityId
     *            社区id
     * @return 导入结果
     */
    R listSaveVeteransPopulation(List<ComMngPopulationVeteransExcelVO> list, Long communityId, Long userId);
 
    /**
     * 批量导入残疾人
     *
     * @param list
     *            残疾人数据
     * @param communityId
     *            社区id
     * @return 导入结果
     */
    R listSaveDisabilityPopulation(List<ComMngPopulationDisabilityExcelVO> list, Long communityId, Long userId);
 
    /**
     * 批量导入低保户
     *
     * @param list
     *            低保户数据
     * @param communityId
     *            社区id
     * @return 导入结果
     */
    R listSaveLowSecurityPopulation(List<ComMngPopulationLowSecurityExcelVO> list, Long communityId, Long userId);
 
    /**
     * 批量导入高龄老人  listSavePopulationElderExcelVO  批量导入高龄老人
     * @param    list  高龄老人数据
     * @param    communityId   社区id
     * @return    R   导入结果
     * @author txb
     * @date 2021/9/01 15:03
     */
    R listSaveEdlerPopulation(List<ComMngPopulationElderExcelVO> list, Long communityId, Long userId);
 
    /**
     * 批量导入养老金人员  listSavePopulationPensionExcelVO  批量导入养老金人员
     * @param    list  养老金人员数据
     * @param    communityId   社区id
     * @return    R   导入结果
     * @author txb
     * @date 2021/9/01 15:03
     */
    R listSavePensionPopulation(List<ComMngPopulationPensionExcelVO> list, Long communityId, Long userId);
 
    /**
     * 确认导入实有人口(有则更新,无则新建)
     *
     * @param list
     *            用户信息
     * @param communityId
     *            社区id
     * @return 导入结果
     */
    R listSavePopulationConfirm(List<ComMngPopulationServeExcelVO> list, Long communityId);
 
    /**
     * 根据实有人口id修改用户标签
     *
     * @param populationTagDTO
     *            请求参数
     * @return 修改结果
     */
    R editTagPopulation(ComMngPopulationTagDTO populationTagDTO);
 
    /**
     * 批量删除实有人口
     *
     * @param ids
     *            实有人口id集合
     * @return 删除结果
     */
    R deletePopulations(List<Long> ids, Long communityId);
 
    /**
     * 根据社区id查询所有实有人口
     *
     * @param communityId
     *            社区id
     * @return 查询结果
     */
    R getPopulationListByCommunityId(Long communityId);
 
    /**
     * 根据id集合查询实有人口
     *
     * @param Ids
     *            实有人口id集合
     * @return 查询结果
     */
    R getPopulationLists(List<Long> Ids);
 
    /**
     * 根据小区id查询实有人口
     *
     * @param villageId
     *            小区id
     * @return 查询结果
     */
    R getPopulationListByVillageId(Long villageId);
 
    /**
     * 编辑实有人口
     *
     * @param populationEditDTO
     * @param communityId
     * @return
     */
    R editPopulation(ComMngPopulationEditDTO populationEditDTO, Long communityId) throws Exception;
 
    /**
     * 分页查询特殊群体
     *
     * @param pageInputUserDTO
     *            请求参数
     * @return 特殊群体列表
     */
    R specialInputUser(PageInputUserDTO pageInputUserDTO);
 
    /**
     * 删除特殊群体人员
     *
     * @param id
     *            特殊群体id
     * @return 删除结果
     */
    R deleteSpecialInputUser(Long id,Long communityId);
 
    /**
     * 基础数据》特殊群体》分页查询标签列表
     * 
     * @param comMngUserTagDTO
     * @return
     */
    R specialInputUserTags(PageInputUserDTO comMngUserTagDTO);
 
    /**
     * 新增或修改特殊群体标签
     * 
     * @param comMngTagVO
     * @return
     */
    R saveSpecialInputUserTags(ComMngTagVO comMngTagVO);
 
    /**
     * 删除特殊群体标签
     * 
     * @param id
     * @return
     */
    R deleteSpecialInputUserTags(Long id);
 
    /**
     * 查询实有人口电子档信息
     *
     * @param populationId
     *            实有人口id
     * @return 实有人口电子档信息
     */
    R electronicArchivesPopulation(Long populationId);
 
    /**
     * 编辑电子档案
     * 
     * @param userElectronicFileVO
     * @return
     */
    R editUserElectronicFile(UserElectronicFileVO userElectronicFileVO);
 
    /**
     * 实有人口统计
     * 
     * @param communityId
     *            社区id
     * @return 统计结果
     */
    R getPopulationTotalByAdmin(Long communityId);
 
    /**
     * 首页大屏统计接口
     * 
     * @param communityId
     *            社区id
     * @return 统计结果
     */
    R getScreenIndex(Long communityId);
 
    /**
     * 事件大屏统计接口
     * 
     * @param screenEventDTO
     *            请求参数
     * @return 统计结果
     */
    R getScreenEvent(BigScreenEventDTO screenEventDTO);
 
    /**
     * 民生大屏统计接口
     * 
     * @param communityId
     *            社区id
     * @return 统计结果
     */
    R getScreenCivil(Long communityId);
 
    /**
     * description 根据身份证信息修改用户标签信息
     *
     * @param comMngPopulationTagCardNoDTO
     *            查询对象
     * @return ComMngPopulationDO 实有人口信息
     * @author manailin
     * @date 2021/6/10 17:00
     */
    R editTagPopulationByCardNo(ComMngPopulationTagCardNoDTO comMngPopulationTagCardNoDTO);
 
    /**
     * description 根据身份证信息从实有人口表查询对应信息
     *
     * @param cardNo
     *            身份证号码
     * @return ComMngPopulationDO 实有人口信息
     * @author manailin
     * @date 2021/6/10 17:00
     */
    ComMngPopulationDO getPopulationByCardNo(String cardNo);
 
    /**
     * 大屏统计实有人口
     * 
     * @param communityId
     * @return
     */
    R screenStatistic(Long communityId);
 
    /**
     * 获取社区网格
     *
     * @param communityId
     *            社区id
     * @return 网格数据
     */
    R getScreenGirds(Long communityId);
 
    /**
     * 事件大屏查询事件详情
     *
     * @param eventDetailDTO
     *            请求参数
     * @return 事件详情
     */
    R getScreenEventDetail(BigScreenEventDetailDTO eventDetailDTO);
 
    /**
     * 获取人口数据信息
     *
     * @param populationListDTO
     *            请求参数
     * @return 人口数据
     */
    R pagePopulationListApp(PagePopulationListDTO populationListDTO);
 
    /**
     * 根据人口id获取人口详情
     *
     * @param populationId
     *            人口id
     * @return 人口详情
     */
    R getPopulationDetailApp(Long populationId);
 
    /**
     * 修复人口加密问题
     *
     * @return 修复结果
     */
    R getPopulationRepairByApp();
 
    /**
     * 综治后台-居民列表
     * 
     * @param populationListDTO
     *            请求参数
     * @return 居民列表
     */
    R getGridPopulationAdminList(ComMngPopulationListDTO populationListDTO);
 
    /**
     * 综治后台-删除居民
     * 
     * @param ids
     *            居民id集合
     * @return 删除结果
     */
    R delGridPopulationAdmin(List<Long> ids);
 
    /**
     * 查询平台人口列表
     * 
     * @param populationDTO
     *            请求参数
     * @return 人口列表
     */
    R getBuildingHousePopulationList(PageComMngPopulationDTO populationDTO);
 
    R binding();
 
    /**
     * 综治后台-居民标签栏统计
     * 
     * @return 居民统计
     */
    R getGridPopulationStatistics(Long communityId);
 
    /**
     * 综治后台-居民导出查询居民数据
     * 
     * @param populationExportDTO
     *            请求参数
     * @return 导出结果
     */
    R getGridPopulationExport(ComMngPopulationExportDTO populationExportDTO);
 
    /**
     * 综治后台-居民管理小区列表
     * 
     * @param name
     *            小区名字
     * @return 小区列表
     */
    R relationVillage(String name);
 
    R getVillagePopulationAdmin(PageComMngVillagePopulationDTO villagePopulationDTO);
 
    /**
     * 导出特殊人群
     * @param PageInputUserDTO
     * @return
     */
    R specialInputUserExport(PageInputUserDTO PageInputUserDTO);
 
    /**
     * 西区大屏治理数据
     * @return
     */
    R westScreenStatics();
 
    R getComprehensivePopulationStatics(Long streetId);
 
    R getComprehensiveStreetList();
 
    /**
     * 新版大屏首页
     * @param communityId
     * @return
     */
    R indexInfo(Long communityId);
 
    /**
     * 历史数据人员类型填充
     * @param newVoList
     * @param communityId
     * @param userId
     * @return
     */
    R filledPopulationPersonType(List<ComMngPopulationServeExcelVO> newVoList, Long communityId, Long userId);
}