manailin
2022-09-24 9030449dcf90628b7d7b28911c7843c97f04c103
Merge remote-tracking branch 'remotes/origin/sanshuohuitang_dev' into huacheng_test

# Conflicts:
# springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/user/UserService.java
# springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java
# springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/UserService.java
# springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java
19个文件已修改
77个文件已添加
7978 ■■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ComSanShuoApi.java 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ComSanShuoEventController.java 174 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/config/JacksonConfig.java 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/applets_backstage/src/main/java/com/panzhihua/applets_backstage/api/CommunityApi.java 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/applets_backstage/src/main/java/com/panzhihua/applets_backstage/api/StreetApi.java 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/constants/ReturnMsgConstants.java 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/constants/UserConstants.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/enums/SanShuoEventStatusEnum.java 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/ComMediateTypeDTO.java 98 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/ComSanShuoIndustryCenterDTO.java 83 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/ComSanshuoEventDTO.java 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/ComSanshuoExpertDTO.java 139 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/IndexDateDTO.java 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/LoginUserInfoVO.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActVO.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComStreetVO.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventArchiveVO.java 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventCalculateVO.java 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventConciliationVO.java 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventDetailVO.java 126 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventPageRequestVO.java 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventRequestImageVO.java 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventResourceVO.java 55 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventTransferRecordVO.java 94 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventVO.java 151 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComMediaTypeVO.java 97 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanRequestVO.java 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanShuoEventVO.java 56 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanShuoIndustryCenterVO.java 80 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanshuoExpertVO.java 145 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/EventRateVO.java 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ExpertRangeVO.java 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ExpertShowVO.java 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/IndexDateVO.java 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/MediateTypeVO.java 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunitySanShuoService.java 185 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java 181 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/user/UserService.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComSanShuoApi.java 160 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComSanShuoEventController.java 249 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/config/JacksonConfig.java 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/java/com/panzhihua/grid_backstage/api/ComSanShuoApi.java 165 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/java/com/panzhihua/grid_backstage/api/ComSanShuoEventController.java 248 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActActivityCodeApi.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventApi.java 83 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventController.java 335 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventResourceController.java 166 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventTransferRecordController.java 150 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java 128 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoIndustryCenterApi.java 80 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/StreetApi.java 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDAO.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComEventMapper.java 89 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComEventResourceMapper.java 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComEventTransferRecordMapper.java 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMediateTypeDao.java 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSanshuoEventDao.java 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSanshuoExpertDao.java 62 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSanshuoIndustryCenterDao.java 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComEvent.java 164 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComEventResource.java 60 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComEventTransferRecord.java 104 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComMediateType.java 186 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComSanshuoEvent.java 114 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComSanshuoExpert.java 223 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComSanshuoIndustryCenter.java 144 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActDO.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComStreetDO.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/schedule/AcidSchedule.java 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSanShuoEventService.java 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSanShuoExpertService.java 48 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSanShuoIndustryCenterService.java 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComStreetService.java 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/CommediateTypeService.java 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/IComEventResourceService.java 70 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/IComEventService.java 100 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/IComEventTransferRecordService.java 60 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventResourceServiceImpl.java 80 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java 475 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventTransferRecordServiceImpl.java 70 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoEventServiceImpl.java 61 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoExpertServiceImpl.java 296 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoIndustryCenterServiceImpl.java 102 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComStreetServiceImpl.java 70 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/CommediateTypeServiceImpl.java 69 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComEventMapper.xml 383 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComEventResourceMapper.xml 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComEventTransferRecordMapper.xml 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComMediaTypeMapper.xml 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSanshuoEventDao.xml 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSanshuoExpertDao.xml 91 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSanshuoIndustryCenterDao.xml 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/test/java/com/panzhihua/service_community/service/impl/ComEventServiceImplTest.java 113 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/UserService.java 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java 81 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ComSanShuoApi.java
New file
@@ -0,0 +1,66 @@
package com.panzhihua.applets.api;
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.sanshuo.*;
import com.panzhihua.common.service.community.CommunityService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@Slf4j
@RestController
@RequestMapping("sanshuo")
@Api(tags = "三说会堂小程序接口")
public class ComSanShuoApi extends BaseController {
    @Resource
    private CommunityService communityService;
    @ApiOperation(value = "小程序获取可选择行业分中心列表",response = ComSanShuoIndustryCenterVO.class )
    @GetMapping("/industryCenter/appletsList")
    public R industryCenterAppList(){
        return communityService.industryCenterAppList();
    }
    @ApiOperation(value = "小程序获取可选择行专家列表",response = ComSanshuoExpertVO.class )
    @GetMapping("/expert/appletsList")
    public R expertAppList(){
        return communityService.expertAppList();
    }
    @ApiOperation(value = "专家风采",response = ExpertShowVO.class)
    @GetMapping("/expert/expertShow")
    public R expertShow(){
        return communityService.expertShow();
    }
    @ApiOperation("专家详情")
    @GetMapping("/expert/{id}")
    public R expertDetail(@PathVariable("id")Long id){
        return communityService.expertDetail(id);
    }
    @ApiOperation(value = "事件类型列表",response = ComMediaTypeVO.class)
    @GetMapping("/mediateType/list")
    public R mediateTypeList(){
        return communityService.eventAppList();
    }
    @ApiOperation(value = "业务中心详情",response = ComSanShuoIndustryCenterVO.class)
    @GetMapping("/industryCenter/detail")
    public R industryCenterDetail(@RequestParam("id") Long id){
        return communityService.industryCenterDetail(id);
    }
    @GetMapping("/expert/expertShowList")
    @ApiOperation(value = "专家风采列表",response = ComSanshuoExpertVO.class)
    public R expertShowList(@RequestParam(value = "level",required = false) @ApiParam("对应的level,1三说会堂2行业分中心3街道4社区")Integer level,
                            @RequestParam(value = "id",required = false) @ApiParam("id,level=1不传2行业分中心id 3街道id 4社区id")Long id){
        return communityService.expertShowList(level,id);
    }
}
springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ComSanShuoEventController.java
New file
@@ -0,0 +1,174 @@
package com.panzhihua.applets.api;
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.sanshuo.*;
import com.panzhihua.common.service.community.CommunitySanShuoService;
import com.panzhihua.common.utlis.CopyUtil;
import com.panzhihua.common.utlis.StringUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.HashMap;
/**
 * ClassName   ComEventController
 * Description 三说会堂事件表控制层
 *
 * @author manailin
 * @date 2022-09-07 11:23:51
 */
@Slf4j
@Api(tags = {"三说会堂事件表控制层"})
@RestController
@RequestMapping("/sanshuo/comEvent")
public class ComSanShuoEventController extends BaseController {
    @Resource
    private CommunitySanShuoService comEventService;
    /**
     * description 新增三说会堂事件表
     *
     * @param comSanRequestVO 对象
     * @return R  新增结果对象
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("新增三说会堂事件表")
    @PostMapping("/add")
    public R insertComEvent(@RequestBody @Valid ComSanRequestVO comSanRequestVO, @ApiIgnore BindingResult results) {
        if (results.hasErrors()) {
            return R.fail(results.getFieldError().getDefaultMessage());
        }
        return comEventService.insertComEvent(comSanRequestVO);
    }
    /**
     * description 根据ID获取三说会堂事件表信息
     *
     * @param id 主键id
     * @return R<ComEvent> comEvent 对象
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("根据ID获取三说会堂事件详情信息,返回事件信息和图片信息")
    @GetMapping("/detail/{id}")
    public R<HashMap> detail(@PathVariable(value = "id") String id) {
        if (StringUtils.isEmpty(id)) {
            throw new RuntimeException("参数不能为空");
        }
        return comEventService.detail(id);
    }
    /**
     * description page   三说会堂事件表分页列表数据
     *
     * @param comEventPageRequestVO 对象
     * @return PageResult<List < ComEvent>>  三说会堂事件表分页列表数据
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation(value = "三说会堂事件表分页列表数据", notes = "三说会堂事件表分页列表数据")
    @PostMapping("/page")
    public R page(@RequestBody ComEventPageRequestVO comEventPageRequestVO) {
        ComEventVO comEventVO = CopyUtil.copyProperties(comEventPageRequestVO, ComEventVO.class);
        return comEventService.page(comEventVO, comEventVO.getPageNo(), comEventVO.getPageSize());
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("取消申请")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
    })
    @PutMapping("/cancelRequest")
    public R cancelRequest(@RequestParam("id") Long id) {
        return comEventService.cancelRequest(id);
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("专家受理")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "事件ID", required = true, dataType = "Long"),
            @ApiImplicitParam(name = "specterId", value = "专家ID", required = true, dataType = "Long"),
    })
    @PutMapping("/accept/Request")
    public R acceptRequest( Long id,  Long specterId) {
        return comEventService.acceptRequest(id, specterId);
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("专家不受理,转其他专家处理")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
    })
    @PutMapping("/reject/Request")
    public R rejectRequest(@RequestParam("id") Long id) {
        return comEventService.rejectRequest(id);
    }
    /**
     * description 专家调解处理
     *
     * @param comEventConciliationVO 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("专家调解处理")
    @PutMapping("/conciliation/Request")
    public R conciliationRequest(@RequestBody ComEventConciliationVO comEventConciliationVO) {
        return comEventService.conciliationRequest(comEventConciliationVO);
    }
    /**
     * description 专家归档
     *
     * @param comEventArchiveVO 归档对象
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("事件专家归档")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
            @ApiImplicitParam(name = "result", value = "归档结论", required = true, dataType = "String"),
    })
    @PutMapping("/archive/Request")
    public R archiveRequest(@RequestBody ComEventArchiveVO comEventArchiveVO) {
        return comEventService.archiveRequest(comEventArchiveVO);
    }
}
springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/config/JacksonConfig.java
New file
@@ -0,0 +1,31 @@
package com.panzhihua.applets.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
@Configuration
public class JacksonConfig {
    @Bean
    @Primary
    @ConditionalOnMissingBean(ObjectMapper.class)
    public ObjectMapper jacksonObjectMapper(Jackson2ObjectMapperBuilder builder)
    {
        ObjectMapper objectMapper = builder.createXmlMapper(false).build();
        // 全局配置序列化返回 JSON 处理
        SimpleModule simpleModule = new SimpleModule();
        //JSON Long ==> String
        simpleModule.addSerializer(Long.class, ToStringSerializer.instance);
        objectMapper.registerModule(simpleModule);
        return objectMapper;
    }
}
springcloud_k8s_panzhihuazhihuishequ/applets_backstage/src/main/java/com/panzhihua/applets_backstage/api/CommunityApi.java
@@ -107,4 +107,17 @@
        return communityService.detailCommunity(id);
    }
    @ApiOperation("删除社区")
    @DeleteMapping("/remove/{id}")
    public R removeCommunity(@PathVariable("id")Long id){
        return communityService.removeCommunity(id);
    }
    @ApiOperation("重置密码")
    @PostMapping("/repass")
    public R repass(@RequestBody ComActVO comActVO){
        return communityService.repassCommunity(comActVO);
    }
}
springcloud_k8s_panzhihuazhihuishequ/applets_backstage/src/main/java/com/panzhihua/applets_backstage/api/StreetApi.java
@@ -5,10 +5,7 @@
import javax.annotation.Resource;
import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.dtos.community.PageComStreetDTO;
@@ -61,4 +58,22 @@
        return communityService.delectStreat(Ids);
    }
    @ApiOperation("修改街道")
    @PostMapping("/update")
    public R update(@RequestBody ComStreetVO comStreetVO){
        return communityService.updateStreet(comStreetVO);
    }
    @DeleteMapping("/remove/{id}")
    @ApiOperation("删除街道")
    public R remove(@PathVariable("id") Long id){
        return communityService.removeStreet(id);
    }
    @ApiOperation("重置密码")
    @PostMapping("repass")
    public R repass(@RequestBody ComStreetVO comStreetVO){
        return communityService.repassStreet(comStreetVO);
    }
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/constants/ReturnMsgConstants.java
New file
@@ -0,0 +1,37 @@
package com.panzhihua.common.constants;
/**
 * 字典表key
 *
 * @author xyh
 * @date 2021/6/11 15:53
 */
public class ReturnMsgConstants {
    /**
     * 数据已经存在
     */
    public static final String DATA_EXIST = "数据已经存在!";
    /**
     * 数据不存在
     */
    public static final String DATA_NOT_EXIST = "数据不存在!";
    /**
     * 保存成功
     */
    public static final String SAVE_SUCCESS = "保存成功";
    /**
     * 保存失败
     */
    public static final String SAVE_FALSE = "保存失败";
    /**
     * 更新成功
     */
    public static final String UPDATE_SUCCESS = "更新成功";
    /**
     * 更新失败
     */
    public static final String UPDATE_FALSE = "更新失败";
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/constants/UserConstants.java
@@ -16,4 +16,6 @@
    public static final String NEWS_ID = "news_media_id:";
    public static final String NEWS_LIST = "news_list:";
    public static final String SANSHUO_INDUSTRY_CENTER_ROLE="1559112102373756911";
    public static final String SANSHUO_EXPERT_ROLE="1559112102373756955";
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/enums/SanShuoEventStatusEnum.java
New file
@@ -0,0 +1,40 @@
package com.panzhihua.common.enums;
import lombok.Getter;
/**
 * 事件状态
 *
 * @author 1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案归档7调解取消8 已删除
 */
@Getter
public enum SanShuoEventStatusEnum {
    UNDO(1, "待处理"), VALID(2, "待验证"), ACCEPT(3, "专家已受理"), REJECT(4, "专家未受理,拒绝5"), conciliation(5, "调解中"), OVER(6, "已结案归档"), CANCEL(7, "调解取消"), DELETE(8, "已删除");
    private final Integer code;
    private final String name;
    SanShuoEventStatusEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
    public static int getCodeByName(String name) {
        for (SanShuoEventStatusEnum item : SanShuoEventStatusEnum.values()) {
            if (item.name.equals(name)) {
                return item.getCode();
            }
        }
        return UNDO.getCode();
    }
    public static String getCnDescByName(Integer code) {
        for (SanShuoEventStatusEnum item : SanShuoEventStatusEnum.values()) {
            if (item.code.equals(code)) {
                return item.getName();
            }
        }
        return "未知";
    }
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/ComMediateTypeDTO.java
New file
@@ -0,0 +1,98 @@
package com.panzhihua.common.model.dtos.community.sanshuo;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
@ApiModel("创建事件类型入参")
public class ComMediateTypeDTO {
    /**
     * 主键
     */
    @ApiModelProperty("id,修改时传")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 类型名称
     */
    @ApiModelProperty("类型名称")
    private String name;
    /**
     * code码
     */
    @ApiModelProperty("code码")
    private String code;
    /**
     * 父id((根节点为0))
     */
    @ApiModelProperty("父id((根节点为0))")
    private Long parentId;
    /**
     * 路径(格式 : `pid1`pid2`id` )
     */
    @ApiModelProperty("路径(格式 : `pid1`pid2`id` )")
    private String pathId;
    /**
     * 所在层级
     */
    @ApiModelProperty("所在层级")
    private Integer levelIndex;
    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Integer sort;
    /**
     * 启用状态(0:停用,1:启用)
     */
    @ApiModelProperty("启用状态(0:停用,1:启用)")
    private Boolean enabled;
    /**
     * 备注说明
     */
    @ApiModelProperty("备注说明")
    private String remarks;
    /**
     * 创建者
     */
    @ApiModelProperty("创建者")
    private Long createUser;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createDate;
    /**
     * 修改者
     */
    @ApiModelProperty("修改者")
    private Long modifyUser;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date modifyDate;
    /**
     * 删除标识(0:未删除,1:已删除)
     */
    @ApiModelProperty("0:未删除,1:已删除")
    private Boolean deleteFlag;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/ComSanShuoIndustryCenterDTO.java
New file
@@ -0,0 +1,83 @@
package com.panzhihua.common.model.dtos.community.sanshuo;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
@ApiModel("业务中心入参")
public class ComSanShuoIndustryCenterDTO {
    /**
     * id
     */
    @ApiModelProperty("id,修改时传")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 行业分中心名称
     */
    @ApiModelProperty("行业分中心名称")
    private String name;
    /**
     * 调解室电话
     */
    @ApiModelProperty("调解室电话")
    private String phone;
    /**
     * 登录账号
     */
    @ApiModelProperty("登录账号")
    private String account;
    /**
     * 创建人
     */
    @ApiModelProperty("创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date updateTime;
    /**
     * 状态0禁用1启用
     */
    @ApiModelProperty("状态0禁用1启用")
    private Integer status;
    /**
     * 0删除1正常
     */
    @ApiModelProperty("0删除1正常")
    private Integer delFlag;
    /**
     * 所属街道id
     */
    @ApiModelProperty("所属街道id")
    private Long streetId;
    @ApiModelProperty("密码")
    private String password;
    /**
     * 所属社区id
     */
    @ApiModelProperty("所属社区id")
    private Long communityId;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/ComSanshuoEventDTO.java
New file
@@ -0,0 +1,33 @@
package com.panzhihua.common.model.dtos.community.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
@ApiModel("三说事件查询入参")
public class ComSanshuoEventDTO {
    /**
     * 事件类型名称
     */
    @ApiModelProperty("事件类型名称")
    private String name;
    private Integer page;
    private Integer size;
    /**
     * 0禁用1启用
     */
    @ApiModelProperty("0禁用1启用")
    private Integer status;
    /**
     * 0删除1正常
     */
    @ApiModelProperty("0删除1正常")
    private Integer delFlag;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/ComSanshuoExpertDTO.java
New file
@@ -0,0 +1,139 @@
package com.panzhihua.common.model.dtos.community.sanshuo;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.panzhihua.common.model.vos.LoginUserInfoVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.Valid;
import java.util.Date;
@Data
@ApiModel("添加或修改专家入参")
@Valid
public class ComSanshuoExpertDTO {
    /**
     * id
     */
    @ApiModelProperty("id,修改时传")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 专家级别(1三说会堂2行业分中心3街道4社区)
     */
    @ApiModelProperty("专家级别(1三说会堂2行业分中心3街道4社区)")
    private Integer level;
    /**
     * 所属社区id
     */
    @ApiModelProperty("所属社区id")
    private Long communityId;
    /**
     * 工作时间
     */
    @ApiModelProperty("工作时间")
    private String workTime;
    /**
     * 擅长解决时间类型
     */
    @ApiModelProperty("擅长解决时间类型,多类型用,隔开")
    private String goodAt;
    /**
     * 姓名
     */
    @ApiModelProperty("姓名")
    private String name;
    /**
     * 头像
     */
    @ApiModelProperty("头像")
    private String avatar;
    /**
     * 手机号
     */
    @ApiModelProperty("手机号")
    private String phone;
    /**
     * 登陆账号
     */
    @ApiModelProperty("登陆账号")
    private String account;
    /**
     * 登陆密码
     */
    @ApiModelProperty("登陆密码")
    private String password;
    /**
     * 0禁用1启用
     */
    @ApiModelProperty("0禁用1启用默认1")
    private Integer status;
    /**
     * 删除状态0已删除1正常
     */
    @ApiModelProperty("删除状态0已删除1正常默认1")
    private Integer delFlag;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;
    /**
     * 创建人
     */
    @ApiModelProperty("创建人")
    private String createBy;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date updateTime;
    /**
     * 介绍信息
     */
    @ApiModelProperty("介绍信息")
    private String introduction;
    /**
     * 所属街道id
     */
    @ApiModelProperty("所属街道id")
    private Long streetId;
    /**
     * 行业分中心id
     */
    @ApiModelProperty("行业分中心id")
    private Long industryCenterId;
    /**
     * 备用字段1
     */
    private String param1;
    /**
     * 所属单位
     */
    @ApiModelProperty("所属单位")
    private String unit;
    private String unitId;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/IndexDateDTO.java
New file
@@ -0,0 +1,17 @@
package com.panzhihua.common.model.dtos.community.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import springfox.documentation.annotations.ApiIgnore;
@Data
@ApiModel("大屏事件入参(区三说会堂,行业分中心,街道,社区数据)")
public class IndexDateDTO {
    @ApiModelProperty("1区三说会堂,2行业分中心,3街道、镇,4社区/村,空为所有")
    private Integer type;
    @ApiModelProperty("行业分中心id或街道id或社区id(type=1不传,type=2传行业分中心id,type=3传街道id,type=4传社区id)")
    private Long id;
    @ApiModelProperty(hidden = true)
    private Integer level;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/LoginUserInfoVO.java
@@ -15,6 +15,7 @@
import com.panzhihua.common.model.vos.community.ComMngStructAreaVO;
import com.panzhihua.common.model.vos.community.ComMngStructHouseVO;
import com.panzhihua.common.model.vos.user.ComMngFamilyInfoVO;
import com.panzhihua.common.model.vos.user.RoleVO;
import com.panzhihua.common.validated.AddGroup;
import com.panzhihua.common.validated.PutGroup;
@@ -240,9 +241,10 @@
    @ApiModelProperty("报道单位id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long checkUnitId;
    public String retrieveRelationName() {
        return this.type == 3 ? relationName : name;
    }
    @ApiModelProperty("权限等级1-5:超管-行业分中心-街道-社区-专家")
    private Integer level;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActVO.java
@@ -92,4 +92,7 @@
    @ApiModelProperty("行政区域")
    private String administrativeRegions;
    @ApiModelProperty("调解站电话")
    private String solvePhone;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComStreetVO.java
@@ -57,4 +57,10 @@
    @ApiModelProperty("行政区域")
    private String administrativeRegions;
    @ApiModelProperty("调节站电话")
    private String solvePhone;
    @ApiModelProperty("状态1启用0禁用")
    private Integer status;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventArchiveVO.java
New file
@@ -0,0 +1,38 @@
package com.panzhihua.common.model.vos.sanshuo;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
 * Description 三说会堂事件归档对象
 * ClassName   ComEventArchiveVO
 *
 * @author manailin
 * @date 2022-09-07 11:23:52
 */
@Data
@ApiModel(value = "三说会堂事件归档对象")
public class ComEventArchiveVO {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @ApiModelProperty(name = "id", value = "主键")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 归档结论
     */
    @ApiModelProperty(name = "result", value = "归档结论")
    private String result;
    /**
     * 调解上传图片地址列表,逗号进行分割
     */
    @ApiModelProperty(name = "images", value = "调解上传图片地址列表,逗号进行分割")
    private List<ComEventRequestImageVO> images;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventCalculateVO.java
New file
@@ -0,0 +1,24 @@
package com.panzhihua.common.model.vos.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import java.util.List;
/**
 * Description 三说会堂事件表
 * ClassName   ComEventVO
 * @author     manailin
 * @date       2022-09-07 11:23:51
 */
@Data
@ApiModel(value = "三说会堂事件表")
public class ComEventCalculateVO {
    private static final long serialVersionUID = 1L;
    private String status;
    private String  sum;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventConciliationVO.java
New file
@@ -0,0 +1,41 @@
package com.panzhihua.common.model.vos.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import java.util.List;
/**
 * Description 三说会堂事件调解对象
 * ClassName   ComEventResourceVO
 * @author     manailin
 * @date       2022-09-07 11:23:52
 */
@Data
@ApiModel(value = "三说会堂事件调解对象")
public class ComEventConciliationVO {
    private static final long serialVersionUID = 1L;
    /**主键*/
    @ApiModelProperty(name = "id", value = "主键")
    private Long id;
    /**工作人员的事件处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案归档7调解取消*/
    @ApiModelProperty(name = "eventProcessStatus", value = "工作人员的事件处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案7已归档8调解取消9已删除")
    private Integer eventProcessStatus;
    /**事件结果(1、调解失败2、调解成功)*/
    @ApiModelProperty(name = "eventResult", value = "事件结果(1、调解失败2、调解成功)")
    private Integer eventResult;
    /**当前处理人是否上报上级单位处理*/
    @ApiModelProperty(name = "reportSuperior", value = "当前处理人是否上报上级单位处理")
    private Boolean reportSuperior;
    /**当前调解处理结果*/
    @ApiModelProperty(name = "currentEventProcessResult", value = "当前调解处理结果")
    private String currentEventProcessResult;
    /**调解是否成果1未成果2已成果*/
    @ApiModelProperty(name = "eventSucceed", value = "调解是否成果1未成果2已成果")
    private Integer eventSucceed;
    /**调解上传图片地址列表,逗号进行分割*/
    @ApiModelProperty(name = "images", value = "调解上传图片地址列表,逗号进行分割")
    private List<ComEventRequestImageVO> images;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventDetailVO.java
New file
@@ -0,0 +1,126 @@
package com.panzhihua.common.model.vos.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import java.util.List;
/**
 * Description 三说会堂事件调解对象
 * ClassName   ComEventResourceVO
 * @author     manailin
 * @date       2022-09-07 11:23:52
 */
@Data
@ApiModel(value = "三说会堂事件调解对象")
public class ComEventDetailVO {
    private static final long serialVersionUID = 1L;
    /**主键*/
    @ApiModelProperty(name = "id", value = "主键")
    private Long id;
    /**服务单号(流水号)按照日期时间+数字*/
    @ApiModelProperty(name = "orderSn", value = "服务单号(流水号)按照日期时间+数字")
    private String orderSn;
    /**调解发起人ID*/
    @ApiModelProperty(name = "requestUserId", value = "调解发起人ID")
    private Long requestUserId;
    /**调解发起人操作事件状态(1草稿箱2发布3逻辑删除4、撤销)*/
    @ApiModelProperty(name = "userEventStatus", value = "调解发起人操作事件状态(1草稿箱2发布3逻辑删除4、撤销)")
    private Integer userEventStatus;
    /**调解发起人诉求事件描述*/
    @ApiModelProperty(name = "requestUserEventDes", value = "调解发起人诉求事件描述")
    private String requestUserEventDes;
    /**调解发起人姓名*/
    @ApiModelProperty(name = "requestUserName", value = "调解发起人姓名")
    private String requestUserName;
    /**调解发起人电话*/
    @ApiModelProperty(name = "requestUserTel", value = "调解发起人电话")
    private String requestUserTel;
    /**调解事件类型*/
    @ApiModelProperty(name = "eventCategory", value = "调解事件类型")
    private Long eventCategory;
    /**调解类型(1、行业分中心调解2、村社区调解3、是街道调解4、区)*/
    @ApiModelProperty(name = "type", value = "调解类型(1、行业分中心调解2、村社区调解3、是街道调解4、区)")
    private String type;
    /**上报提交时间*/
    @ApiModelProperty(name = "submitDate", value = "上报提交时间")
    private Date submitDate;
    /**选择预约调解时间*/
    @ApiModelProperty(name = "appointmentTime", value = "选择预约调解时间")
    private Date appointmentTime;
    /**申请人选择的社区ID*/
    @ApiModelProperty(name = "requestUserCommunity", value = "申请人选择的社区ID")
    private Long requestUserCommunity;
    /**行业分中心ID*/
    @ApiModelProperty(name = "centerId", value = "行业分中心ID")
    private String centerId;
    /**行业分中心调解室电话*/
    @ApiModelProperty(name = "centerTel", value = "行业分中心调解室电话")
    private String centerTel;
    /**调解专家所属单位*/
    @ApiModelProperty(name = "specialistOrg", value = "调解专家所属单位")
    private String specialistOrg;
    /**调解专家级别*/
    @ApiModelProperty(name = "specialistLevel", value = "调解专家级别")
    private String specialistLevel;
    /**选择调解专家ID*/
    @ApiModelProperty(name = "specialistId", value = "选择调解专家ID")
    private Long specialistId;
    /**调解专家名字*/
    @ApiModelProperty(name = "specialistName", value = "调解专家名字")
    private String specialistName;
    /**调解专家联系方式*/
    @ApiModelProperty(name = "specialistTel", value = "调解专家联系方式")
    private String specialistTel;
    /**专家受理时间*/
    @ApiModelProperty(name = "specialistAcceptTime", value = "专家受理时间")
    private Date specialistAcceptTime;
    /**撤销类型 1 用户 2 社区3、街道4、行业分中心*/
    @ApiModelProperty(name = "revokeType", value = "撤销类型 1 用户 2 社区3、街道4、行业分中心")
    private Integer revokeType;
    /**工作人员的事件处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案归档7调解取消*/
    @ApiModelProperty(name = "eventProcessStatus", value = "工作人员的事件处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案归档7调解取消")
    private Integer eventProcessStatus;
    /**当前处理对象类型(1、行业分中心2、社区3、是街道4、区)*/
    @ApiModelProperty(name = "currentProcessType", value = "当前处理对象类型(1、行业分中心2、社区3、是街道4、区)")
    private Integer currentProcessType;
    /**当前处理机构ID*/
    @ApiModelProperty(name = "currentOrgId", value = "当前处理机构ID")
    private String currentOrgId;
    /**当前机构下处理人ID*/
    @ApiModelProperty(name = "currentProcessUserId", value = "当前机构下处理人ID")
    private Long currentProcessUserId;
    /**当前机构下处理人名称*/
    @ApiModelProperty(name = "currentProcessUserName", value = "当前机构下处理人名称")
    private String currentProcessUserName;
    /**当前调解处理结果*/
    @ApiModelProperty(name = "currentEventProcessResult", value = "当前调解处理结果")
    private String currentEventProcessResult;
    /**调解是否成果1未成果2已成果*/
    @ApiModelProperty(name = "eventSucceed", value = "调解是否成果1未成果2已成果")
    private Integer eventSucceed;
    /**撤销描述*/
    @ApiModelProperty(name = "revokeDes", value = "撤销描述")
    private String revokeDes;
    /**事件结果(1、调解失败2、调解成功)*/
    @ApiModelProperty(name = "eventResult", value = "事件结果(1、调解失败2、调解成功)")
    private Integer eventResult;
    /**当前处理人是否上报上级单位处理*/
    @ApiModelProperty(name = "reportSuperior", value = "当前处理人是否上报上级单位处理")
    private Boolean reportSuperior;
    /**归档结案报告*/
    @ApiModelProperty(name = "result", value = "归档结案报告")
    private String result;
    /**已归档处理完毕时间*/
    @ApiModelProperty(name = "resultDate", value = "已归档处理完毕时间")
    private Date resultDate;
    /**创建时间*/
    @ApiModelProperty(name = "createAt", value = "创建时间")
    private Date createAt;
    /**调解上传图片地址列表,逗号进行分割*/
    @ApiModelProperty(name = "images", value = "调解上传图片地址列表,逗号进行分割")
    private List<ComEventRequestImageVO> images;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventPageRequestVO.java
New file
@@ -0,0 +1,52 @@
package com.panzhihua.common.model.vos.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
/**
 * Description 三说会堂事件表
 * ClassName   ComEventPageRequestVO
 * @author     manailin
 * @date       2022-09-07 11:23:51
 */
@Data
@ApiModel(value = "三说会堂事件表分页列表数据")
public class ComEventPageRequestVO {
    /**主键*/
    @ApiModelProperty(name = "id", value = "主键")
    private Long id;
    /**服务单号(流水号)按照日期时间+数字*/
    @ApiModelProperty(name = "orderSn", value = "服务单号(流水号)按照日期时间+数字")
    private String orderSn;
    /**调解发起人ID*/
    @ApiModelProperty(name = "requestUserId", value = "调解发起人ID")
    private Long requestUserId;
    /**调解事件类型*/
    @ApiModelProperty(name = "eventCategory", value = "调解事件类型")
    private Long eventCategory;
    /**调解类型(1、行业分中心调解2、村社区调解3、是街道调解4、区)*/
    @ApiModelProperty(name = "type", value = "调解类型(1、行业分中心调解2、村社区调解3、是街道调解4、区)")
    private String type;
    /**选择调解专家ID*/
    @ApiModelProperty(name = "specialistId", value = "选择调解专家ID")
    private Long specialistId;
    /**工作人员的事件处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案归档7调解取消*/
    @ApiModelProperty(name = "eventProcessStatus", value = "工作人员的事件处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案7已归档8调解取消9已删除")
    private Integer eventProcessStatus;
    /**当前处理对象类型(1、行业分中心2、社区3、是街道4、区)*/
    @ApiModelProperty(name = "currentProcessType", value = "当前处理对象类型(1、行业分中心2、社区3、是街道4、区)")
    private Integer currentProcessType;
    /**当前处理机构ID*/
    @ApiModelProperty(name = "currentOrgId", value = "当前处理机构ID")
    private String currentOrgId;
    /**当前机构下处理人ID*/
    @ApiModelProperty(name = "currentProcessUserId", value = "当前机构下处理人ID")
    private Long currentProcessUserId;
    private Long pageNo;
    private Long pageSize;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventRequestImageVO.java
New file
@@ -0,0 +1,30 @@
package com.panzhihua.common.model.vos.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * Description 三说会堂事件表
 * ClassName   ComEventVO
 *
 * @author manailin
 * @date 2022-09-07 11:23:51
 */
@Data
@ApiModel(value = "三说会堂事件图片对象")
public class ComEventRequestImageVO {
    /**
     * name
     */
    @ApiModelProperty(name = "name", value = "图片name")
    private String name;
    /**
     * 图片大小
     */
    @ApiModelProperty(name = "size", value = "图片大小")
    private String size;
    @ApiModelProperty(name = "url", value = "图片地址")
    private String url;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventResourceVO.java
New file
@@ -0,0 +1,55 @@
package com.panzhihua.common.model.vos.sanshuo;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
/**
 * Description 三说会堂事件关联图片资源表
 * ClassName   ComEventResourceVO
 * @author     manailin
 * @date       2022-09-07 11:23:52
 */
@Data
@ApiModel(value = "三说会堂事件关联图片资源表")
public class ComEventResourceVO{
    private static final long serialVersionUID = 1L;
    /**主键*/
    @ApiModelProperty(name = "id", value = "主键")
    private Long id;
    /**事件关联ID*/
    @ApiModelProperty(name = "refId", value = "事件关联ID")
    private Long refId;
    /**事件流转ID*/
    @ApiModelProperty(name = "transferId", value = "事件流转ID")
    private Long transferId;
    /**1待处理2已受理3专家未受理4调解中5已归档6调解取消*/
    @ApiModelProperty(name = "status", value = "1待处理2已受理3专家未受理4调解中5已归档6调解取消")
    private Integer status;
    /**事件上传的资源类型(1是图片2是音频3是是视频)*/
    @ApiModelProperty(name = "type", value = "事件上传的资源类型(1是图片2是音频3是是视频)")
    private Integer type;
    /**资源名称*/
    @ApiModelProperty(name = "resourceName", value = "资源名称")
    private String resourceName;
    /**资源大小*/
    @ApiModelProperty(name = "resourceSize", value = "资源大小")
    private String resourceSize;
    /**视频或音频时长*/
    @ApiModelProperty(name = "resourceTime", value = "视频或音频时长")
    private Integer resourceTime;
    /**事件上传的资源URL地址*/
    @ApiModelProperty(name = "url", value = "事件上传的资源URL地址")
    private String url;
    /**上传人*/
    @ApiModelProperty(name = "createBy", value = "上传人")
    private Long createBy;
    /**创建时间*/
    @ApiModelProperty(name = "createAt", value = "创建时间")
    private Date createAt;
    /**删除标识(0:未删除,1:已删除)*/
    @ApiModelProperty(name = "deleteFlag", value = "删除标识(0:未删除,1:已删除)")
    private Boolean deleteFlag;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventTransferRecordVO.java
New file
@@ -0,0 +1,94 @@
package com.panzhihua.common.model.vos.sanshuo;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
/**
 * Description 三说会堂事件流转表
 * ClassName   ComEventTransferRecordVO
 * @author     manailin
 * @date       2022-09-07 11:23:52
 */
@Data
@ApiModel(value = "三说会堂事件流转表")
public class ComEventTransferRecordVO{
    private static final long serialVersionUID = 1L;
    /**主键*/
    @ApiModelProperty(name = "id", value = "主键")
    private Long id;
    /**事件ID*/
    @ApiModelProperty(name = "eventId", value = "事件ID")
    private Long eventId;
    /**父级流转事件ID*/
    @ApiModelProperty(name = "parentsTransferEventId", value = "父级流转事件ID")
    private Long parentsTransferEventId;
    /**来源类型(1、行业分中心2、社区3、是街道4、区)*/
    @ApiModelProperty(name = "fromType", value = "来源类型(1、行业分中心2、社区3、是街道4、区)")
    private Integer fromType;
    /**(1、行业分中心2、社区3、是街道4、区)ID*/
    @ApiModelProperty(name = "fromId", value = "(1、行业分中心2、社区3、是街道4、区)ID")
    private Long fromId;
    /**(1、行业分中心2、社区3、是街道4、区)名称*/
    @ApiModelProperty(name = "fromName", value = "(1、行业分中心2、社区3、是街道4、区)名称")
    private String fromName;
    /**来源类型操作人ID*/
    @ApiModelProperty(name = "fromUserId", value = "来源类型操作人ID")
    private Long fromUserId;
    /**转交类型(1、行业分中心2、社区3、是街道4、区)*/
    @ApiModelProperty(name = "toType", value = "转交类型(1、行业分中心2、社区3、是街道4、区)")
    private Integer toType;
    /**接收(1、行业分中心2、社区3、是街道4、区)ID*/
    @ApiModelProperty(name = "toId", value = "接收(1、行业分中心2、社区3、是街道4、区)ID")
    private Long toId;
    /**接收(1、行业分中心2、社区3、是街道4、区)名称*/
    @ApiModelProperty(name = "toName", value = "接收(1、行业分中心2、社区3、是街道4、区)名称")
    private String toName;
    /**接收类型操作人ID(直接指派专家)*/
    @ApiModelProperty(name = "toUserId", value = "接收类型操作人ID(直接指派专家)")
    private Long toUserId;
    /**是否已归档*/
    @ApiModelProperty(name = "save", value = "是否已归档")
    private Boolean save;
    /**处理结果内容*/
    @ApiModelProperty(name = "processResult", value = "处理结果内容")
    private String processResult;
    /**处理结果时间*/
    @ApiModelProperty(name = "processResultData", value = "处理结果时间")
    private String processResultData;
    /**处理时间*/
    @ApiModelProperty(name = "processDate", value = "处理时间")
    private Date processDate;
    /**(1、行业分中心2、社区3、是街道4、区)下的处理人ID*/
    @ApiModelProperty(name = "processBy", value = "(1、行业分中心2、社区3、是街道4、区)下的处理人ID")
    private Long processBy;
    /**(1、行业分中心2、社区3、是街道4、区)下的处理人名称*/
    @ApiModelProperty(name = "processByName", value = "(1、行业分中心2、社区3、是街道4、区)下的处理人名称")
    private String processByName;
    /**业务处理类型 1 自处理 2 上报 3 社区标为无效4 撤销 5 重新发布已撤销事件6 重新发布已标为无效的事件*/
    @ApiModelProperty(name = "processType", value = "业务处理类型 1 自处理 2 上报 3 社区标为无效4 撤销 5 重新发布已撤销事件6 重新发布已标为无效的事件")
    private Integer processType;
    /**创建时间*/
    @ApiModelProperty(name = "createAt", value = "创建时间")
    private Date createAt;
    /**选择调解专家ID*/
    @ApiModelProperty(name = "specialistId", value = "选择调解专家ID")
    private Long specialistId;
    /**调解专家所属单位*/
    @ApiModelProperty(name = "specialistOrg", value = "调解专家所属单位")
    private String specialistOrg;
    /**调解专家级别*/
    @ApiModelProperty(name = "specialistLevel", value = "调解专家级别")
    private String specialistLevel;
    /**调解专家名字*/
    @ApiModelProperty(name = "specialistName", value = "调解专家名字")
    private String specialistName;
    /**调解结果(1、调解失败2、调解成功)*/
    @ApiModelProperty(name = "eventResult", value = "调解结果(1、调解失败2、调解成功)")
    private Integer eventResult;
    /**调解状态(1、调解未完成2、调解完成)*/
    @ApiModelProperty(name = "eventStatus", value = "调解状态(1、调解未完成2、调解完成)")
    private Integer eventStatus;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventVO.java
New file
@@ -0,0 +1,151 @@
package com.panzhihua.common.model.vos.sanshuo;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
/**
 * Description 三说会堂事件表
 * ClassName   ComEventVO
 * @author     manailin
 * @date       2022-09-07 11:23:51
 */
@Data
@ApiModel(value = "三说会堂事件表")
public class ComEventVO{
    private static final long serialVersionUID = 1L;
    /**主键*/
    @ApiModelProperty(name = "id", value = "主键")
    private Long id;
    /**服务单号(流水号)按照日期时间+数字*/
    @ApiModelProperty(name = "orderSn", value = "服务单号(流水号)按照日期时间+数字")
    private String orderSn;
    /**调解发起人ID*/
    @ApiModelProperty(name = "requestUserId", value = "调解发起人ID")
    private Long requestUserId;
    /**调解发起人操作事件状态(1草稿箱2发布3逻辑删除4、撤销)*/
    @ApiModelProperty(name = "userEventStatus", value = "调解发起人操作事件状态(1草稿箱2发布3逻辑删除4、撤销)")
    private Integer userEventStatus;
    /**调解发起人诉求事件描述*/
    @ApiModelProperty(name = "requestUserEventDes", value = "调解发起人诉求事件描述")
    private String requestUserEventDes;
    /**调解发起人姓名*/
    @ApiModelProperty(name = "requestUserName", value = "调解发起人姓名")
    private String requestUserName;
    /**调解发起人电话*/
    @ApiModelProperty(name = "requestUserTel", value = "调解发起人电话")
    private String requestUserTel;
    /**调解事件类型*/
    @ApiModelProperty(name = "eventCategory", value = "调解事件类型")
    private Long eventCategory;
    /**调解类型(1、行业分中心调解2、村社区调解3、是街道调解4、区)*/
    @ApiModelProperty(name = "type", value = "调解类型(1、行业分中心调解2、村社区调解3、是街道调解4、区)")
    private String type;
    /**上报提交时间*/
    @ApiModelProperty(name = "submitDate", value = "上报提交时间")
    private Date submitDate;
    /**选择预约调解时间*/
    @ApiModelProperty(name = "appointmentTime", value = "选择预约调解时间")
    private Date appointmentTime;
    /**申请人选择的社区ID*/
    @ApiModelProperty(name = "requestUserCommunity", value = "申请人选择的社区ID")
    private Long requestUserCommunity;
    /**行业分中心ID*/
    @ApiModelProperty(name = "centerId", value = "行业分中心ID")
    private String centerId;
    /**行业分中心调解室电话*/
    @ApiModelProperty(name = "centerTel", value = "行业分中心调解室电话")
    private String centerTel;
    /**调解专家所属单位*/
    @ApiModelProperty(name = "specialistOrg", value = "调解专家所属单位")
    private String specialistOrg;
    /**调解专家级别*/
    @ApiModelProperty(name = "specialistLevel", value = "调解专家级别")
    private String specialistLevel;
    /**选择调解专家ID*/
    @ApiModelProperty(name = "specialistId", value = "选择调解专家ID")
    private Long specialistId;
    /**调解专家名字*/
    @ApiModelProperty(name = "specialistName", value = "调解专家名字")
    private String specialistName;
    /**调解专家联系方式*/
    @ApiModelProperty(name = "specialistTel", value = "调解专家联系方式")
    private String specialistTel;
    /**专家受理时间*/
    @ApiModelProperty(name = "specialistAcceptTime", value = "专家受理时间")
    private Date specialistAcceptTime;
    /**撤销类型 1 用户 2 社区3、街道4、行业分中心*/
    @ApiModelProperty(name = "revokeType", value = "撤销类型 1 用户 2 社区3、街道4、行业分中心")
    private Integer revokeType;
    /**工作人员的事件处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案归档7调解取消*/
    @ApiModelProperty(name = "eventProcessStatus", value = "工作人员的事件处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案7已归档8调解取消9已删除")
    private Integer eventProcessStatus;
    /**当前处理对象类型(1、行业分中心2、社区3、是街道4、区)*/
    @ApiModelProperty(name = "currentProcessType", value = "当前处理对象类型(1、行业分中心2、社区3、是街道4、区)")
    private Integer currentProcessType;
    /**当前处理机构ID*/
    @ApiModelProperty(name = "currentOrgId", value = "当前处理机构ID")
    private String currentOrgId;
    /**当前机构下处理人ID*/
    @ApiModelProperty(name = "currentProcessUserId", value = "当前机构下处理人ID")
    private Long currentProcessUserId;
    /**当前机构下处理人名称*/
    @ApiModelProperty(name = "currentProcessUserName", value = "当前机构下处理人名称")
    private String currentProcessUserName;
    /**当前调解处理结果*/
    @ApiModelProperty(name = "currentEventProcessResult", value = "当前调解处理结果")
    private String currentEventProcessResult;
    /**调解是否成果1未成果2已成果*/
    @ApiModelProperty(name = "eventSucceed", value = "调解是否成果1未成果2已成果")
    private Integer eventSucceed;
    /**撤销描述*/
    @ApiModelProperty(name = "revokeDes", value = "撤销描述")
    private String revokeDes;
    /**事件结果(1、调解失败2、调解成功)*/
    @ApiModelProperty(name = "eventResult", value = "事件结果(1、调解失败2、调解成功)")
    private Integer eventResult;
    /**当前处理人是否上报上级单位处理*/
    @ApiModelProperty(name = "reportSuperior", value = "当前处理人是否上报上级单位处理")
    private Boolean reportSuperior;
    /**归档结案报告*/
    @ApiModelProperty(name = "result", value = "归档结案报告")
    private String result;
    /**已归档处理完毕时间*/
    @ApiModelProperty(name = "resultDate", value = "已归档处理完毕时间")
    private Date resultDate;
    /**是否紧急*/
    @ApiModelProperty(name = "urgent", value = "是否紧急")
    private Boolean urgent;
    /**是否疑难事件*/
    @ApiModelProperty(name = "difficult", value = "是否疑难事件")
    private Boolean difficult;
    /**是否催办*/
    @ApiModelProperty(name = "urgentDell", value = "是否催办")
    private Boolean urgentDell;
    /**是否有效*/
    @ApiModelProperty(name = "invalid", value = "是否有效")
    private Boolean invalid;
    /**是否重大*/
    @ApiModelProperty(name = "major", value = "是否重大")
    private Boolean major;
    /**解决人针对解决事件的处理反馈描述*/
    @ApiModelProperty(name = "requestUserResponse", value = "解决人针对解决事件的处理反馈描述")
    private String requestUserResponse;
    /**创建人*/
    @ApiModelProperty(name = "createBy", value = "创建人")
    private Long createBy;
    /**创建时间*/
    @ApiModelProperty(name = "createAt", value = "创建时间")
    private Date createAt;
    /**修改人*/
    @ApiModelProperty(name = "updateBy", value = "修改人")
    private Long updateBy;
    /**修改时间*/
    @ApiModelProperty(name = "updateAt", value = "修改时间")
    private Date updateAt;
    private Long pageNo;
    private Long pageSize;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComMediaTypeVO.java
New file
@@ -0,0 +1,97 @@
package com.panzhihua.common.model.vos.sanshuo;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
@ApiModel("创建事件类型")
public class ComMediaTypeVO {
    /**
     * 主键
     */
    @ApiModelProperty("id,修改时传")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 类型名称
     */
    @ApiModelProperty("类型名称")
    private String name;
    /**
     * code码
     */
    @ApiModelProperty("code码")
    private String key;
    /**
     * 父id((根节点为0))
     */
    @ApiModelProperty("父id((根节点为0))")
    private Long parentId;
    /**
     * 路径(格式 : `pid1`pid2`id` )
     */
    @ApiModelProperty("路径(格式 : `pid1`pid2`id` )")
    private String pathId;
    /**
     * 所在层级
     */
    @ApiModelProperty("所在层级")
    private Integer levelIndex;
    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Integer sort;
    /**
     * 启用状态(0:停用,1:启用)
     */
    @ApiModelProperty("启用状态(0:停用,1:启用)")
    private Boolean enabled;
    /**
     * 备注说明
     */
    @ApiModelProperty("备注说明")
    private String remarks;
    /**
     * 创建者
     */
    @ApiModelProperty("创建者")
    private Long createUser;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createDate;
    /**
     * 修改者
     */
    @ApiModelProperty("修改者")
    private Long modifyUser;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date modifyDate;
    /**
     * 删除标识(0:未删除,1:已删除)
     */
    @ApiModelProperty("0:未删除,1:已删除")
    private Boolean deleteFlag;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanRequestVO.java
New file
@@ -0,0 +1,46 @@
package com.panzhihua.common.model.vos.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import java.util.List;
/**
 * Description 三说会堂事件表
 * ClassName   ComEventRequestVO
 * @author     manailin
 * @date       2022-09-07 11:23:51
 */
@Data
@ApiModel(value = "新增三说会堂事件表")
public class ComSanRequestVO {
    /**调解发起人诉求事件描述*/
    @ApiModelProperty(name = "requestUserEventDes", value = "调解发起人诉求事件描述")
    @Length(max = 500)
    private String requestUserEventDes;
    /**调解事件类型*/
    @ApiModelProperty(name = "eventCategory", value = "调解事件类型")
    private Long eventCategory;
    /**调解类型(1、行业分中心调解2、村社区调解3、是街道调解4、区)*/
    @ApiModelProperty(name = "type", value = "调解类型(1、行业分中心调解2、村社区调解3、是街道调解4、区)")
    private String type;
    /**选择预约调解时间*/
    @ApiModelProperty(name = "appointmentTime", value = "选择预约调解时间")
    private Date appointmentTime;
    /**申请人选择的社区ID*/
    @ApiModelProperty(name = "requestUserCommunity", value = "申请人选择的社区ID")
    private Long requestUserCommunity;
    /**行业分中心ID*/
    @ApiModelProperty(name = "centerId", value = "行业分中心ID")
    private String centerId;
    /**选择调解专家ID*/
    @ApiModelProperty(name = "specialistId", value = "选择调解专家ID")
    private Long specialistId;
    /**调解上传图片地址列表,逗号进行分割*/
    @ApiModelProperty(name = "images", value = "调解上传图片地址列表,逗号进行分割")
    private List<ComEventRequestImageVO> images;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanShuoEventVO.java
New file
@@ -0,0 +1,56 @@
package com.panzhihua.common.model.vos.sanshuo;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
@Data
@ApiModel("事件类型")
public class ComSanShuoEventVO {
    /**
     * id
     */
    @ApiModelProperty("id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer id;
    /**
     * 事件类型名称
     */
    @ApiModelProperty("事件类型名称")
    private String name;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date updateTime;
    /**
     * 0禁用1启用
     */
    @ApiModelProperty("0禁用1启用")
    private Integer status;
    /**
     * 0删除1正常
     */
    @ApiModelProperty("0删除1正常")
    private Integer delFlag;
    @ApiModelProperty("调解成功次数")
    private Integer success;
    @ApiModelProperty("调解成功率")
    private BigDecimal rate;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanShuoIndustryCenterVO.java
New file
@@ -0,0 +1,80 @@
package com.panzhihua.common.model.vos.sanshuo;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
@ApiModel("业务中心")
public class ComSanShuoIndustryCenterVO {
    /**
     * id
     */
    @ApiModelProperty("id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer id;
    /**
     * 行业分中心名称
     */
    @ApiModelProperty("行业分中心名称")
    private String name;
    /**
     * 调解室电话
     */
    @ApiModelProperty("调解室电话")
    private String phone;
    /**
     * 登录账号
     */
    @ApiModelProperty("登录账号")
    private String account;
    /**
     * 创建人
     */
    @ApiModelProperty("创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date updateTime;
    /**
     * 状态0禁用1启用
     */
    @ApiModelProperty("状态0禁用1启用")
    private Integer status;
    /**
     * 0删除1正常
     */
    @ApiModelProperty("0删除1正常")
    private Integer delFlag;
    /**
     * 所属街道id
     */
    @ApiModelProperty("所属街道id")
    private Long streetId;
    /**
     * 所属社区id
     */
    @ApiModelProperty("所属社区id")
    private Long communityId;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanshuoExpertVO.java
New file
@@ -0,0 +1,145 @@
package com.panzhihua.common.model.vos.sanshuo;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
@Data
@ApiModel("专家列表返回列")
public class ComSanshuoExpertVO {
    /**
     * id
     */
    @ApiModelProperty("id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 专家级别(1三说会堂2行业分中心3街道4社区)
     */
    @ApiModelProperty("专家级别(1三说会堂2行业分中心3街道4社区)")
    private Integer level;
    /**
     * 所属社区id
     */
    @ApiModelProperty("所属社区id")
    private Long communityId;
    /**
     * 工作时间
     */
    @ApiModelProperty("工作时间")
    private String workTime;
    /**
     * 擅长解决时间类型
     */
    @ApiModelProperty("擅长解决时间类型,多类型已,隔开")
    private String goodAt;
    /**
     * 姓名
     */
    @ApiModelProperty("姓名")
    private String name;
    /**
     * 头像
     */
    @ApiModelProperty("头像")
    private String avatar;
    /**
     * 手机号
     */
    @ApiModelProperty("手机号")
    private String phone;
    /**
     * 登陆账号
     */
    @ApiModelProperty("登陆账号")
    private String account;
    /**
     * 登陆密码
     */
    @ApiModelProperty("登陆密码")
    private String password;
    /**
     * 0禁用1启用
     */
    @ApiModelProperty("0禁用1启用默认1")
    private Integer status;
    /**
     * 删除状态0已删除1正常
     */
    @ApiModelProperty("删除状态0已删除1正常默认1")
    private Integer delFlag;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;
    /**
     * 创建人
     */
    @ApiModelProperty("创建人")
    private String createBy;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date updateTime;
    /**
     * 介绍信息
     */
    @ApiModelProperty("介绍信息")
    private String introduction;
    /**
     * 所属街道id
     */
    @ApiModelProperty("所属街道id")
    private Long streetId;
    /**
     * 行业分中心id
     */
    @ApiModelProperty("行业分中心id")
    private String industryCenterId;
    /**
     * 备用字段1
     */
    private String param1;
    /**
     * 所属单位
     */
    @ApiModelProperty("所属单位")
    private String unit;
    @ApiModelProperty("办结事项")
    private String solveEvents;
    @ApiModelProperty("调解次数")
    private Integer count;
    @ApiModelProperty("调解成功率")
    private BigDecimal rate;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/EventRateVO.java
New file
@@ -0,0 +1,19 @@
package com.panzhihua.common.model.vos.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
@Data
@ApiModel("事件级别占比统计")
public class EventRateVO {
    @ApiModelProperty("级别")
    private String name;
    @ApiModelProperty("占比")
    private BigDecimal rate;
    @ApiModelProperty("数量")
    private Integer count;
    private Integer type;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ExpertRangeVO.java
New file
@@ -0,0 +1,25 @@
package com.panzhihua.common.model.vos.sanshuo;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.poi.ss.formula.functions.T;
import java.util.List;
import java.util.Map;
@Data
@ApiModel("当前账号可选择添加专家范围")
public class ExpertRangeVO {
    @ApiModelProperty("级别")
    private Integer level;
    @ApiModelProperty("单位id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @ApiModelProperty("单位名称")
    private String name;
    @ApiModelProperty("单位列表")
    private List<ExpertRangeVO>  childList;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ExpertShowVO.java
New file
@@ -0,0 +1,27 @@
package com.panzhihua.common.model.vos.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
@Data
@ApiModel("专家风采列表")
public class ExpertShowVO {
    @ApiModelProperty("级别1三说会堂2行业分中心3街道4社区")
    private Integer level;
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("专家数量")
    private Integer count;
    @ApiModelProperty("对应的行业分中心或街道/社区id")
    private Long id;
    @ApiModelProperty("子列表")
    List<ExpertShowVO> childList;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/IndexDateVO.java
New file
@@ -0,0 +1,39 @@
package com.panzhihua.common.model.vos.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;
@Data
@ApiModel("大屏事件数据统计(三说会堂,行业分中心,街道,社区)")
public class IndexDateVO {
    @ApiModelProperty("受理案件")
    private Integer accept;
    @ApiModelProperty("正在调解")
    private Integer accepting;
    @ApiModelProperty("已完成调解")
    private Integer accepted;
    @ApiModelProperty("经验累计")
    private Integer total;
    @ApiModelProperty("调解专家")
    private Integer expert;
    @ApiModelProperty("调解成功")
    private Integer success;
    @ApiModelProperty("调解失败")
    private Integer fail;
    @ApiModelProperty("成功率")
    private BigDecimal successRate;
    @ApiModelProperty("本月新增")
    private Integer monthIncrease;
    @ApiModelProperty("本月办结")
    private Integer monthFinish;
    @ApiModelProperty("X轴")
    private List<String> X;
    @ApiModelProperty("Y轴:新增案件")
    private List<Integer> Y1;
    @ApiModelProperty("Y轴:办结案件")
    private List<Integer> Y2;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/MediateTypeVO.java
New file
@@ -0,0 +1,18 @@
package com.panzhihua.common.model.vos.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
@Data
@ApiModel("事件类型统计")
public class MediateTypeVO {
    @ApiModelProperty("事件类型")
    private String name;
    @ApiModelProperty("数量")
    private Integer count;
    @ApiModelProperty("占比")
    private BigDecimal rate;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunitySanShuoService.java
New file
@@ -0,0 +1,185 @@
package com.panzhihua.common.service.community;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.sanshuo.ComEventArchiveVO;
import com.panzhihua.common.model.vos.sanshuo.ComEventConciliationVO;
import com.panzhihua.common.model.vos.sanshuo.ComEventVO;
import com.panzhihua.common.model.vos.sanshuo.ComSanRequestVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.HashMap;
import java.util.List;
@FeignClient(name = "huacheng-community", contextId = "CommunitySanShuoService", path = "/sanshuo/comEvent")
public interface CommunitySanShuoService {
    /**
     * description 新增三说会堂事件表
     *
     * @param comEventVO 对象
     * @return R  新增结果对象
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @PostMapping("/add")
    R insertComEvent(@RequestBody ComSanRequestVO comEventVO);
    /**
     * description 更新三说会堂事件表
     *
     * @param comEventVO 对象
     * @return R  修改结果对象
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @PostMapping("/update")
    R updateComEvent(@RequestBody ComEventVO comEventVO);
    /**
     * description 根据ID获取三说会堂事件表信息
     *
     * @param id 主键id
     * @return R<ComEvent> comEvent 对象
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @GetMapping("/get/{id}")
    R<ComEventVO> get(@PathVariable(value = "id") String id);
    /**
     * description 根据ID获取三说会堂事件表信息
     *
     * @param id 主键id
     * @return R<ComEvent> comEvent 对象
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @GetMapping("/detail/{id}")
    R<HashMap> detail(@PathVariable(value = "id") String id);
    /**
     * description 查询返回列表数据
     *
     * @param comEventVO 三说会堂事件表对象
     * @return R<List < ComEventVO>>  comEventVO对象列表
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @PostMapping("/list")
    R<List<ComEventVO>> listByComEvent(@RequestBody ComEventVO comEventVO);
    /**
     * description page   三说会堂事件表分页列表数据
     * params   [pageNo, pageSize]
     *
     * @param comEventVO 对象
     * @param pageNo     当前页码
     * @param pageSize   每页显示数量
     * @return PageResult<List < ComEvent>>  三说会堂事件表分页列表数据
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @PostMapping("/page")
    R page(@RequestBody ComEventVO comEventVO, @RequestParam("pageNo") Long pageNo, @RequestParam("pageSize") Long pageSize);
    /**
     * description 根据ID删除三说会堂事件表
     *
     * @param id 主键id
     * @return R 删除结果
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @DeleteMapping("/remove/{id}")
    R remove(@PathVariable(value = "id") Long id);
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @PutMapping("/updateEnabled")
    R updateEnabled(@RequestParam("id") Long id, @RequestParam("enabled") Boolean enabled);
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @PutMapping("/cancelRequest")
    R cancelRequest(@RequestParam("id") Long id);
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @PutMapping("/accept/Request")
    R acceptRequest(@RequestParam("id") Long id, @RequestParam("specterId") Long specterId);
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @PutMapping("/reject/Request")
    R rejectRequest(@RequestParam("id") Long id);
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @PutMapping("/reappoint/Request")
    R reappoint(@RequestParam("id") Long id, @RequestParam("specialistId") Long specialistId);
    /**
     * description 专家调解处理
     *
     * @param comEventConciliationVO 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @PutMapping("/conciliation/Request")
    R conciliationRequest(@RequestBody ComEventConciliationVO comEventConciliationVO);
    /**
     * description 专家归档
     *
     * @param comEventArchiveVO 归档对象
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @PutMapping("/archive/Request")
    R archiveRequest(@RequestBody ComEventArchiveVO comEventArchiveVO);
    /**
     * description 事件各种状态(处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案归档7调解取消8 已删除)数据统计
     *
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @GetMapping("/status/calculate")
    R calculate();
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
@@ -13,6 +13,7 @@
import com.panzhihua.common.model.dtos.community.dpc.PageDpcDTO;
import com.panzhihua.common.model.dtos.community.enterprise.*;
import com.panzhihua.common.model.dtos.community.reserve.*;
import com.panzhihua.common.model.dtos.community.sanshuo.*;
import com.panzhihua.common.model.dtos.community.warehouse.ComActWarehouseApplyDTO;
import com.panzhihua.common.model.dtos.community.GetIdentityEidTokenDTO;
import com.panzhihua.common.model.dtos.community.cluster.PageClusterMemberDto;
@@ -35,6 +36,7 @@
import com.panzhihua.common.model.vos.community.raffle.ComActRaffleRecordVO;
import com.panzhihua.common.model.vos.community.raffle.ComActRaffleVO;
import com.panzhihua.common.model.vos.community.reserve.ComActReserveDangerAreaVO;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.DeleteMapping;
@@ -10346,4 +10348,183 @@
     */
    @PostMapping("/comActAcidRecord/batchCheck")
    R batchCheck(@RequestBody BatchCheckAcidRecordDTO batchCheckAcidRecordDTO);
    /**
     * 小程序获取可用的行业中心列表
     * @return
     * */
    @GetMapping("/sanshuo/industryCenter/appletsList")
    R    industryCenterAppList();
    /**
     * 后台获取行业中心列表
     * */
    @GetMapping("/sanshuo/industryCenter/list")
    R backIndustrytList(@RequestParam(value = "keyWord",required = false)String keyWord,
                       @RequestParam(value = "page",required = false)Integer page,
                       @RequestParam(value = "size",required = false)Integer size);
    /**
     * 添加业务中心
     * */
    @PostMapping("/sanshuo/industryCenter")
    R addIndustry(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO);
    /**
     * 修改业务中心
     * */
    @PutMapping("/sanshuo/industryCenter")
    R updateIndustry(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO);
    /**
     * 删除业务中心
     * */
    @DeleteMapping("/sanshuo/industryCenter/remove")
    R removeIndustry(@RequestParam("id") Long id);
    /**
     * 重置业务中心密码
     * */
    @PostMapping("/sanshuo/industryCenter/resetPass")
    R resetIndustryPassword(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO);
    /**
     * 业务中心详情
     * */
    @GetMapping("/sanshuo/industryCenter/detail")
    R industryCenterDetail(@RequestParam("id") Long id);
    /**
     * 后台获取专家列表
     * */
    @GetMapping("/sanshuo/expert/backstageList")
    R backExpertList(@RequestParam(value = "keyWord",required = false)@ApiParam("搜索关键字") String keyWord,
                     @RequestParam(value = "page",required = false)Integer page,
                     @RequestParam(value = "size",required = false)Integer size);
    /**
     * 添加专家
     * */
    @PostMapping("/sanshuo/expert")
    R addExpert(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO);
    /**
     * 修改专家
     * */
    @PutMapping("/sanshuo/expert")
    R updateExpert(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO);
    /**
     * 删除专家
     * */
    @DeleteMapping("/sanshuo/expert/remove")
    R removeExpert(@RequestParam("id")Long id);
    /**
     * 重置专家登陆密码
     * */
    @PostMapping("/sanshuo/expert/resetPassword")
    R resetExpertPassword(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO);
    /**
     * 小程序获取可选择专家列表
     * */
    @GetMapping("/sanshuo/expert/appletsList")
    R expertAppList();
    /**
     * 获取专家详情
     * */
    @GetMapping("/sanshuo/expert/detail")
    R expertDetail(@RequestParam("id") Long id);
    /**
     * 后台事件列表
     * */
    @GetMapping("/sanshuo/event/list")
    R backEventList(@RequestParam(value = "keyWord",required = false)String keyWord,
                    @RequestParam(value = "page",required = false)Integer page,
                    @RequestParam(value = "size",required = false)Integer size);
    /**
     * 事件详情
     * */
    @GetMapping("/sanshuo/event/detail")
    R eventDetail(@RequestParam(value = "id",required = false)Long id);
    /**
     * 小程序获取事件列表
     * */
    @GetMapping("/sanshuo/event/appletsList")
    R eventAppList();
    /**
     * 新增事件类型
     * */
    @PostMapping("/sanshuo/event")
    R addEvent(@RequestBody ComMediateTypeDTO comSanshuoEventDTO);
    /**
     * 新增事件类型
     * */
    @PutMapping("/sanshuo/event")
    R updateEvent(@RequestBody ComMediateTypeDTO comSanshuoEventDTO);
    /**
     * 删除事件类型
     * */
    @DeleteMapping("/sanshuo/event/remove")
    R removeEvent(@RequestParam(value = "id",required = false)Long id);
    /**
     * 专家风采
     * */
    @GetMapping("/sanshuo/expert/expertShow")
    R expertShow();
    @GetMapping("/sanshuo/expert/expertRange")
    R expertRange();
    /**
     * 大屏事件统计
     * */
    @PostMapping("/sanshuo/comEvent/indexData")
    R sanshuoIndexDate(IndexDateDTO indexDateDTO);
    /**
     * 事件占比统计饼图
     * */
    @GetMapping("sanshuo/comEvent/indexData/event")
    R eventIndexData(@RequestParam("type") Integer type);
    /**
     * 专家风采列表
     * */
    @GetMapping("/sanshuo/expert/expertShowList")
    R expertShowList(@RequestParam(value = "level",required = false)Integer level,@RequestParam(value = "id",required = false)Long id);
    /**
     * 修改街道信息
     * */
    @PostMapping("/updateStreet")
    R updateStreet(@RequestBody ComStreetVO comStreetVO);
    /**
     * 删除街道
     * */
    @GetMapping("/removeStreet")
    R removeStreet(@RequestParam(value = "id",required = false)Long id);
    /***
     * 删除社区
     * */
    @GetMapping("/removeCommunity")
    R removeCommunity(@RequestParam(value = "id",required = false)Long id);
    @PostMapping("/repassCommunity")
    R repassCommunity(@RequestBody ComActVO comActVO);
    @PostMapping("/repassStreet")
    R repassStreet(@RequestBody ComStreetVO comActVO);
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/user/UserService.java
@@ -1275,6 +1275,18 @@
    @PostMapping("/tfLogin")
    R tfLogin(@RequestBody UuLoginVO uuLoginVO);
    /**
     * 三说会堂添加后台账户
     * */
    @PostMapping("/sanshuoAddUser")
    R sanShuoAddUser(@RequestBody AdministratorsUserVO administratorsUserVO);
    /**
     * 三说会堂重置密码
     * */
    @GetMapping("/sanshuoResetPassword")
    R sanShuoResetPassword(@RequestParam("account") String account,@RequestParam("pass")String password);
    @GetMapping("/accept")
     R accept(@RequestParam("userId")Long userId);
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComSanShuoApi.java
New file
@@ -0,0 +1,160 @@
package com.panzhihua.community_backstage.api;
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.dtos.community.sanshuo.*;
import com.panzhihua.common.model.vos.IndexDataVO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.sanshuo.*;
import com.panzhihua.common.service.community.CommunityService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import jdk.nashorn.internal.objects.annotations.Getter;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@RestController
@RequestMapping("sanshuo")
@Api(tags = "三说会堂后台接口")
public class ComSanShuoApi extends BaseController {
    @Resource
    private CommunityService communityService;
    @ApiOperation(value = "后台获取专家列表",response = ComSanshuoExpertVO.class)
    @GetMapping("/expert/backList")
    public R expertBackList(@RequestParam(value = "keyWord",required = false)@ApiParam("搜索关键字") String keyWord,
                            @RequestParam(value = "page",required = false)Integer page,
                            @RequestParam(value = "size",required = false)Integer size){
        return communityService.backExpertList(keyWord, page, size);
    }
    @PostMapping("/expert")
    @ApiOperation("添加专家")
    public R addExpert(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO){
        return communityService.addExpert(comSanshuoExpertDTO);
    }
    @PutMapping("/expert")
    @ApiOperation("添加专家")
    public R updateExpert(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO){
        return communityService.updateExpert(comSanshuoExpertDTO);
    }
    @ApiOperation("重置专家登陆密码")
    @PostMapping("/expert/resetPassword")
    public R resetExpertPassword(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO){
        return communityService.resetExpertPassword(comSanshuoExpertDTO);
    }
    @ApiOperation("专家详情")
    @GetMapping("/expert/{id}")
    public R expertDetail(@PathVariable("id") Long id){
        return communityService.expertDetail(id);
    }
    @ApiOperation("删除专家")
    @GetMapping("/expert/remove/{id}")
    public R removeExpert(@PathVariable("id") Long id){
        return communityService.removeExpert(id);
    }
    @ApiOperation(value = "后台获取业务中心列表",response = ComSanShuoIndustryCenterVO.class)
    @GetMapping("/industryCenter/backList")
    public R industryCenterBackList(@RequestParam(value = "keyWord",required = false)String keyWord,
                                    @RequestParam(value = "page",required = false)Integer page,
                                    @RequestParam(value = "size",required = false)Integer size){
        return communityService.backIndustrytList(keyWord, page, size);
    }
    @ApiOperation("添加业务中心")
    @PostMapping("/industryCenter")
    public R addIndustry(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO){
        return communityService.addIndustry(comSanShuoIndustryCenterDTO);
    }
    @ApiOperation("修改业务中心")
    @PutMapping("/industryCenter")
    public R updateIndustryCenter(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO){
        return communityService.updateIndustry(comSanShuoIndustryCenterDTO);
    }
    @ApiOperation("删除业务中心")
    @GetMapping("/industryCenter/remove/{id}")
    public R removeIndustry(@PathVariable("id") Long id){
        return communityService.removeIndustry(id);
    }
    @ApiOperation("业务中心详情")
    @GetMapping("/industryCenter/{id}")
    public R industryDetail(@PathVariable("id") Long id){
        return communityService.industryCenterDetail(id);
    }
    @ApiOperation("重置业务中心密码")
    @PostMapping("/industryCenter/resetPassword")
    public R resetIndustryPassword(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO){
        return communityService.resetIndustryPassword(comSanShuoIndustryCenterDTO);
    }
    @ApiOperation("后台事件类型列表")
    @GetMapping("/event/backList")
    public R eventBackList(@RequestParam(value = "keyWord",required = false)String keyWord,
                           @RequestParam(value = "page",required = false)Integer page,
                           @RequestParam(value = "size",required = false)Integer size){
        return communityService.backEventList(keyWord, page, size);
    }
    @ApiOperation("添加事件类型")
    @PostMapping("/event")
    public R addEvent(@RequestBody ComMediateTypeDTO comSanshuoEventDTO){
        return communityService.addEvent(comSanshuoEventDTO);
    }
    @ApiOperation("修改事件类型")
    @PutMapping("/event")
    public R updateEvent(@RequestBody ComMediateTypeDTO comSanshuoEventDTO){
        return communityService.updateEvent(comSanshuoEventDTO);
    }
    @ApiOperation("删除事件类型")
    @DeleteMapping("/event/{id}")
    public R removeEvent(@PathVariable("id") Long id){
        return communityService.removeEvent(id);
    }
    @ApiOperation("小程序获取可用专家列表")
    @GetMapping("/event/appletsList")
    public R eventAppletsList(){
        return communityService.eventAppList();
    }
    @ApiOperation("小程序获取可用业务中心列表")
    @GetMapping("/industryCenter/appletsList")
    public R industryAppletsList(){
        return communityService.industryCenterAppList();
    }
    @ApiOperation(value = "专家风采",response = ExpertShowVO.class)
    @GetMapping("/expert/expertShow")
    public R experShow(){
        return communityService.expertShow();
    }
    @GetMapping("/sanshuo/expertRange")
    @ApiOperation(value = "当前账号可添加专家范围",response = ExpertRangeVO.class)
    public R expertRange(){
        return communityService.expertRange();
    }
    @PostMapping("/indexData")
    @ApiOperation(value = "大屏各级别事件统计",response = IndexDateVO.class)
    public R indexData(@RequestBody IndexDateDTO indexDateDTO){
        return communityService.sanshuoIndexDate(indexDateDTO);
    }
    @GetMapping("/indexData/event")
    @ApiOperation(value = "事件统计饼图",response = EventRateVO.class)
    public R eventIndexData(@RequestParam("type") @ApiParam("1受理级别2专家级别3时间类型分类") Integer type){
        return communityService.eventIndexData(type);
    }
}
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComSanShuoEventController.java
New file
@@ -0,0 +1,249 @@
package com.panzhihua.community_backstage.api;
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.dtos.community.sanshuo.IndexDateDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.sanshuo.ComEventArchiveVO;
import com.panzhihua.common.model.vos.sanshuo.ComEventConciliationVO;
import com.panzhihua.common.model.vos.sanshuo.ComEventPageRequestVO;
import com.panzhihua.common.model.vos.sanshuo.ComEventVO;
import com.panzhihua.common.service.community.CommunitySanShuoService;
import com.panzhihua.common.utlis.CopyUtil;
import com.panzhihua.common.utlis.StringUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.HashMap;
import java.util.List;
/**
 * ClassName   ComEventController
 * Description 三说会堂事件表控制层
 *
 * @author manailin
 * @date 2022-09-07 11:23:51
 */
@Slf4j
@Api(tags = {"三说会堂事件表控制层"})
@RestController
@RequestMapping("/sanshuo/comEvent")
public class ComSanShuoEventController extends BaseController {
    @Resource
    private CommunitySanShuoService comEventService;
    /**
     * description 更新三说会堂事件表
     *
     * @param comEventVO 对象
     * @return R  修改结果对象
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("更新三说会堂事件表")
    @PostMapping("/update")
    public R updateComEvent(@RequestBody @Valid ComEventVO comEventVO, @ApiIgnore BindingResult results) {
        if (results.hasErrors()) {
            return R.fail(results.getFieldError().getDefaultMessage());
        }
        return comEventService.updateComEvent(comEventVO);
    }
    /**
     * description 根据ID获取三说会堂事件表信息
     *
     * @param id 主键id
     * @return R<ComEvent> comEvent 对象
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("根据ID获取三说会堂事件详情信息,返回事件信息和图片信息")
    @GetMapping("/detail/{id}")
    public R<HashMap> detail(@PathVariable(value = "id") String id) {
        if (StringUtils.isEmpty(id)) {
            throw new RuntimeException("参数不能为空");
        }
        return comEventService.detail(id);
    }
    /**
     * description page   三说会堂事件表分页列表数据
     * params   [pageNo, pageSize]
     *
     * @param comEventPageRequestVO 对象
     * @return PageResult<List < ComEvent>>  三说会堂事件表分页列表数据
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation(value = "三说会堂事件表分页列表数据", notes = "三说会堂事件表分页列表数据")
    @PostMapping("/page")
    public R<List<ComEventVO>> page(@RequestBody ComEventPageRequestVO comEventPageRequestVO) {
        ComEventVO comEventVO = CopyUtil.copyProperties(comEventPageRequestVO, ComEventVO.class);
        return comEventService.page(comEventVO, comEventVO.getPageNo(), comEventVO.getPageSize());
    }
    /**
     * description 根据ID删除三说会堂事件表
     *
     * @param id 主键id
     * @return R 删除结果
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("删除三说会堂事件")
    @ApiImplicitParams(
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long")
    )
    @DeleteMapping("/remove/{id}")
    public R remove(@PathVariable Long id) {
        return comEventService.remove(id);
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("修改是否有效状态")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
            @ApiImplicitParam(name = "enabled", value = "是否启用", required = true, dataType = "Boolean")
    })
    @PutMapping("/updateEnabled")
    public R updateEnabled(@RequestParam("id") Long id, @RequestParam("enabled") Boolean enabled) {
        return comEventService.updateEnabled(id, enabled);
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("取消申请")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
    })
    @PutMapping("/cancelRequest")
    public R cancelRequest(@RequestParam("id") Long id) {
        return comEventService.cancelRequest(id);
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("专家受理")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "事件ID", required = true, dataType = "Long"),
            @ApiImplicitParam(name = "specterId", value = "专家ID", required = true, dataType = "Long"),
    })
    @PutMapping("/accept/Request")
    public R acceptRequest(@RequestParam("id") Long id, Long specterId) {
        return comEventService.acceptRequest(id, specterId);
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("专家不受理,转其他专家处理")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
    })
    @PutMapping("/reject/Request")
    public R rejectRequest(@RequestParam("id") Long id) {
        return comEventService.rejectRequest(id);
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("重新指定专家处理")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
            @ApiImplicitParam(name = "specialistId", value = "专家ID", required = true, dataType = "Long")
    })
    @PutMapping("/reappoint/Request")
    public R reappoint(Long id, Long specialistId) {
        return comEventService.reappoint(id, specialistId);
    }
    /**
     * description 专家调解处理
     *
     * @param comEventConciliationVO 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("专家调解处理")
    @PutMapping("/conciliation/Request")
    public R conciliationRequest(@RequestBody ComEventConciliationVO comEventConciliationVO) {
        return comEventService.conciliationRequest(comEventConciliationVO);
    }
    /**
     * description 专家归档
     *
     * @param comEventArchiveVO 归档对象
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("事件专家归档")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
            @ApiImplicitParam(name = "result", value = "归档结论", required = true, dataType = "String"),
    })
    @PutMapping("/archive/Request")
    public R archiveRequest(@RequestBody ComEventArchiveVO comEventArchiveVO) {
        return comEventService.archiveRequest(comEventArchiveVO);
    }
    /**
     * description 事件各种状态(处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案归档7调解取消8 已删除)数据统计
     *
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("事件各种状态(处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案归档7调解取消8 已删除)数据统计")
    @GetMapping("/status/calculate")
    public R calculate() {
        return comEventService.calculate();
    }
}
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/config/JacksonConfig.java
New file
@@ -0,0 +1,31 @@
package com.panzhihua.community_backstage.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
@Configuration
public class JacksonConfig {
    @Bean
    @Primary
    @ConditionalOnMissingBean(ObjectMapper.class)
    public ObjectMapper jacksonObjectMapper(Jackson2ObjectMapperBuilder builder)
    {
        ObjectMapper objectMapper = builder.createXmlMapper(false).build();
        // 全局配置序列化返回 JSON 处理
        SimpleModule simpleModule = new SimpleModule();
        //JSON Long ==> String
        simpleModule.addSerializer(Long.class, ToStringSerializer.instance);
        objectMapper.registerModule(simpleModule);
        return objectMapper;
    }
}
springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/java/com/panzhihua/grid_backstage/api/ComSanShuoApi.java
New file
@@ -0,0 +1,165 @@
package com.panzhihua.grid_backstage.api;
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.dtos.community.sanshuo.ComMediateTypeDTO;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanShuoIndustryCenterDTO;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoExpertDTO;
import com.panzhihua.common.model.dtos.community.sanshuo.IndexDateDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.sanshuo.*;
import com.panzhihua.common.service.community.CommunityService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@RestController
@RequestMapping("sanshuo")
@Api(tags = "三说会堂后台接口")
public class ComSanShuoApi extends BaseController {
    @Resource
    private CommunityService communityService;
    @ApiOperation(value = "后台获取专家列表",response = ComSanshuoExpertVO.class)
    @GetMapping("/expert/backList")
    public R expertBackList(@RequestParam(value = "keyWord",required = false)@ApiParam("搜索关键字") String keyWord,
                            @RequestParam(value = "page",required = false)Integer page,
                            @RequestParam(value = "size",required = false)Integer size){
        return communityService.backExpertList(keyWord, page, size);
    }
    @PostMapping("/expert")
    @ApiOperation("添加专家")
    public R addExpert(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO){
        return communityService.addExpert(comSanshuoExpertDTO);
    }
    @PutMapping("/expert")
    @ApiOperation("添加专家")
    public R updateExpert(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO){
        return communityService.updateExpert(comSanshuoExpertDTO);
    }
    @ApiOperation("重置专家登陆密码")
    @PostMapping("/expert/resetPassword")
    public R resetExpertPassword(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO){
        return communityService.resetExpertPassword(comSanshuoExpertDTO);
    }
    @ApiOperation("专家详情")
    @GetMapping("/expert/{id}")
    public R expertDetail(@PathVariable("id") Long id){
        return communityService.expertDetail(id);
    }
    @ApiOperation("删除专家")
    @GetMapping("/expert/remove/{id}")
    public R removeExpert(@PathVariable("id") Long id){
        return communityService.removeExpert(id);
    }
    @ApiOperation(value = "后台获取业务中心列表",response = ComSanShuoIndustryCenterVO.class)
    @GetMapping("/industryCenter/backList")
    public R industryCenterBackList(@RequestParam(value = "keyWord",required = false)String keyWord,
                                    @RequestParam(value = "page",required = false)Integer page,
                                    @RequestParam(value = "size",required = false)Integer size){
        return communityService.backIndustrytList(keyWord, page, size);
    }
    @ApiOperation("添加业务中心")
    @PostMapping("/industryCenter")
    public R addIndustry(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO){
        return communityService.addIndustry(comSanShuoIndustryCenterDTO);
    }
    @ApiOperation("修改业务中心")
    @PutMapping("/industryCenter")
    public R updateIndustryCenter(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO){
        return communityService.updateIndustry(comSanShuoIndustryCenterDTO);
    }
    @ApiOperation("删除业务中心")
    @GetMapping("/industryCenter/remove/{id}")
    public R removeIndustry(@PathVariable("id") Long id){
        return communityService.removeIndustry(id);
    }
    @ApiOperation("业务中心详情")
    @GetMapping("/industryCenter/{id}")
    public R industryDetail(@PathVariable("id") Long id){
        return communityService.industryCenterDetail(id);
    }
    @ApiOperation("重置业务中心密码")
    @PostMapping("/industryCenter/resetPassword")
    public R resetIndustryPassword(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO){
        return communityService.resetIndustryPassword(comSanShuoIndustryCenterDTO);
    }
    @ApiOperation("后台事件类型列表")
    @GetMapping("/event/backList")
    public R eventBackList(@RequestParam(value = "keyWord",required = false)String keyWord,
                           @RequestParam(value = "page",required = false)Integer page,
                           @RequestParam(value = "size",required = false)Integer size){
        return communityService.backEventList(keyWord, page, size);
    }
    @ApiOperation("添加事件类型")
    @PostMapping("/event")
    public R addEvent(@RequestBody ComMediateTypeDTO comSanshuoEventDTO){
        return communityService.addEvent(comSanshuoEventDTO);
    }
    @ApiOperation("修改事件类型")
    @PutMapping("/event")
    public R updateEvent(@RequestBody ComMediateTypeDTO comSanshuoEventDTO){
        return communityService.updateEvent(comSanshuoEventDTO);
    }
    @ApiOperation("删除事件类型")
    @DeleteMapping("/event/{id}")
    public R removeEvent(@PathVariable("id") Long id){
        return communityService.removeEvent(id);
    }
    @ApiOperation("小程序获取可用专家列表")
    @GetMapping("/event/appletsList")
    public R eventAppletsList(){
        return communityService.eventAppList();
    }
    @ApiOperation("小程序获取可用业务中心列表")
    @GetMapping("/industryCenter/appletsList")
    public R industryAppletsList(){
        return communityService.industryCenterAppList();
    }
    @ApiOperation(value = "专家风采",response = ExpertShowVO.class)
    @GetMapping("/expert/expertShow")
    public R experShow(){
        return communityService.expertShow();
    }
    @GetMapping("/sanshuo/expertRange")
    @ApiOperation(value = "当前账号可添加专家范围",response = ExpertRangeVO.class)
    public R expertRange(){
        return communityService.expertRange();
    }
    @PostMapping("/indexData")
    @ApiOperation(value = "大屏各级别事件统计",response = IndexDateVO.class)
    public R indexData(@RequestBody IndexDateDTO indexDateDTO){
        return communityService.sanshuoIndexDate(indexDateDTO);
    }
    @GetMapping("/indexData/event")
    @ApiOperation(value = "事件统计饼图",response = EventRateVO.class)
    public R eventIndexData(@RequestParam("type") @ApiParam("1受理级别2专家级别3时间类型分类") Integer type){
        return communityService.eventIndexData(type);
    }
}
springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/java/com/panzhihua/grid_backstage/api/ComSanShuoEventController.java
New file
@@ -0,0 +1,248 @@
package com.panzhihua.grid_backstage.api;
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.sanshuo.ComEventArchiveVO;
import com.panzhihua.common.model.vos.sanshuo.ComEventConciliationVO;
import com.panzhihua.common.model.vos.sanshuo.ComEventPageRequestVO;
import com.panzhihua.common.model.vos.sanshuo.ComEventVO;
import com.panzhihua.common.service.community.CommunitySanShuoService;
import com.panzhihua.common.utlis.CopyUtil;
import com.panzhihua.common.utlis.StringUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.HashMap;
import java.util.List;
/**
 * ClassName   ComEventController
 * Description 三说会堂事件表控制层
 *
 * @author manailin
 * @date 2022-09-07 11:23:51
 */
@Slf4j
@Api(tags = {"三说会堂事件表控制层"})
@RestController
@RequestMapping("/sanshuo/comEvent")
public class ComSanShuoEventController extends BaseController {
    @Resource
    private CommunitySanShuoService comEventService;
    /**
     * description 更新三说会堂事件表
     *
     * @param comEventVO 对象
     * @return R  修改结果对象
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("更新三说会堂事件表")
    @PostMapping("/update")
    public R updateComEvent(@RequestBody @Valid ComEventVO comEventVO, @ApiIgnore BindingResult results) {
        if (results.hasErrors()) {
            return R.fail(results.getFieldError().getDefaultMessage());
        }
        return comEventService.updateComEvent(comEventVO);
    }
    /**
     * description 根据ID获取三说会堂事件表信息
     *
     * @param id 主键id
     * @return R<ComEvent> comEvent 对象
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("根据ID获取三说会堂事件详情信息,返回事件信息和图片信息")
    @GetMapping("/detail/{id}")
    public R<HashMap> detail(@PathVariable(value = "id") String id) {
        if (StringUtils.isEmpty(id)) {
            throw new RuntimeException("参数不能为空");
        }
        return comEventService.detail(id);
    }
    /**
     * description page   三说会堂事件表分页列表数据
     * params   [pageNo, pageSize]
     *
     * @param comEventPageRequestVO 对象
     * @return PageResult<List < ComEvent>>  三说会堂事件表分页列表数据
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation(value = "三说会堂事件表分页列表数据", notes = "三说会堂事件表分页列表数据")
    @PostMapping("/page")
    public R<List<ComEventVO>> page(@RequestBody ComEventPageRequestVO comEventPageRequestVO) {
        ComEventVO comEventVO = CopyUtil.copyProperties(comEventPageRequestVO, ComEventVO.class);
        return comEventService.page(comEventVO, comEventVO.getPageNo(), comEventVO.getPageSize());
    }
    /**
     * description 根据ID删除三说会堂事件表
     *
     * @param id 主键id
     * @return R 删除结果
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("删除三说会堂事件")
    @ApiImplicitParams(
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long")
    )
    @DeleteMapping("/remove/{id}")
    public R remove(@PathVariable Long id) {
        return comEventService.remove(id);
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("修改是否有效状态")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
            @ApiImplicitParam(name = "enabled", value = "是否启用", required = true, dataType = "Boolean")
    })
    @PutMapping("/updateEnabled")
    public R updateEnabled(@RequestParam("id") Long id, @RequestParam("enabled") Boolean enabled) {
        return comEventService.updateEnabled(id, enabled);
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("取消申请")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
    })
    @PutMapping("/cancelRequest")
    public R cancelRequest(@RequestParam("id") Long id) {
        return comEventService.cancelRequest(id);
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("专家受理")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "事件ID", required = true, dataType = "Long"),
            @ApiImplicitParam(name = "specterId", value = "专家ID", required = true, dataType = "Long"),
    })
    @PutMapping("/accept/Request")
    public R acceptRequest(@RequestParam("id") Long id, Long specterId) {
        return comEventService.acceptRequest(id, specterId);
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("专家不受理,转其他专家处理")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
    })
    @PutMapping("/reject/Request")
    public R rejectRequest(@RequestParam("id") Long id) {
        return comEventService.rejectRequest(id);
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("重新指定专家处理")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
            @ApiImplicitParam(name = "specialistId", value = "专家ID", required = true, dataType = "Long")
    })
    @PutMapping("/reappoint/Request")
    public R reappoint(Long id, Long specialistId) {
        return comEventService.reappoint(id, specialistId);
    }
    /**
     * description 专家调解处理
     *
     * @param comEventConciliationVO 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("专家调解处理")
    @PutMapping("/conciliation/Request")
    public R conciliationRequest(@RequestBody ComEventConciliationVO comEventConciliationVO) {
        return comEventService.conciliationRequest(comEventConciliationVO);
    }
    /**
     * description 专家归档
     *
     * @param comEventArchiveVO 归档对象
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("事件专家归档")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
            @ApiImplicitParam(name = "result", value = "归档结论", required = true, dataType = "String"),
    })
    @PutMapping("/archive/Request")
    public R archiveRequest(@RequestBody ComEventArchiveVO comEventArchiveVO) {
        return comEventService.archiveRequest(comEventArchiveVO);
    }
    /**
     * description 事件各种状态(处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案归档7调解取消8 已删除)数据统计
     *
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("事件各种状态(处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案归档7调解取消8 已删除)数据统计")
    @GetMapping("/status/calculate")
    public R calculate() {
        return comEventService.calculate();
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActActivityCodeApi.java
@@ -4,12 +4,9 @@
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.api.ApiController;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.dtos.property.CommonPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.common.model.vos.community.QRActivityCodeVO;
import com.panzhihua.common.model.vos.community.warehouse.QRCodeVO;
import com.panzhihua.service_community.entity.ComActActivityCode;
import com.panzhihua.service_community.service.ComActActivityCodeService;
import com.panzhihua.service_community.util.QRCodeUtil;
@@ -18,7 +15,6 @@
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * 签到二维码表(ComActActivityCode)表控制层
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventApi.java
New file
@@ -0,0 +1,83 @@
package com.panzhihua.service_community.api;
import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.dtos.community.sanshuo.ComMediateTypeDTO;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoEventDTO;
import com.panzhihua.common.model.dtos.community.sanshuo.IndexDateDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.entity.ComMediateType;
import com.panzhihua.service_community.entity.ComSanshuoEvent;
import com.panzhihua.service_community.service.ComSanShuoEventService;
import com.panzhihua.service_community.service.CommediateTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
/**
 * 三说会堂事件类型管理控制器
 * */
@RestController
@RequestMapping("/sanshuo/event")
public class ComSanShuoEventApi extends BaseController {
//    @Resource
//    private ComSanShuoEventService comSanShuoEventService;
    @Resource
    private CommediateTypeService commediateTypeService;
    @GetMapping ("/list")
    public R list(@RequestParam(value = "keyWord",required = false)String keyWord,
                  @RequestParam(value = "page",required = false)Integer page,
                  @RequestParam(value = "size",required = false)Integer size){
        return commediateTypeService.listEvent(keyWord,page,size);
    }
    @GetMapping("/detail")
    public R detail(@RequestParam("id")Long id){
        return R.ok(commediateTypeService.getById(id));
    }
    @GetMapping("/appletsList")
    public R appletList(){
        return R.ok(commediateTypeService.list(new QueryWrapper<ComMediateType>().eq("enabled",1)));
    }
    /**
     * 新增事件类型
     * */
    @PostMapping
    public R add(@RequestBody ComMediateTypeDTO comMediateTypeDTO){
        comMediateTypeDTO.setCreateUser(this.getLoginUserInfo().getUserId());
        return commediateTypeService.addOrUpdate(comMediateTypeDTO);
    }
    /**
     * 修改事件类型
     * */
    @PutMapping
    public R update(@RequestBody ComMediateTypeDTO comMediateTypeDTO){
        comMediateTypeDTO.setModifyUser(this.getLoginUserInfo().getUserId());
        return commediateTypeService.addOrUpdate(comMediateTypeDTO);
    }
    /**
     * 删除事件
     * */
    @DeleteMapping("/remove")
    public R remove(@RequestParam("id")Long id){
        ComMediateType comMediateType = commediateTypeService.getById(id);
        comMediateType.setDeleteFlag(true);
        comMediateType.setEnabled(false);
        comMediateType.setModifyUser(this.getLoginUserInfo().getUserId());
        return R.ok(commediateTypeService.updateById(comMediateType));
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventController.java
New file
@@ -0,0 +1,335 @@
package com.panzhihua.service_community.api;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.enums.SanShuoEventStatusEnum;
import com.panzhihua.common.model.dtos.community.sanshuo.IndexDateDTO;
import com.panzhihua.common.model.vos.LoginUserInfoVO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.sanshuo.ComEventArchiveVO;
import com.panzhihua.common.model.vos.sanshuo.ComEventConciliationVO;
import com.panzhihua.common.model.vos.sanshuo.ComEventVO;
import com.panzhihua.common.model.vos.sanshuo.ComSanRequestVO;
import com.panzhihua.common.utlis.CopyUtil;
import com.panzhihua.common.utlis.StringUtils;
import com.panzhihua.service_community.entity.ComEvent;
import com.panzhihua.service_community.service.IComEventService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.HashMap;
import java.util.List;
/**
 * ClassName   ComEventController
 * Description 三说会堂事件表控制层
 *
 * @author manailin
 * @date 2022-09-07 11:23:51
 */
@Slf4j
@Api(tags = {"三说会堂事件表控制层"})
@RestController
@RequestMapping("/sanshuo/comEvent")
public class ComSanShuoEventController extends BaseController {
    @Resource
    private IComEventService comEventService;
    /**
     * description 新增三说会堂事件表
     *
     * @param comEventVO 对象
     * @return R  新增结果对象
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("新增三说会堂事件表")
    @PostMapping("/add")
    public R insertComEvent(@RequestBody @Valid ComSanRequestVO comEventVO, @ApiIgnore BindingResult results) {
        if (results.hasErrors()) {
            return R.fail(results.getFieldError().getDefaultMessage());
        }
        ComEvent comEvent = CopyUtil.copyProperties(comEventVO, ComEvent.class);
        LoginUserInfoVO loginUser = getLoginUserInfo();
        comEvent.setRequestUserId(loginUser.getUserId());
        comEvent.setRequestUserName(loginUser.getName());
        comEvent.setRequestUserTel(loginUser.getPhone());
        return comEventService.insertComEvent(comEvent);
    }
    /**
     * description 更新三说会堂事件表
     *
     * @param comEventVO 对象
     * @return R  修改结果对象
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("更新三说会堂事件表")
    @PostMapping("/update")
    public R updateComEvent(@RequestBody @Valid ComEventVO comEventVO, @ApiIgnore BindingResult results) {
        if (results.hasErrors()) {
            return R.fail(results.getFieldError().getDefaultMessage());
        }
        ComEvent comEvent = CopyUtil.copyProperties(comEventVO, ComEvent.class);
        return comEventService.updateComEvent(comEvent);
    }
    /**
     * description 根据ID获取三说会堂事件表信息
     *
     * @param id 主键id
     * @return R<ComEvent> comEvent 对象
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("根据ID获取三说会堂事件表信息")
    @GetMapping("/get/{id}")
    public R<ComEventVO> get(@PathVariable(value = "id") String id) {
        if (StringUtils.isEmpty(id)) {
            throw new RuntimeException("参数不能为空");
        }
        return R.ok(CopyUtil.copyProperties(comEventService.getById(id), ComEventVO.class));
    }
    /**
     * description 根据ID获取三说会堂事件表信息
     *
     * @param id 主键id
     * @return R<ComEvent> comEvent 对象
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("根据ID获取三说会堂事件详情信息,返回事件信息和图片信息")
    @GetMapping("/detail/{id}")
    public R<HashMap> detail(@PathVariable(value = "id") String id) {
        if (StringUtils.isEmpty(id)) {
            throw new RuntimeException("参数不能为空");
        }
        return R.ok(comEventService.detail(id));
    }
    /**
     * description 查询返回列表数据
     *
     * @param comEventVO 三说会堂事件表对象
     * @return R<List < ComEventVO>>  comEventVO对象列表
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("查询返回列表数据")
    @PostMapping("/list")
    public R<List<ComEventVO>> listByComEvent(@RequestBody ComEventVO comEventVO) {
        ComEvent comEvent = CopyUtil.copyProperties(comEventVO, ComEvent.class);
        return R.ok(CopyUtil.beanCopyList(comEventService.listByComEvent(comEvent), ComEventVO.class));
    }
    /**
     * description page   三说会堂事件表分页列表数据
     * params   [pageNo, pageSize]
     *
     * @param comEventVO 对象
     * @param pageNo     当前页码
     * @param pageSize   每页显示数量
     * @return PageResult<List < ComEvent>>  三说会堂事件表分页列表数据
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation(value = "三说会堂事件表分页列表数据", notes = "三说会堂事件表分页列表数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "pageNo", value = "当前页码", required = true, dataType = "Long", paramType = "query"),
            @ApiImplicitParam(name = "pageSize", value = "每页显示数量", required = true, dataType = "Long", paramType = "query")
    })
    @PostMapping("/page")
    public R page(@RequestBody ComEventVO comEventVO, Long pageNo, Long pageSize) {
        Page pagination = new Page(pageNo, pageSize);
        ComEvent comEvent = CopyUtil.copyProperties(comEventVO, ComEvent.class);
        return comEventService.pageByComEvent(comEvent, pagination);
    }
    /**
     * description 根据ID删除三说会堂事件表
     *
     * @param id 主键id
     * @return R 删除结果
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("删除三说会堂事件")
    @ApiImplicitParams(
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long")
    )
    @DeleteMapping("/remove/{id}")
    public R remove(@PathVariable Long id) {
        ComEvent comEvent = new ComEvent();
        comEvent.setId(id);
        comEvent.setEventProcessStatus(8);
        return comEventService.updateComEvent(comEvent);
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("修改是否有效状态")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
            @ApiImplicitParam(name = "enabled", value = "是否启用", required = true, dataType = "Boolean")
    })
    @PutMapping("/updateEnabled")
    public R updateEnabled(@RequestParam("id") Long id, @RequestParam("enabled") Boolean enabled) {
        return comEventService.updateEnabled(id, enabled);
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("取消申请")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
    })
    @PutMapping("/cancelRequest")
    public R cancelRequest(@RequestParam("id") Long id) {
        return comEventService.cancelRequest(id);
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("专家受理")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "事件ID", required = true, dataType = "Long"),
            @ApiImplicitParam(name = "specterId", value = "专家ID", required = true, dataType = "Long"),
    })
    @PutMapping("/accept/Request")
    public R acceptRequest(@RequestParam("id") Long id, @RequestParam("specterId") Long specterId) {
        return comEventService.acceptRequest(id, specterId);
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("专家不受理,转其他专家处理")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
    })
    @PutMapping("/reject/Request")
    public R rejectRequest(@RequestParam("id") Long id) {
        ComEvent comEvent = new ComEvent();
        comEvent.setId(id);
        comEvent.setEventProcessStatus(SanShuoEventStatusEnum.REJECT.getCode());
        return comEventService.updateComEvent(comEvent);
    }
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("重新指定专家处理")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
            @ApiImplicitParam(name = "specialistId", value = "专家ID", required = true, dataType = "Long")
    })
    @PutMapping("/reappoint/Request")
    public R reappoint(Long id, Long specialistId) {
        return comEventService.reappoint(id, specialistId);
    }
    /**
     * description 专家调解处理
     *
     * @param comEventConciliationVO 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("专家调解处理")
    @PutMapping("/conciliation/Request")
    public R conciliationRequest(@RequestBody ComEventConciliationVO comEventConciliationVO) {
        return comEventService.conciliationEvent(comEventConciliationVO, getLoginUserInfo());
    }
    /**
     * description 专家归档
     *
     * @param comEventArchiveVO 归档对象
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("事件专家归档")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
            @ApiImplicitParam(name = "result", value = "归档结论", required = true, dataType = "String"),
    })
    @PutMapping("/archive/Request")
    public R archiveRequest(@RequestBody ComEventArchiveVO comEventArchiveVO) {
        return comEventService.archiveRequest(comEventArchiveVO, getLoginUserInfo());
    }
    /**
     * description 事件各种状态(处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案归档7调解取消8 已删除)数据统计
     *
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    @ApiOperation("事件各种状态(处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案归档7调解取消8 已删除)数据统计")
    @GetMapping("/status/calculate")
    public R calculate() {
        return comEventService.calculate();
    }
    /**
     * 大屏事件统计
     *
     * @param indexDataDTO 查询参数
     */
    @PostMapping("/indexData")
    public R indexData(@RequestBody IndexDateDTO indexDataDTO) {
        return comEventService.indexData(indexDataDTO);
    }
    /**
     * 大屏事件统计(事件和专家各级别占比)
     */
    @GetMapping("/indexData/event")
    public R eventIndexData(@RequestParam Integer type) {
        return comEventService.eventIndexData(type);
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventResourceController.java
New file
@@ -0,0 +1,166 @@
package com.panzhihua.service_community.api;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.sanshuo.ComEventResourceVO;
import com.panzhihua.common.utlis.CopyUtil;
import com.panzhihua.common.utlis.StringUtils;
import com.panzhihua.service_community.entity.ComEventResource;
import com.panzhihua.service_community.service.IComEventResourceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.List;
/**
 * ClassName   ComEventResourceController
 * Description 三说会堂事件关联图片资源表控制层
 *
 * @author     manailin
 * @date       2022-09-07 11:23:52
 */
@Slf4j
@Api(tags = {"三说会堂事件关联图片资源表控制层"})
@RestController
@RequestMapping("/comEventResource")
public class ComSanShuoEventResourceController extends BaseController {
    @Resource
    private IComEventResourceService comEventResourceService;
    /**
     * description 新增三说会堂事件关联图片资源表
     *
     * @param  comEventResourceVO 对象
     * @return R  新增结果对象
     * @author manailin
     * @date   2022-09-07 11:23:52
     */
    @ApiOperation("新增三说会堂事件关联图片资源表")
    @PostMapping("/add")
    public R insertComEventResource(@RequestBody @Valid ComEventResourceVO comEventResourceVO, @ApiIgnore BindingResult results) {
        if (results.hasErrors()) {
            return R.fail(results.getFieldError().getDefaultMessage());
        }
         ComEventResource comEventResource = CopyUtil.copyProperties(comEventResourceVO, ComEventResource.class);
        return comEventResourceService.insertComEventResource(comEventResource);
    }
    /**
     * description 更新三说会堂事件关联图片资源表
     *
     * @param  comEventResourceVO 对象
     * @return R  修改结果对象
     * @author manailin
     * @date   2022-09-07 11:23:52
     */
    @ApiOperation("更新三说会堂事件关联图片资源表")
    @PostMapping("/update")
    public R updateComEventResource(@RequestBody @Valid ComEventResourceVO comEventResourceVO, @ApiIgnore BindingResult results) {
        if (results.hasErrors()) {
            return R.fail(results.getFieldError().getDefaultMessage());
        }
       ComEventResource comEventResource = CopyUtil.copyProperties(comEventResourceVO, ComEventResource.class);
        return comEventResourceService.updateComEventResource(comEventResource);
    }
     /**
      * description 根据ID获取三说会堂事件关联图片资源表信息
      *
     * @param   id 主键id
      * @return R<ComEventResource> comEventResource 对象
      * @author manailin
      * @date   2022-09-07 11:23:52
      */
     @ApiOperation("根据ID获取三说会堂事件关联图片资源表信息")
     @GetMapping("/get/{id}")
     public R<ComEventResourceVO> get(@PathVariable(value = "id") String id) {
         if (StringUtils.isEmpty(id)) {
             throw new RuntimeException("参数不能为空");
         }
        return R.ok(CopyUtil.copyProperties(comEventResourceService.getById(id), ComEventResourceVO.class));
     }
    /**
     * description 查询返回列表数据
     *
     * @param  comEventResourceVO 三说会堂事件关联图片资源表对象
     * @return R<List<ComEventResourceVO>>  comEventResourceVO对象列表
     * @author manailin
     * @date   2022-09-07 11:23:52
     */
    @ApiOperation("查询返回列表数据")
    @PostMapping("/list")
    public R<List<ComEventResourceVO>> listByComEventResource(@RequestBody ComEventResourceVO comEventResourceVO) {
           ComEventResource comEventResource = CopyUtil.copyProperties(comEventResourceVO, ComEventResource.class);
          return   R.ok(CopyUtil.beanCopyList(comEventResourceService.listByComEventResource(comEventResource),ComEventResourceVO.class));
    }
    /**
     * description page   三说会堂事件关联图片资源表分页列表数据
     * params   [pageNo, pageSize]
     *
     * @param  comEventResourceVO  对象
     * @param  pageNo   当前页码
     * @param  pageSize 每页显示数量
     * @return PageResult<List < ComEventResource>>  三说会堂事件关联图片资源表分页列表数据
     * @author manailin
     * @date   2022-09-07 11:23:52
     */
    @ApiOperation(value = "三说会堂事件关联图片资源表分页列表数据", notes = "三说会堂事件关联图片资源表分页列表数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "pageNo", value = "当前页码", required = true, dataType = "Long", paramType = "query"),
            @ApiImplicitParam(name = "pageSize", value = "每页显示数量", required = true, dataType = "Long", paramType = "query")
    })
    @PostMapping("/page")
    public R page(@RequestBody ComEventResourceVO comEventResourceVO, Long pageNo, Long pageSize) {
        Page pagination = new Page(pageNo, pageSize);
        ComEventResource comEventResource = CopyUtil.copyProperties(comEventResourceVO, ComEventResource.class);
        return comEventResourceService.pageByComEventResource(comEventResource, pagination);
    }
    /**
     * description 根据ID删除三说会堂事件关联图片资源表
     *
     * @param   id 主键id
     * @return  R 删除结果
     * @author  manailin
     * @date    2022-09-07 11:23:52
     */
    @ApiOperation("删除三说会堂事件关联图片资源表")
    @ApiImplicitParams(
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long")
    )
    @DeleteMapping("/remove/{id}")
    public R remove(@PathVariable Long id) {
          return comEventResourceService.removeById(id)? R.ok() : R.fail();
    }
    /**
     * description 修改三说会堂事件关联图片资源表状态
     *
     * @param   id 主键id
     * @return Result  修改成功和失败
     * @author manailin
     * @date   2022-09-07 11:23:52
     */
    @ApiOperation("修改状态")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"),
            @ApiImplicitParam(name = "enabled", value = "是否启用", required = true, dataType = "Boolean")
    })
    @PutMapping("/updateEnabled")
    public R updateEnabled(@RequestParam("id") Long id, @RequestParam("enabled") Boolean enabled) {
        return comEventResourceService.updateEnabled(id, enabled);
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventTransferRecordController.java
New file
@@ -0,0 +1,150 @@
package com.panzhihua.service_community.api;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.sanshuo.ComEventTransferRecordVO;
import com.panzhihua.common.utlis.CopyUtil;
import com.panzhihua.common.utlis.StringUtils;
import com.panzhihua.service_community.entity.ComEventTransferRecord;
import com.panzhihua.service_community.service.IComEventTransferRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.List;
/**
 * ClassName   ComEventTransferRecordController
 * Description 三说会堂事件流转表控制层
 *
 * @author manailin
 * @date 2022-09-07 11:23:52
 */
@Slf4j
@Api(tags = {"三说会堂事件流转表控制层"})
@RestController
@RequestMapping("/comEventTransferRecord")
public class ComSanShuoEventTransferRecordController extends BaseController {
    @Resource
    private IComEventTransferRecordService comEventTransferRecordService;
    /**
     * description 新增三说会堂事件流转表
     *
     * @param comEventTransferRecordVO 对象
     * @return R  新增结果对象
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    @ApiOperation("新增三说会堂事件流转表")
    @PostMapping("/add")
    public R insertComEventTransferRecord(@RequestBody @Valid ComEventTransferRecordVO comEventTransferRecordVO, @ApiIgnore BindingResult results) {
        if (results.hasErrors()) {
            return R.fail(results.getFieldError().getDefaultMessage());
        }
        ComEventTransferRecord comEventTransferRecord = CopyUtil.copyProperties(comEventTransferRecordVO, ComEventTransferRecord.class);
        return comEventTransferRecordService.insertComEventTransferRecord(comEventTransferRecord);
    }
    /**
     * description 更新三说会堂事件流转表
     *
     * @param comEventTransferRecordVO 对象
     * @return R  修改结果对象
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    @ApiOperation("更新三说会堂事件流转表")
    @PostMapping("/update")
    public R updateComEventTransferRecord(@RequestBody @Valid ComEventTransferRecordVO comEventTransferRecordVO, @ApiIgnore BindingResult results) {
        if (results.hasErrors()) {
            return R.fail(results.getFieldError().getDefaultMessage());
        }
        ComEventTransferRecord comEventTransferRecord = CopyUtil.copyProperties(comEventTransferRecordVO, ComEventTransferRecord.class);
        return comEventTransferRecordService.updateComEventTransferRecord(comEventTransferRecord);
    }
    /**
     * description 根据ID获取三说会堂事件流转表信息
     *
     * @param id 主键id
     * @return R<ComEventTransferRecord> comEventTransferRecord 对象
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    @ApiOperation("根据ID获取三说会堂事件流转表信息")
    @GetMapping("/get/{id}")
    public R<ComEventTransferRecordVO> get(@PathVariable(value = "id") String id) {
        if (StringUtils.isEmpty(id)) {
            throw new RuntimeException("参数不能为空");
        }
        return R.ok(CopyUtil.copyProperties(comEventTransferRecordService.getById(id), ComEventTransferRecordVO.class));
    }
    /**
     * description 查询返回列表数据
     *
     * @param comEventTransferRecordVO 三说会堂事件流转表对象
     * @return R<List < ComEventTransferRecordVO>>  comEventTransferRecordVO对象列表
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    @ApiOperation("查询返回列表数据")
    @PostMapping("/list")
    public R<List<ComEventTransferRecordVO>> listByComEventTransferRecord(@RequestBody ComEventTransferRecordVO comEventTransferRecordVO) {
        ComEventTransferRecord comEventTransferRecord = CopyUtil.copyProperties(comEventTransferRecordVO, ComEventTransferRecord.class);
        return R.ok(CopyUtil.beanCopyList(comEventTransferRecordService.listByComEventTransferRecord(comEventTransferRecord), ComEventTransferRecordVO.class));
    }
    /**
     * description page   三说会堂事件流转表分页列表数据
     * params   [pageNo, pageSize]
     *
     * @param comEventTransferRecordVO 对象
     * @param pageNo                   当前页码
     * @param pageSize                 每页显示数量
     * @return PageResult<List < ComEventTransferRecord>>  三说会堂事件流转表分页列表数据
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    @ApiOperation(value = "三说会堂事件流转表分页列表数据", notes = "三说会堂事件流转表分页列表数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "pageNo", value = "当前页码", required = true, dataType = "Long", paramType = "query"),
            @ApiImplicitParam(name = "pageSize", value = "每页显示数量", required = true, dataType = "Long", paramType = "query")
    })
    @PostMapping("/page")
    public R page(@RequestBody ComEventTransferRecordVO comEventTransferRecordVO, Long pageNo, Long pageSize) {
        Page pagination = new Page(pageNo, pageSize);
        ComEventTransferRecord comEventTransferRecord = CopyUtil.copyProperties(comEventTransferRecordVO, ComEventTransferRecord.class);
        return comEventTransferRecordService.pageByComEventTransferRecord(comEventTransferRecord, pagination);
    }
    /**
     * description 根据ID删除三说会堂事件流转表
     *
     * @param id 主键id
     * @return R 删除结果
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    @ApiOperation("删除三说会堂事件流转表")
    @ApiImplicitParams(
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long")
    )
    @DeleteMapping("/remove/{id}")
    public R remove(@PathVariable Long id) {
        return comEventTransferRecordService.removeById(id) ? R.ok() : R.fail();
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java
New file
@@ -0,0 +1,128 @@
package com.panzhihua.service_community.api;
import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoExpertDTO;
import com.panzhihua.common.model.vos.LoginUserInfoVO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.user.AdministratorsUserVO;
import com.panzhihua.common.service.user.UserService;
import com.panzhihua.common.utlis.Snowflake;
import com.panzhihua.service_community.entity.ComSanshuoExpert;
import com.panzhihua.service_community.service.ComSanShuoExpertService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.xml.crypto.Data;
import java.util.Date;
/**
 * 三说会堂调解专家控制器
 * */
@RestController
@RequestMapping("/sanshuo/expert")
public class ComSanShuoExpertApi extends BaseController {
    @Resource
    private ComSanShuoExpertService comSanShuoExpertService;
    @Resource
    private UserService userService;
    /**
     * 添加专家
     * */
    @PostMapping
    public R add(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO){
        comSanshuoExpertDTO.setCreateBy(this.getLoginUserInfo().getName());
        return comSanShuoExpertService.addExpert(comSanshuoExpertDTO);
    }
    @GetMapping("/detail")
    public R detail(@RequestParam Long id){
        return R.ok(comSanShuoExpertService.getById(id));
    }
    /**
     * 小程序获取可选择专家
     * */
    @GetMapping("/appletsList")
    public R appList(){
        comSanShuoExpertService.selectExpertList();
        return R.ok(comSanShuoExpertService.list(new QueryWrapper<ComSanshuoExpert>().eq("status",1).eq("del_flag",1)));
    }
    /**
     * 修改专家
     * */
    @PutMapping
    public R update(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO){
        ComSanshuoExpert expert=new ComSanshuoExpert();
        BeanUtil.copyProperties(comSanshuoExpertDTO,expert);
        expert.setUpdateTime(new Date());
        return R.ok(comSanShuoExpertService.updateById(expert));
    }
    /**
     * 后台获取列表
     * */
    @GetMapping("/backstageList")
    public R backList(@RequestParam(value = "keyWord",required = false) String keyWord,
                      @RequestParam(value = "page",required = false)Integer page,
                      @RequestParam(value = "size",required = false)Integer size){
        LoginUserInfoVO loginUserInfo = this.getLoginUserInfo();
        return comSanShuoExpertService.expertPage(keyWord,page,size,loginUserInfo);
    }
    /**
     * 删除
     * */
    @DeleteMapping("/remove")
    public R remove(@RequestParam("id")Long id){
        //TODO 是否有为解决事件
        ComSanshuoExpert expert = comSanShuoExpertService.getById(id);
        expert.setStatus(0);
        expert.setDelFlag(0);
        return R.ok(comSanShuoExpertService.updateById(expert));
    }
    /**
     * 重置密码
     * */
    @PostMapping("/resetPassword")
    public R resetPassword(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO){
        ComSanshuoExpert expert = comSanShuoExpertService.getById(comSanshuoExpertDTO.getId());
        expert.setPassword(comSanshuoExpertDTO.getPassword());
        return R.ok(comSanShuoExpertService.updateById(expert));
    }
    /**
     * 专家风采
     * */
    @GetMapping("/expertShow")
    public R expertShow(){
        return comSanShuoExpertService.expertShow();
    }
    /**
     * 专家范围
     * */
    @GetMapping("/expertRange")
    public R expertRange(){
        LoginUserInfoVO loginUserInfo = this.getLoginUserInfo();
        return comSanShuoExpertService.expertRange(loginUserInfo);
    }
    /**
     * 专家风采列表
     * */
    @GetMapping("/expertShowList")
    public R expertShowList(@RequestParam(value = "level",required = false)Integer level,
                            @RequestParam(value = "id",required = false)Long id){
        return comSanShuoExpertService.expertShowList(level,id);
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoIndustryCenterApi.java
New file
@@ -0,0 +1,80 @@
package com.panzhihua.service_community.api;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanShuoIndustryCenterDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.service.user.UserService;
import com.panzhihua.service_community.entity.ComSanshuoIndustryCenter;
import com.panzhihua.service_community.service.ComSanShuoIndustryCenterService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
/**
 * 三说会堂业务中心管理控制器
 */
@RestController
@RequestMapping("/sanshuo/industryCenter")
public class ComSanShuoIndustryCenterApi extends BaseController {
    @Resource
    private ComSanShuoIndustryCenterService comSanShuoIndustryCenterService;
    @Resource
    private UserService userService;
    @GetMapping("/list")
    public R list(@RequestParam(value = "keyWord", required = false) String keyWord,
                  @RequestParam(value = "page", required = false) Integer page,
                  @RequestParam(value = "size", required = false) Integer size) {
        return R.ok(comSanShuoIndustryCenterService.pageIndustryCenter(keyWord, page, size));
    }
    @GetMapping("/appletsList")
    public R appletsList() {
        return R.ok(comSanShuoIndustryCenterService.list(new QueryWrapper<ComSanshuoIndustryCenter>().eq("status", 1).eq("del_flag", 1)));
    }
    @GetMapping("/detail")
    public R detail(@RequestParam Long id) {
        return R.ok(comSanShuoIndustryCenterService.getById(id));
    }
    /**
     * 添加业务中心
     */
    @PostMapping
    public R add(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO) {
        comSanShuoIndustryCenterDTO.setCreateBy(this.getLoginUserInfo().getName());
        return comSanShuoIndustryCenterService.addOrUpdate(comSanShuoIndustryCenterDTO);
    }
    /**
     * 修改业务中心
     */
    @PutMapping
    public R update(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO) {
        return comSanShuoIndustryCenterService.addOrUpdate(comSanShuoIndustryCenterDTO);
    }
    /**
     * 删除业务中心
     */
    @DeleteMapping("/remove")
    public R remove(@RequestParam("id") Long id) {
        ComSanshuoIndustryCenter center = comSanShuoIndustryCenterService.getById(id);
        center.setDelFlag(0);
        center.setStatus(0);
        return R.ok(comSanShuoIndustryCenterService.updateById(center));
    }
    /**
     * 重置密码
     */
    @PostMapping("/resetPass")
    public R resetPassword(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO) {
        ComSanshuoIndustryCenter center = comSanShuoIndustryCenterService.getById(comSanShuoIndustryCenterDTO.getId());
        center.setPassword(comSanShuoIndustryCenterDTO.getPassword());
        return R.ok(comSanShuoIndustryCenterService.resetPassword(center));
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/StreetApi.java
@@ -4,6 +4,7 @@
import javax.annotation.Resource;
import com.panzhihua.common.model.vos.community.ComActVO;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@@ -93,4 +94,30 @@
        return comStreetService.detailStreet(id);
    }
    @PostMapping("/updateStreet")
    public R updateStreet(@RequestBody ComStreetVO comStreetVO){
        return comStreetService.update(comStreetVO);
    }
    @GetMapping("/removeStreet")
    public R remove(@RequestParam(value = "id",required = false)Long id){
        return comStreetService.remove(id);
    }
    @GetMapping("/removeCommunity")
    public R removeCommunity(@RequestParam(value = "id",required = false)Long id){
        return comStreetService.removeCommunity(id);
    }
    @PostMapping("/repassCommunity")
    public R repassCommunity(@RequestBody ComActVO comActVO){
       return comStreetService.repassCommunity(comActVO);
    }
    @PostMapping("/repassStreet")
    public R repassStreet(@RequestBody ComStreetVO comActVO){
        return comStreetService.repssStreet(comActVO);
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDAO.java
@@ -113,4 +113,6 @@
    @Select("select name from com_pb_check_unit where id=#{id}")
    String selectUnitName(@Param("id") Long id);
    @Select("select community_id from com_act where street_id=#{id}")
    List<Long> selectCommunityByStreetId(Long id);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComEventMapper.java
New file
@@ -0,0 +1,89 @@
package com.panzhihua.service_community.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.common.model.dtos.community.sanshuo.IndexDateDTO;
import com.panzhihua.common.model.vos.IndexDataVO;
import com.panzhihua.common.model.vos.sanshuo.ComEventCalculateVO;
import com.panzhihua.common.model.vos.sanshuo.EventRateVO;
import com.panzhihua.common.model.vos.sanshuo.IndexDateVO;
import com.panzhihua.common.model.vos.sanshuo.MediateTypeVO;
import com.panzhihua.service_community.entity.ComEvent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;
/**
 * 三说会堂事件表Mapper
 * ClassName   ComEventMapper
 * Description
 * @author     manailin
 * @date       2022-09-07 11:23:51
 */
@Mapper
public interface ComEventMapper extends BaseMapper<ComEvent> {
     /**
     * description 三说会堂事件表分页列表数据
     *
     * @param  comEvent  接口管理对象
     * @param  pagination 分页对象
     * @return R  分页数据结果
     * @author manailin
     * @date   2022-09-07 11:23:51
     */
  IPage<ComEvent> pageByComEvent(@Param("comEvent") ComEvent comEvent, Page pagination);
      /**
       * description 三说会堂事件表列表数据
       *
       * @param  comEvent 接口管理对象
       * @return R  数据结果
       * @author manailin
       * @date   2022-09-07 11:23:51
       */
   List<ComEvent> listByComEvent(@Param("comEvent") ComEvent comEvent);
    List<ComEventCalculateVO> calculate();
    /**
     * 大屏事件统计
     * @param indexDateDTO
     * @return 处理结果
     * @author zhangtiansen
     * */
    IndexDateVO dateAnalysis(@Param("dto") IndexDateDTO indexDateDTO,@Param("beginDate") Date beginDate, @Param("endDate")Date endDate);
    /**
     * 大屏事件统计-月新增
     * @param beginDate 开始时间
     * @param endDate 结束时间
     * @author zhangtiansen
     * */
    Integer dateAnalysisY(@Param("beginDate") Date beginDate, @Param("endDate")Date endDate, @Param("dto") IndexDateDTO indexDateDTO);
    /**
     * 大屏事件统计-月办结
     * @param beginDate 开始时间
     *  @param endDate 结束时间
     * @author zhangtiansen
     * */
    Integer dateAnalysisYTwo(@Param("beginDate")Date beginDate,@Param("endDate")Date endDate,@Param("dto") IndexDateDTO indexDateDTO);
    /**
     * 大屏事件级别统计
     * */
    List<EventRateVO> eventRate();
    /**
     * 大屏统计-专家级别占比
     * */
    List<EventRateVO> expertRate();
    /**
     * 大屏统计-事件类型占比
     * */
    List<EventRateVO> mediateTypeRate();
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComEventResourceMapper.java
New file
@@ -0,0 +1,42 @@
package com.panzhihua.service_community.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.service_community.entity.ComEventResource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
 * 三说会堂事件关联图片资源表Mapper
 * ClassName   ComEventResourceMapper
 * Description
 *
 * @author manailin
 * @date 2022-09-07 11:23:52
 */
@Mapper
public interface ComEventResourceMapper extends BaseMapper<ComEventResource> {
    /**
     * description 三说会堂事件关联图片资源表分页列表数据
     *
     * @param comEventResource 接口管理对象
     * @param pagination       分页对象
     * @return R  分页数据结果
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    IPage<ComEventResource> pageByComEventResource(@Param("comEventResource") ComEventResource comEventResource, Page pagination);
    /**
     * description 三说会堂事件关联图片资源表列表数据
     *
     * @param comEventResource 接口管理对象
     * @return R  数据结果
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    List<ComEventResource> listByComEventResource(@Param("comEventResource") ComEventResource comEventResource);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComEventTransferRecordMapper.java
New file
@@ -0,0 +1,42 @@
package com.panzhihua.service_community.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.service_community.entity.ComEventTransferRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
 * 三说会堂事件流转表Mapper
 * ClassName   ComEventTransferRecordMapper
 * Description
 *
 * @author manailin
 * @date 2022-09-07 11:23:52
 */
@Mapper
public interface ComEventTransferRecordMapper extends BaseMapper<ComEventTransferRecord> {
    /**
     * description 三说会堂事件流转表分页列表数据
     *
     * @param comEventTransferRecord 接口管理对象
     * @param pagination             分页对象
     * @return R  分页数据结果
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    IPage<ComEventTransferRecord> pageByComEventTransferRecord(@Param("comEventTransferRecord") ComEventTransferRecord comEventTransferRecord, Page pagination);
    /**
     * description 三说会堂事件流转表列表数据
     *
     * @param comEventTransferRecord 接口管理对象
     * @return R  数据结果
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    List<ComEventTransferRecord> listByComEventTransferRecord(@Param("comEventTransferRecord") ComEventTransferRecord comEventTransferRecord);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMediateTypeDao.java
New file
@@ -0,0 +1,31 @@
package com.panzhihua.service_community.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.service_community.entity.ComMediateType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* @author Frozen
* @description 针对表【com_mediate_type(事件调解类型表)】的数据库操作Mapper
* @createDate 2022-09-07 10:31:38
* @Entity generator.entity.ComMediateType
*/
@Mapper
public interface ComMediateTypeDao extends BaseMapper<ComMediateType> {
    /**
     * 后台获取事件列表
     * @param keyWord
     * @param page
     * @param size
     * @return 处理结果
     * */
    IPage<ComMediateType> eventList(Page page, @Param("keyWord") String keyWord);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSanshuoEventDao.java
New file
@@ -0,0 +1,34 @@
package com.panzhihua.service_community.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoEventDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.entity.ComSanshuoEvent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author Frozen
* @description 针对表【com_sanshuo_event(三说会堂事件类型表)】的数据库操作Mapper
* @createDate 2022-09-06 14:17:37
* @Entity generator.entity.ComSanshuoEvent
*/
@Mapper
public interface ComSanshuoEventDao extends BaseMapper<ComSanshuoEvent> {
    /**
     * 后台事件类型列表分页
     * */
    IPage<ComSanshuoEvent> pageEvent(Page page, @Param("comSanshuoEventDTO") ComSanshuoEventDTO comSanshuoEventDTO);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSanshuoExpertDao.java
New file
@@ -0,0 +1,62 @@
package com.panzhihua.service_community.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.common.model.vos.sanshuo.ComSanshuoExpertVO;
import com.panzhihua.common.model.vos.sanshuo.ExpertShowVO;
import com.panzhihua.service_community.entity.ComSanshuoExpert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author Frozen
* @description 针对表【com_sanshuo_expert(三说会堂专家表)】的数据库操作Mapper
* @createDate 2022-09-06 14:17:37
* @Entity generator.entity.ComSanshuoExpert
*/
@Mapper
public interface ComSanshuoExpertDao extends BaseMapper<ComSanshuoExpert> {
    /**
     * 后台获取专家列表
     * @param page
     * @param keyWord
     * @param range 数据范围:1街道下属/2社区下属/3业务中心下属/null三说会堂下属
     * @param id 社区或街道或业务中心id
     * @return 处理结果
     * */
    IPage<ComSanshuoExpertVO> expertPage(Page page, @Param("keyWord")String keyWord, @Param("range") Integer range, @Param("id")Long id);
    /**
     * 专家风采列表
     * */
    List<ExpertShowVO> expertShow();
    /**
     * 行业分中心分组专家
     * */
    List<ExpertShowVO> selectExpertIndustry();
    /**
     * 街道分组专家
     * */
    List<ExpertShowVO> selectExpertStreet();
    /**
     * 社区分组专家
     * */
    List<ExpertShowVO> selectExpertCommunity();
    /**
     * 小程序获取专家列表
     * */
    List<ComSanshuoExpert> selectExpertList();
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSanshuoIndustryCenterDao.java
New file
@@ -0,0 +1,43 @@
package com.panzhihua.service_community.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.common.model.vos.sanshuo.ComSanShuoIndustryCenterVO;
import com.panzhihua.common.model.vos.sanshuo.ExpertRangeVO;
import com.panzhihua.service_community.entity.ComSanshuoIndustryCenter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author Frozen
* @description 针对表【com_sanshuo_industry_center(三说会堂-行业分中心表)】的数据库操作Mapper
* @createDate 2022-09-06 14:17:37
* @Entity generator.entity.ComSanshuoIndustryCenter
*/
@Mapper
public interface ComSanshuoIndustryCenterDao extends BaseMapper<ComSanshuoIndustryCenter> {
    IPage<ComSanShuoIndustryCenterVO> pageIndustryCenter(Page page, @Param("keyWord") String keyWord);
    /**
     * 获取业务中心id,名称
     * */
    List<ExpertRangeVO> indstryList();
    /**
     * 街道id,名称
     * */
    List<ExpertRangeVO> streetList();
    /**
     * 社区id,名称
     * */
    List<ExpertRangeVO> communityList();
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComEvent.java
New file
@@ -0,0 +1,164 @@
package com.panzhihua.service_community.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.panzhihua.common.model.vos.sanshuo.ComEventRequestImageVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.Date;
import java.util.List;
/**
 * Description 三说会堂事件表
 * ClassName   ComEvent
 * @author     manailin
 * @date       2022-09-07 11:23:51
 */
@Data
@TableName("com_sanshuo_event_info")
public class ComEvent implements Serializable {
    private static final long serialVersionUID = 1L;
    /**主键*/
    @ApiModelProperty(name = "id", value = "主键")
    @TableId(type = IdType.INPUT)
    private Long id;
    /**服务单号(流水号)按照日期时间+数字*/
    @ApiModelProperty(name = "orderSn", value = "服务单号(流水号)按照日期时间+数字")
    private String orderSn;
    /**调解发起人ID*/
    @ApiModelProperty(name = "requestUserId", value = "调解发起人ID")
    private Long requestUserId;
    /**调解发起人操作事件状态(1草稿箱2发布3逻辑删除4、撤销)*/
    @ApiModelProperty(name = "userEventStatus", value = "调解发起人操作事件状态(1草稿箱2发布3逻辑删除4、撤销)")
    private Integer userEventStatus;
    /**调解发起人诉求事件描述*/
    @ApiModelProperty(name = "requestUserEventDes", value = "调解发起人诉求事件描述")
    private String requestUserEventDes;
    /**调解发起人姓名*/
    @ApiModelProperty(name = "requestUserName", value = "调解发起人姓名")
    private String requestUserName;
    /**调解发起人电话*/
    @ApiModelProperty(name = "requestUserTel", value = "调解发起人电话")
    private String requestUserTel;
    /**调解事件类型*/
    @ApiModelProperty(name = "eventCategory", value = "调解事件类型")
    private Long eventCategory;
    /**调解类型(1、行业分中心调解2、村社区调解3、是街道调解4、区)*/
    @ApiModelProperty(name = "type", value = "调解类型(1、行业分中心调解2、村社区调解3、是街道调解4、区)")
    private String type;
    /**上报提交时间*/
    @ApiModelProperty(name = "submitDate", value = "上报提交时间")
    private Date submitDate;
    /**选择预约调解时间*/
    @ApiModelProperty(name = "appointmentTime", value = "选择预约调解时间")
    private Date appointmentTime;
    /**申请人选择的社区ID*/
    @ApiModelProperty(name = "requestUserCommunity", value = "申请人选择的社区ID")
    private Long requestUserCommunity;
    /**行业分中心ID*/
    @ApiModelProperty(name = "centerId", value = "行业分中心ID")
    private String centerId;
    /**行业分中心调解室电话*/
    @ApiModelProperty(name = "centerTel", value = "行业分中心调解室电话")
    private String centerTel;
    /**调解专家所属单位*/
    @ApiModelProperty(name = "specialistOrg", value = "调解专家所属单位")
    private String specialistOrg;
    /**调解专家级别*/
    @ApiModelProperty(name = "specialistLevel", value = "调解专家级别")
    private String specialistLevel;
    /**选择调解专家ID*/
    @ApiModelProperty(name = "specialistId", value = "选择调解专家ID")
    private Long specialistId;
    /**调解专家名字*/
    @ApiModelProperty(name = "specialistName", value = "调解专家名字")
    private String specialistName;
    /**调解专家联系方式*/
    @ApiModelProperty(name = "specialistTel", value = "调解专家联系方式")
    private String specialistTel;
    /**专家受理时间*/
    @ApiModelProperty(name = "specialistAcceptTime", value = "专家受理时间")
    private Date specialistAcceptTime;
    /**撤销类型 1 用户 2 社区3、街道4、行业分中心*/
    @ApiModelProperty(name = "revokeType", value = "撤销类型 1 用户 2 社区3、街道4、行业分中心")
    private Integer revokeType;
    /**工作人员的事件处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案归档7调解取消*/
    @ApiModelProperty(name = "eventProcessStatus", value = "工作人员的事件处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案7已归档8调解取消9已删除")
    private Integer eventProcessStatus;
    /**当前处理对象类型(1、行业分中心2、社区3、是街道4、区)*/
    @ApiModelProperty(name = "currentProcessType", value = "当前处理对象类型(1、行业分中心2、社区3、是街道4、区)")
    private Integer currentProcessType;
    /**当前处理机构ID*/
    @ApiModelProperty(name = "currentOrgId", value = "当前处理机构ID")
    private String currentOrgId;
    /**当前处理机构ID*/
    @ApiModelProperty(name = "currentOrgName", value = "当前处理机构名称")
    private String currentOrgName;
    /**当前机构下处理人ID*/
    @ApiModelProperty(name = "currentProcessUserId", value = "当前机构下处理人ID")
    private Long currentProcessUserId;
    /**当前机构下处理人名称*/
    @ApiModelProperty(name = "currentProcessUserName", value = "当前机构下处理人名称")
    private String currentProcessUserName;
    /**撤销描述*/
    @ApiModelProperty(name = "revokeDes", value = "撤销描述")
    private String revokeDes;
    /**当前调解处理结果*/
    @ApiModelProperty(name = "currentEventProcessResult", value = "当前调解处理结果")
    private String currentEventProcessResult;
    /**调解是否成果1未成果2已成果*/
    @ApiModelProperty(name = "eventSucceed", value = "调解是否成果1未成功2已成功")
    private Integer eventSucceed;
    /**事件结果(1、调解失败2、调解成功)*/
    @ApiModelProperty(name = "eventResult", value = "事件结果(1、调解失败2、调解成功)")
    private Integer eventResult;
    /**当前处理人是否上报上级单位处理*/
    @ApiModelProperty(name = "reportSuperior", value = "当前处理人是否上报上级单位处理")
    private Boolean reportSuperior;
    /**归档结案报告*/
    @ApiModelProperty(name = "result", value = "归档结案报告")
    private String result;
    /**已归档处理完毕时间*/
    @ApiModelProperty(name = "resultDate", value = "已归档处理完毕时间")
    private Date resultDate;
    /**是否紧急*/
    @ApiModelProperty(name = "urgent", value = "是否紧急")
    private Boolean urgent;
    /**是否疑难事件*/
    @ApiModelProperty(name = "difficult", value = "是否疑难事件")
    private Boolean difficult;
    /**是否催办*/
    @ApiModelProperty(name = "urgentDell", value = "是否催办")
    private Boolean urgentDell;
    /**是否有效*/
    @ApiModelProperty(name = "invalid", value = "是否有效")
    private Boolean invalid;
    /**是否重大*/
    @ApiModelProperty(name = "major", value = "是否重大")
    private Boolean major;
    /**解决人针对解决事件的处理反馈描述*/
    @ApiModelProperty(name = "requestUserResponse", value = "解决人针对解决事件的处理反馈描述")
    private String requestUserResponse;
    /**创建人*/
    @ApiModelProperty(name = "createBy", value = "创建人")
    private Long createBy;
    /**创建时间*/
    @ApiModelProperty(name = "createAt", value = "创建时间")
    private Date createAt;
    /**修改人*/
    @ApiModelProperty(name = "updateBy", value = "修改人")
    private Long updateBy;
    /**修改时间*/
    @ApiModelProperty(name = "updateAt", value = "修改时间")
    private Date updateAt;
    /**调解上传图片地址列表,逗号进行分割*/
    @TableField(exist = false)
    @ApiModelProperty(name = "images", value = "调解上传图片地址列表,逗号进行分割")
    private List<ComEventRequestImageVO> images;
    @TableField(exist = false)
    private String icon;
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComEventResource.java
New file
@@ -0,0 +1,60 @@
package com.panzhihua.service_community.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.Date;
/**
 * Description 三说会堂事件关联图片资源表
 * ClassName   ComEventResource
 * @author     manailin
 * @date       2022-09-07 11:23:52
 */
@Data
@TableName("com_sanshuo_event_resource")
public class ComEventResource implements Serializable {
    private static final long serialVersionUID = 1L;
    /**主键*/
    @ApiModelProperty(name = "id", value = "主键")
    @TableId(type = IdType.INPUT)
    private Long id;
    /**事件关联ID*/
    @ApiModelProperty(name = "refId", value = "事件关联ID")
    private Long refId;
    /**事件流转ID*/
    @ApiModelProperty(name = "transferId", value = "事件流转ID")
    private Long transferId;
    /**1待处理2已受理3专家未受理4调解中5已归档6调解取消*/
    @ApiModelProperty(name = "status", value = "1待处理2已受理3专家未受理4调解中5已归档6调解取消")
    private Integer status;
    /**事件上传的资源类型(1是图片2是音频3是是视频)*/
    @ApiModelProperty(name = "type", value = "事件上传的资源类型(1是图片2是音频3是是视频)")
    private Integer type;
    /**资源名称*/
    @ApiModelProperty(name = "resourceName", value = "资源名称")
    private String resourceName;
    /**资源大小*/
    @ApiModelProperty(name = "resourceSize", value = "资源大小")
    private String resourceSize;
    /**视频或音频时长*/
    @ApiModelProperty(name = "resourceTime", value = "视频或音频时长")
    private Integer resourceTime;
    /**事件上传的资源URL地址*/
    @ApiModelProperty(name = "url", value = "事件上传的资源URL地址")
    private String url;
    /**上传人*/
    @ApiModelProperty(name = "createBy", value = "上传人")
    private Long createBy;
    /**创建时间*/
    @ApiModelProperty(name = "createAt", value = "创建时间")
    private Date createAt;
    /**删除标识(0:未删除,1:已删除)*/
    @ApiModelProperty(name = "deleteFlag", value = "删除标识(0:未删除,1:已删除)")
    private Boolean deleteFlag;
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComEventTransferRecord.java
New file
@@ -0,0 +1,104 @@
package com.panzhihua.service_community.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.panzhihua.common.model.vos.sanshuo.ComEventRequestImageVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.Date;
import java.util.List;
/**
 * Description 三说会堂事件流转表
 * ClassName   ComEventTransferRecord
 * @author     manailin
 * @date       2022-09-07 11:23:52
 */
@Data
@TableName("com_sanshuo_event_transfer_record")
public class ComEventTransferRecord implements Serializable {
    private static final long serialVersionUID = 1L;
    /**主键*/
    @ApiModelProperty(name = "id", value = "主键")
    private Long id;
    /**事件ID*/
    @ApiModelProperty(name = "eventId", value = "事件ID")
    private Long eventId;
    /**父级流转事件ID*/
    @ApiModelProperty(name = "parentsTransferEventId", value = "父级流转事件ID")
    private Long parentsTransferEventId;
    /**来源类型(1、行业分中心2、社区3、是街道4、区)*/
    @ApiModelProperty(name = "fromType", value = "来源类型(1、行业分中心2、社区3、是街道4、区)")
    private Integer fromType;
    /**(1、行业分中心2、社区3、是街道4、区)ID*/
    @ApiModelProperty(name = "fromId", value = "(1、行业分中心2、社区3、是街道4、区)ID")
    private Long fromId;
    /**(1、行业分中心2、社区3、是街道4、区)名称*/
    @ApiModelProperty(name = "fromName", value = "(1、行业分中心2、社区3、是街道4、区)名称")
    private String fromName;
    /**来源类型操作人ID*/
    @ApiModelProperty(name = "fromUserId", value = "来源类型操作人ID")
    private Long fromUserId;
    /**转交类型(1、行业分中心2、社区3、是街道4、区)*/
    @ApiModelProperty(name = "toType", value = "转交类型(1、行业分中心2、社区3、是街道4、区)")
    private Integer toType;
    /**接收(1、行业分中心2、社区3、是街道4、区)ID*/
    @ApiModelProperty(name = "toId", value = "接收(1、行业分中心2、社区3、是街道4、区)ID")
    private Long toId;
    /**接收(1、行业分中心2、社区3、是街道4、区)名称*/
    @ApiModelProperty(name = "toName", value = "接收(1、行业分中心2、社区3、是街道4、区)名称")
    private String toName;
    /**接收类型操作人ID(直接指派专家)*/
    @ApiModelProperty(name = "toUserId", value = "接收类型操作人ID(直接指派专家)")
    private Long toUserId;
    /**是否已归档*/
    @ApiModelProperty(name = "save", value = "是否已归档")
    private Boolean save;
    /**处理结果内容*/
    @ApiModelProperty(name = "processResult", value = "处理结果内容")
    private String processResult;
    /**处理结果时间*/
    @ApiModelProperty(name = "processResultData", value = "处理结果时间")
    private String processResultData;
    /**处理时间*/
    @ApiModelProperty(name = "processDate", value = "处理时间")
    private Date processDate;
    /**(1、行业分中心2、社区3、是街道4、区)下的处理人ID*/
    @ApiModelProperty(name = "processBy", value = "(1、行业分中心2、社区3、是街道4、区)下的处理人ID")
    private Long processBy;
    /**(1、行业分中心2、社区3、是街道4、区)下的处理人名称*/
    @ApiModelProperty(name = "processByName", value = "(1、行业分中心2、社区3、是街道4、区)下的处理人名称")
    private String processByName;
    /**业务处理类型 1 自处理 2 上报 3 社区标为无效4 撤销 5 重新发布已撤销事件6 重新发布已标为无效的事件*/
    @ApiModelProperty(name = "processType", value = "业务处理类型 1 自处理 2 上报 3 社区标为无效4 撤销 5 重新发布已撤销事件6 重新发布已标为无效的事件")
    private Integer processType;
    /**创建时间*/
    @ApiModelProperty(name = "createAt", value = "创建时间")
    private Date createAt;
    /**选择调解专家ID*/
    @ApiModelProperty(name = "specialistId", value = "选择调解专家ID")
    private Long specialistId;
    /**调解专家所属单位*/
    @ApiModelProperty(name = "specialistOrg", value = "调解专家所属单位")
    private String specialistOrg;
    /**调解专家级别*/
    @ApiModelProperty(name = "specialistLevel", value = "调解专家级别")
    private String specialistLevel;
    /**调解专家名字*/
    @ApiModelProperty(name = "specialistName", value = "调解专家名字")
    private String specialistName;
    /**调解结果(1、调解失败2、调解成功)*/
    @ApiModelProperty(name = "eventResult", value = "调解结果(1、调解失败2、调解成功)")
    private Integer eventResult;
    /**调解状态(1、调解未完成2、调解完成)*/
    @ApiModelProperty(name = "eventStatus", value = "调解状态(1、调解未完成2、调解完成)")
    private Integer eventStatus;
    /**
     * 调解上传图片地址列表,逗号进行分割
     */
    @ApiModelProperty(name = "images", value = "调解上传图片地址列表,逗号进行分割")
    @TableField(exist = false)
    private List<ComEventRequestImageVO> images;
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComMediateType.java
New file
@@ -0,0 +1,186 @@
package com.panzhihua.service_community.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
 * 事件调解类型表
 * @TableName com_mediate_type
 */
@TableName(value ="com_mediate_type")
@Data
@ApiModel("事件类型")
public class ComMediateType implements Serializable {
    /**
     * 主键
     */
    @TableId
    @ApiModelProperty("id,修改时传")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 类型名称
     */
    @ApiModelProperty("类型名称")
    private String name;
    /**
     * code码
     */
    @ApiModelProperty("code码")
    private String code;
    /**
     * 父id((根节点为0))
     */
    @ApiModelProperty("父id((根节点为0))")
    private Long parentId;
    /**
     * 路径(格式 : `pid1`pid2`id` )
     */
    @ApiModelProperty("路径(格式 : `pid1`pid2`id` )")
    private String pathId;
    /**
     * 所在层级
     */
    @ApiModelProperty("所在层级")
    private Integer levelIndex;
    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Integer sort;
    /**
     * 启用状态(0:停用,1:启用)
     */
    @ApiModelProperty("启用状态(0:停用,1:启用)")
    private Boolean enabled;
    /**
     * 备注说明
     */
    @ApiModelProperty("备注说明")
    private String remarks;
    /**
     * 创建者
     */
    @ApiModelProperty("创建者")
    private Long createUser;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createDate;
    /**
     * 修改者
     */
    @ApiModelProperty("修改者")
    private Long modifyUser;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date modifyDate;
    /**
     * 删除标识(0:未删除,1:已删除)
     */
    @ApiModelProperty("0:未删除,1:已删除")
    private Boolean deleteFlag;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
//    @Override
//    public boolean equals(Object that) {
//        if (this == that) {
//            return true;
//        }
//        if (that == null) {
//            return false;
//        }
//        if (getClass() != that.getClass()) {
//            return false;
//        }
//        ComMediateType other = (ComMediateType) that;
//        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
//            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
//            && (this.getKey() == null ? other.getKey() == null : this.getKey().equals(other.getKey()))
//            && (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
//            && (this.getPathId() == null ? other.getPathId() == null : this.getPathId().equals(other.getPathId()))
//            && (this.getLevelIndex() == null ? other.getLevelIndex() == null : this.getLevelIndex().equals(other.getLevelIndex()))
//            && (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort()))
//            && (this.getEnabled() == null ? other.getEnabled() == null : this.getEnabled().equals(other.getEnabled()))
//            && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()))
//            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
//            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
//            && (this.getModifyUser() == null ? other.getModifyUser() == null : this.getModifyUser().equals(other.getModifyUser()))
//            && (this.getModifyDate() == null ? other.getModifyDate() == null : this.getModifyDate().equals(other.getModifyDate()))
//            && (this.getDeleteFlag() == null ? other.getDeleteFlag() == null : this.getDeleteFlag().equals(other.getDeleteFlag()));
//    }
//
//    @Override
//    public int hashCode() {
//        final int prime = 31;
//        int result = 1;
//        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
//        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
//        result = prime * result + ((getKey() == null) ? 0 : getKey().hashCode());
//        result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
//        result = prime * result + ((getPathId() == null) ? 0 : getPathId().hashCode());
//        result = prime * result + ((getLevelIndex() == null) ? 0 : getLevelIndex().hashCode());
//        result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode());
//        result = prime * result + ((getEnabled() == null) ? 0 : getEnabled().hashCode());
//        result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
//        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
//        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
//        result = prime * result + ((getModifyUser() == null) ? 0 : getModifyUser().hashCode());
//        result = prime * result + ((getModifyDate() == null) ? 0 : getModifyDate().hashCode());
//        result = prime * result + ((getDeleteFlag() == null) ? 0 : getDeleteFlag().hashCode());
//        return result;
//    }
//
//    @Override
//    public String toString() {
//        StringBuilder sb = new StringBuilder();
//        sb.append(getClass().getSimpleName());
//        sb.append(" [");
//        sb.append("Hash = ").append(hashCode());
//        sb.append(", id=").append(id);
//        sb.append(", name=").append(name);
//        sb.append(", key=").append(key);
//        sb.append(", parentId=").append(parentId);
//        sb.append(", pathId=").append(pathId);
//        sb.append(", levelIndex=").append(levelIndex);
//        sb.append(", sort=").append(sort);
//        sb.append(", enabled=").append(enabled);
//        sb.append(", remarks=").append(remarks);
//        sb.append(", createUser=").append(createUser);
//        sb.append(", createDate=").append(createDate);
//        sb.append(", modifyUser=").append(modifyUser);
//        sb.append(", modifyDate=").append(modifyDate);
//        sb.append(", deleteFlag=").append(deleteFlag);
//        sb.append(", serialVersionUID=").append(serialVersionUID);
//        sb.append("]");
//        return sb.toString();
//    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComSanshuoEvent.java
New file
@@ -0,0 +1,114 @@
package com.panzhihua.service_community.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
 * 三说会堂事件类型表
 * @TableName com_sanshuo_event
 */
@TableName(value ="com_sanshuo_event")
@Data
@ApiModel("三说会堂事件类型")
public class ComSanshuoEvent implements Serializable {
    /**
     * id
     */
    @ApiModelProperty("id,修改时传")
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer id;
    /**
     * 事件类型名称
     */
    @ApiModelProperty("事件类型名称")
    private String name;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date updateTime;
    /**
     * 0禁用1启用
     */
    @ApiModelProperty("0禁用1启用")
    private Integer status;
    /**
     * 0删除1正常
     */
    @ApiModelProperty("0删除1正常")
    private Integer delFlag;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ComSanshuoEvent other = (ComSanshuoEvent) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag()));
    }
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().hashCode());
        return result;
    }
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", status=").append(status);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComSanshuoExpert.java
New file
@@ -0,0 +1,223 @@
package com.panzhihua.service_community.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
 * 三说会堂专家表
 * @TableName com_sanshuo_expert
 */
@TableName(value ="com_sanshuo_expert")
@Data
public class ComSanshuoExpert implements Serializable {
    /**
     * id
     */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 专家级别(1三说会堂2行业分中心3街道4社区)
     */
    private Integer level;
    /**
     * 所属社区id
     */
    private Long communityId;
    /**
     * 工作时间
     */
    private String workTime;
    /**
     * 擅长解决时间类型
     */
    private String goodAt;
    /**
     * 姓名
     */
    private String name;
    /**
     * 头像
     */
    private String avatar;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 登陆账号
     */
    private String account;
    /**
     * 登陆密码
     */
    private String password;
    /**
     * 0禁用1启用
     */
    private Integer status;
    /**
     * 删除状态0已删除1正常
     */
    private Integer delFlag;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建人
     */
    private String createBy;
    /**
     * 修改时间
     */
    private Date updateTime;
    /**
     * 介绍信息
     */
    private String introduction;
    /**
     * 所属街道id
     */
    private Long streetId;
    /**
     * 行业分中心id
     */
    private Long industryCenterId;
    /**
     * 备用字段1
     */
    private String param1;
    /**
     * 所属单位
     */
    private String unit;
    @TableField(exist = false)
    private Integer count;
    @TableField(exist = false)
    private BigDecimal rate;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ComSanshuoExpert other = (ComSanshuoExpert) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
            && (this.getCommunityId() == null ? other.getCommunityId() == null : this.getCommunityId().equals(other.getCommunityId()))
            && (this.getWorkTime() == null ? other.getWorkTime() == null : this.getWorkTime().equals(other.getWorkTime()))
            && (this.getGoodAt() == null ? other.getGoodAt() == null : this.getGoodAt().equals(other.getGoodAt()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getAvatar() == null ? other.getAvatar() == null : this.getAvatar().equals(other.getAvatar()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getAccount() == null ? other.getAccount() == null : this.getAccount().equals(other.getAccount()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getIntroduction() == null ? other.getIntroduction() == null : this.getIntroduction().equals(other.getIntroduction()))
            && (this.getStreetId() == null ? other.getStreetId() == null : this.getStreetId().equals(other.getStreetId()))
            && (this.getIndustryCenterId() == null ? other.getIndustryCenterId() == null : this.getIndustryCenterId().equals(other.getIndustryCenterId()))
            && (this.getParam1() == null ? other.getParam1() == null : this.getParam1().equals(other.getParam1()))
            && (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit()));
    }
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode());
        result = prime * result + ((getCommunityId() == null) ? 0 : getCommunityId().hashCode());
        result = prime * result + ((getWorkTime() == null) ? 0 : getWorkTime().hashCode());
        result = prime * result + ((getGoodAt() == null) ? 0 : getGoodAt().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getAvatar() == null) ? 0 : getAvatar().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getAccount() == null) ? 0 : getAccount().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getIntroduction() == null) ? 0 : getIntroduction().hashCode());
        result = prime * result + ((getStreetId() == null) ? 0 : getStreetId().hashCode());
        result = prime * result + ((getIndustryCenterId() == null) ? 0 : getIndustryCenterId().hashCode());
        result = prime * result + ((getParam1() == null) ? 0 : getParam1().hashCode());
        result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode());
        return result;
    }
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", level=").append(level);
        sb.append(", communityId=").append(communityId);
        sb.append(", workTime=").append(workTime);
        sb.append(", goodAt=").append(goodAt);
        sb.append(", name=").append(name);
        sb.append(", avatar=").append(avatar);
        sb.append(", phone=").append(phone);
        sb.append(", account=").append(account);
        sb.append(", password=").append(password);
        sb.append(", status=").append(status);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", createTime=").append(createTime);
        sb.append(", createBy=").append(createBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", introduction=").append(introduction);
        sb.append(", streetId=").append(streetId);
        sb.append(", industryCenterId=").append(industryCenterId);
        sb.append(", param1=").append(param1);
        sb.append(", unit=").append(unit);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComSanshuoIndustryCenter.java
New file
@@ -0,0 +1,144 @@
package com.panzhihua.service_community.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
 * 三说会堂-行业分中心表
 * @TableName com_sanshuo_industry_center
 */
@TableName(value ="com_sanshuo_industry_center")
@Data
public class ComSanshuoIndustryCenter implements Serializable {
    /**
     * id
     */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 行业分中心名称
     */
    private String name;
    /**
     * 调解室电话
     */
    private String phone;
    /**
     * 登录账号
     */
    private String account;
    /**
     * 创建人
     */
    private String createBy;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date updateTime;
    /**
     * 状态0禁用1启用
     */
    private Integer status;
    /**
     * 0删除1正常
     */
    private Integer delFlag;
    /**
     * 所属街道id
     */
    private Long streetId;
    /**
     * 所属社区id
     */
    private Long communityId;
    private String password;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ComSanshuoIndustryCenter other = (ComSanshuoIndustryCenter) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getAccount() == null ? other.getAccount() == null : this.getAccount().equals(other.getAccount()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag()))
            && (this.getStreetId() == null ? other.getStreetId() == null : this.getStreetId().equals(other.getStreetId()))
            && (this.getCommunityId() == null ? other.getCommunityId() == null : this.getCommunityId().equals(other.getCommunityId()));
    }
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getAccount() == null) ? 0 : getAccount().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().hashCode());
        result = prime * result + ((getStreetId() == null) ? 0 : getStreetId().hashCode());
        result = prime * result + ((getCommunityId() == null) ? 0 : getCommunityId().hashCode());
        return result;
    }
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", phone=").append(phone);
        sb.append(", account=").append(account);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", status=").append(status);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", streetId=").append(streetId);
        sb.append(", communityId=").append(communityId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActDO.java
@@ -117,4 +117,6 @@
    private String appId;
    private String solvePhone;
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComStreetDO.java
@@ -65,4 +65,12 @@
    @TableField(fill = FieldFill.INSERT)
    private Date createAt;
    /**
     * 调节站电话
     * */
    private String solvePhone;
    private Integer status;
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/schedule/AcidSchedule.java
@@ -33,19 +33,19 @@
    @Resource
    private ComActAcidRecordDao comActAcidRecordDao;
    @Scheduled(cron = "0 0 9 * * *")
    public void push(){
       List<ComActAcidMemberVO> comActAcidMemberList=comActAcidMemberDao.selectPushList("");
       comActAcidMemberList.forEach(comActAcidMember -> {
           FiveCount fiveCount=comActAcidRecordDao.pushStatics(DateUtils.getDateFormatString(DateUtils.addDay(new Date(),-1),"yyyy-MM-dd"),comActAcidMember.getRelationName());
           WxXCXTempSend util = new WxXCXTempSend();
           String accessToken = null;
           try {
               accessToken = util.getAccessToken();
           } catch (Exception e) {
               e.printStackTrace();
           }
           WxUtil.sendSubscribeStatics(comActAcidMember.getOpenid(), accessToken, fiveCount, "Yr5idSziLRiRo0t07mcz284sMm41Kr2KsA5UmSc0jWU");
       });
    }
//    @Scheduled(cron = "0 0 9 * * *")
//    public void push(){
//       List<ComActAcidMemberVO> comActAcidMemberList=comActAcidMemberDao.selectPushList("");
//       comActAcidMemberList.forEach(comActAcidMember -> {
//           FiveCount fiveCount=comActAcidRecordDao.pushStatics(DateUtils.getDateFormatString(DateUtils.addDay(new Date(),-1),"yyyy-MM-dd"),comActAcidMember.getRelationName());
//           WxXCXTempSend util = new WxXCXTempSend();
//           String accessToken = null;
//           try {
//               accessToken = util.getAccessToken();
//           } catch (Exception e) {
//               e.printStackTrace();
//           }
//           WxUtil.sendSubscribeStatics(comActAcidMember.getOpenid(), accessToken, fiveCount, "Yr5idSziLRiRo0t07mcz284sMm41Kr2KsA5UmSc0jWU");
//       });
//    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSanShuoEventService.java
New file
@@ -0,0 +1,25 @@
package com.panzhihua.service_community.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoEventDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.entity.ComSanshuoEvent;
import java.util.List;
public interface ComSanShuoEventService  extends IService<ComSanshuoEvent> {
    /**
     * 添加或修改事件类型
     * @param comSanshuoEvent
     * @return  处理结果
     * */
    R addOrUpdate(ComSanshuoEvent comSanshuoEvent);
    /**
     * 后台获取事件类型列表
     * @param comSanshuoEventDTO
     * @return  处理结果
     * */
    R backStageList(ComSanshuoEventDTO comSanshuoEventDTO);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSanShuoExpertService.java
New file
@@ -0,0 +1,48 @@
package com.panzhihua.service_community.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoExpertDTO;
import com.panzhihua.common.model.vos.LoginUserInfoVO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.entity.ComSanshuoExpert;
import javax.annotation.Resource;
public interface ComSanShuoExpertService extends IService<ComSanshuoExpert> {
    /**
     * 添加专家
     * @param comSanshuoExpertDTO
     * @return 处理结果
     * */
    R addExpert(ComSanshuoExpertDTO comSanshuoExpertDTO);
    /**
     * 后台获取专家列表
     * @param page
     * @param keyWord
     * @param size
     * @return 处理结果
     * */
    R expertPage(String keyWord, Integer page, Integer size, LoginUserInfoVO loginUserInfo);
    /**
     * 专家风采列表
     * @return 出列记过
     * */
    R expertShow();
    /**
     * 专家级别与单位范围
     * */
    R expertRange(LoginUserInfoVO loginUserInfo);
    /**
     * 小程序获取专家列表
     * */
    R selectExpertList();
    /**
     * 专家风采列表
     * */
    R expertShowList(Integer level, Long id);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSanShuoIndustryCenterService.java
New file
@@ -0,0 +1,27 @@
package com.panzhihua.service_community.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanShuoIndustryCenterDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.entity.ComSanshuoIndustryCenter;
public interface ComSanShuoIndustryCenterService extends IService<ComSanshuoIndustryCenter> {
    /**
     * 后台业务中心列表
     * @param keyWord 搜索关键字
     * @param page
     * @param size
     * @return 处理结果
     * */
    R pageIndustryCenter(String keyWord, Integer page, Integer size);
    /**
     * 添加或修改业务中心信息
     * @param comSanShuoIndustryCenterDTO
     * @return 处理结果
     * */
    R addOrUpdate(ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO);
    R resetPassword(ComSanshuoIndustryCenter center);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComStreetService.java
@@ -4,6 +4,7 @@
import com.panzhihua.common.model.dtos.community.PageComStreetDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.community.ComActVO;
import com.panzhihua.common.model.vos.community.ComStreetVO;
/**
@@ -55,4 +56,30 @@
     * @return 删除结果
     */
    R delectStreat(List<Long> Ids);
    /**
     * 修改街道信息
     * @param comStreetVO 街道信息
     * */
    R update(ComStreetVO comStreetVO);
    /**
     * 删除街道
     * */
    R remove(Long id);
    /**
     * 删除社区
     * */
    R removeCommunity(Long id);
    /**
     * 重置社区密码
     * */
    R repassCommunity(ComActVO comActVO);
    /**
     * 重置街道密码
     * */
    R repssStreet(ComStreetVO comActVO);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/CommediateTypeService.java
New file
@@ -0,0 +1,26 @@
package com.panzhihua.service_community.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.panzhihua.common.model.dtos.community.sanshuo.ComMediateTypeDTO;
import com.panzhihua.common.model.dtos.community.sanshuo.IndexDateDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.entity.ComMediateType;
public interface CommediateTypeService extends IService<ComMediateType> {
    /**
     * 后台获取事件列表
     * @param keyWord
     * @param page
     * @param size
     * @return 处理结果
     * */
    R listEvent(String keyWord, Integer page, Integer size);
    /**
     * 新增或修改事件类型
     * @param comMediateTypeDTO
     * @return 处理结果
     * */
    R addOrUpdate(ComMediateTypeDTO comMediateTypeDTO);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/IComEventResourceService.java
New file
@@ -0,0 +1,70 @@
package com.panzhihua.service_community.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.entity.ComEventResource;
import java.util.List;
/**
 * Description  三说会堂事件关联图片资源表业务层接口
 * ClassName    IComEventResourceService
 *
 * @author manailin
 * @date 2022-09-07 11:23:52
 */
public interface IComEventResourceService extends IService<ComEventResource> {
    /**
     * description 新增三说会堂事件关联图片资源表
     *
     * @param comEventResource 接口管理对象
     * @return R  数据结果
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    R insertComEventResource(ComEventResource comEventResource);
    /**
     * description 更新三说会堂事件关联图片资源表
     *
     * @param comEventResource 接口管理对象
     * @return R  数据结果
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    R updateComEventResource(ComEventResource comEventResource);
    /**
     * description 三说会堂事件关联图片资源表分页列表数据
     *
     * @param comEventResource 接口管理对象
     * @param pagination       分页对象
     * @return R  分页数据结果
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    R pageByComEventResource(ComEventResource comEventResource, Page pagination);
    /**
     * description 三说会堂事件关联图片资源表列表数据
     *
     * @param comEventResource 接口管理对象
     * @return R  数据结果
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    List<ComEventResource> listByComEventResource(ComEventResource comEventResource);
    /**
     * description 修改三说会堂事件关联图片资源表状态
     *
     * @param id      主键id
     * @param enabled 状态(TRUE、FALSE)
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    R updateEnabled(Long id, Boolean enabled);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/IComEventService.java
New file
@@ -0,0 +1,100 @@
package com.panzhihua.service_community.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.panzhihua.common.model.dtos.community.sanshuo.IndexDateDTO;
import com.panzhihua.common.model.vos.LoginUserInfoVO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.sanshuo.ComEventArchiveVO;
import com.panzhihua.common.model.vos.sanshuo.ComEventConciliationVO;
import com.panzhihua.service_community.entity.ComEvent;
import java.util.HashMap;
import java.util.List;
/**
 * Description  三说会堂事件表业务层接口
 * ClassName    IComEventService
 *
 * @author manailin
 * @date 2022-09-07 11:23:51
 */
public interface IComEventService extends IService<ComEvent> {
    /**
     * description 新增三说会堂事件表
     *
     * @param comEvent 接口管理对象
     * @return R  数据结果
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    R insertComEvent(ComEvent comEvent);
    /**
     * description 更新三说会堂事件表
     *
     * @param comEvent 接口管理对象
     * @return R  数据结果
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    R updateComEvent(ComEvent comEvent);
    /**
     * description 三说会堂事件表分页列表数据
     *
     * @param comEvent   接口管理对象
     * @param pagination 分页对象
     * @return R  分页数据结果
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    R<List<ComEvent>> pageByComEvent(ComEvent comEvent, Page pagination);
    /**
     * description 三说会堂事件表列表数据
     *
     * @param comEvent 接口管理对象
     * @return R  数据结果
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    List<ComEvent> listByComEvent(ComEvent comEvent);
    /**
     * description 修改三说会堂事件表状态
     *
     * @param id      主键id
     * @param enabled 状态(TRUE、FALSE)
     * @return Result  修改成功和失败
     * @author manailin
     * @date 2022-09-07 11:23:51
     */
    R updateEnabled(Long id, Boolean enabled);
    R conciliationEvent(ComEventConciliationVO comEventConciliationVO, LoginUserInfoVO loginUserInfo);
    R cancelRequest(Long id );
    HashMap detail(String id);
    R acceptRequest(Long id,Long specterId);
    R reappoint(Long id, Long specialistId);
    R calculate();
    R archiveRequest(ComEventArchiveVO comEventArchiveVO, LoginUserInfoVO sysUser);
    /**
     * 大屏事件统计
     * @param indexDataDTO  查询入参
     * */
    R indexData(IndexDateDTO indexDataDTO);
    /**
     * 大屏事件统计
     * */
    R eventIndexData(Integer type);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/IComEventTransferRecordService.java
New file
@@ -0,0 +1,60 @@
package com.panzhihua.service_community.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.entity.ComEventTransferRecord;
import java.util.List;
/**
 * Description  三说会堂事件流转表业务层接口
 * ClassName    IComEventTransferRecordService
 *
 * @author manailin
 * @date 2022-09-07 11:23:52
 */
public interface IComEventTransferRecordService extends IService<ComEventTransferRecord> {
    /**
     * description 新增三说会堂事件流转表
     *
     * @param comEventTransferRecord 接口管理对象
     * @return R  数据结果
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    R insertComEventTransferRecord(ComEventTransferRecord comEventTransferRecord);
    /**
     * description 更新三说会堂事件流转表
     *
     * @param comEventTransferRecord 接口管理对象
     * @return R  数据结果
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    R updateComEventTransferRecord(ComEventTransferRecord comEventTransferRecord);
    /**
     * description 三说会堂事件流转表分页列表数据
     *
     * @param comEventTransferRecord 接口管理对象
     * @param pagination             分页对象
     * @return R  分页数据结果
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    R pageByComEventTransferRecord(ComEventTransferRecord comEventTransferRecord, Page pagination);
    /**
     * description 三说会堂事件流转表列表数据
     *
     * @param comEventTransferRecord 接口管理对象
     * @return R  数据结果
     * @author manailin
     * @date 2022-09-07 11:23:52
     */
    List<ComEventTransferRecord> listByComEventTransferRecord(ComEventTransferRecord comEventTransferRecord);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventResourceServiceImpl.java
New file
@@ -0,0 +1,80 @@
package com.panzhihua.service_community.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.panzhihua.common.constants.ReturnMsgConstants;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.utlis.Snowflake;
import com.panzhihua.service_community.dao.ComEventResourceMapper;
import com.panzhihua.service_community.entity.ComEventResource;
import com.panzhihua.service_community.service.IComEventResourceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Collections;
import java.util.Date;
import java.util.List;
/**
 * Description 三说会堂事件关联图片资源表业务层实现类
 * ClassName   ComEventResourceServiceImpl
 *
 * @author manailin
 * @date 2022-09-07 11:23:52
 */
@Slf4j
@Service("comEventResourceService")
public class ComEventResourceServiceImpl extends ServiceImpl<ComEventResourceMapper, ComEventResource> implements IComEventResourceService {
    @Override
    public R pageByComEventResource(ComEventResource comEventResource, Page pagination) {
        IPage<ComEventResource> list = baseMapper.pageByComEventResource(comEventResource, pagination);
        if (list.getRecords().size() < 1) {
            return R.ok(Collections.emptyList());
        }
        return R.ok(list);
    }
    @Override
    public List<ComEventResource> listByComEventResource(ComEventResource comEventResource) {
        List<ComEventResource> list = baseMapper.listByComEventResource(comEventResource);
        if (list.size() < 1) {
            return Collections.emptyList();
        }
        return list;
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public R insertComEventResource(ComEventResource comEventResource) {
        comEventResource.setId(Snowflake.getId());
        comEventResource.setCreateAt(new Date());
        boolean flag = save(comEventResource);
        if (!flag) {
            return R.fail(ReturnMsgConstants.DATA_EXIST);
        }
        return R.ok(ReturnMsgConstants.SAVE_SUCCESS);
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public R updateComEventResource(ComEventResource comEventResource) {
        int flag = baseMapper.updateById(comEventResource);
        return flag > 0 ? R.ok(comEventResource, ReturnMsgConstants.UPDATE_SUCCESS) : R.fail(ReturnMsgConstants.UPDATE_FALSE);
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public R updateEnabled(Long id, Boolean enabled) {
        ComEventResource comEventResource = baseMapper.selectById(id);
        if (comEventResource == null) {
            return R.fail(ReturnMsgConstants.DATA_NOT_EXIST);
        }
        comEventResource.setDeleteFlag(enabled);
        Boolean flag = updateById(comEventResource);
        return flag ? R.ok(comEventResource, ReturnMsgConstants.UPDATE_SUCCESS) : R.fail(ReturnMsgConstants.UPDATE_FALSE);
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java
New file
@@ -0,0 +1,475 @@
package com.panzhihua.service_community.service.impl;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.NumberUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.panzhihua.common.constants.ReturnMsgConstants;
import com.panzhihua.common.enums.SanShuoEventStatusEnum;
import com.panzhihua.common.model.dtos.community.sanshuo.IndexDateDTO;
import com.panzhihua.common.model.vos.LoginUserInfoVO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.sanshuo.*;
import com.panzhihua.common.service.user.UserService;
import com.panzhihua.common.utlis.CopyUtil;
import com.panzhihua.common.utlis.DateUtils;
import com.panzhihua.common.utlis.Snowflake;
import com.panzhihua.common.utlis.StringUtils;
import com.panzhihua.service_community.dao.ComActDAO;
import com.panzhihua.service_community.dao.ComEventMapper;
import com.panzhihua.service_community.dao.ComStreetDAO;
import com.panzhihua.service_community.entity.*;
import com.panzhihua.service_community.model.dos.ComActDO;
import com.panzhihua.service_community.model.dos.ComStreetDO;
import com.panzhihua.service_community.service.*;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.RandomUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.*;
import static java.util.Objects.nonNull;
/**
 * Description 三说会堂事件表业务层实现类
 * ClassName   ComEventServiceImpl
 *
 * @author manailin
 * @date 2022-09-07 11:23:51
 */
@Slf4j
@Service("comEventService")
public class ComEventServiceImpl extends ServiceImpl<ComEventMapper, ComEvent> implements IComEventService {
    @Resource
    private IComEventTransferRecordService comEventTransferRecordService;
    @Resource
    private ComSanShuoExpertService comSanShuoExpertService;
    @Resource
    private IComEventResourceService comEventResourceService;
    @Resource
    private ComActDAO comActDAO;
    @Resource
    private ComStreetDAO comStreetDAO;
    @Resource
    private ComSanShuoIndustryCenterService comSanShuoIndustryCenterService;
    @Resource
    private ComEventMapper comEventMapper;
    @Resource
    private UserService userService;
    @Override
    public R pageByComEvent(ComEvent comEvent, Page pagination) {
        IPage<ComEvent> list = baseMapper.pageByComEvent(comEvent, pagination);
        if (list.getRecords().size() < 1) {
            return R.ok(Collections.emptyList());
        }
        list.getRecords().forEach(comEvent1 -> {
            List<ComEventResource> resourceList = comEventResourceService.list(new QueryWrapper<ComEventResource>().lambda().eq(ComEventResource::getRefId, comEvent1.getId()));
            List<ComEventRequestImageVO> comEventRequestImageVO = CopyUtil.deepCopyListObject(resourceList, ComEventRequestImageVO.class);
            comEvent1.setImages(comEventRequestImageVO);
            comEvent1.setIcon(userService.getUserInfoByUserId(comEvent1.getRequestUserId().toString()).getData().getImageUrl());
        });
        return R.ok(list);
    }
    @Override
    public List<ComEvent> listByComEvent(ComEvent comEvent) {
        List<ComEvent> list = baseMapper.listByComEvent(comEvent);
        if (list.size() < 1) {
            return Collections.emptyList();
        }
        return list;
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public R insertComEvent(ComEvent comEvent) {
        ComSanshuoExpert expert = comSanShuoExpertService.getById(comEvent.getSpecialistId());
        if (comEvent.getRequestUserCommunity() != null) {
            ComActDO community = comActDAO.selectById(comEvent.getRequestUserCommunity());
            comEvent.setCurrentOrgName(community.getName());
        }
        if (!StringUtils.isEmpty(comEvent.getCenterId())) {
            ComSanshuoIndustryCenter center = comSanShuoIndustryCenterService.getById(comEvent.getCenterId());
            comEvent.setCurrentOrgName(center.getName());
        }
        comEvent.setUserEventStatus(2);
        comEvent.setEventProcessStatus(SanShuoEventStatusEnum.UNDO.getCode());
        comEvent.setSpecialistName(expert.getName());
        comEvent.setOrderSn(DateUtils.getDateFormatString(new Date(), "yyyyMMddHHmmss") + RandomUtils.nextLong(1, 10000));
        comEvent.setInvalid(true);
        comEvent.setId(Snowflake.getId());
        comEvent.setSubmitDate(new Date());
        comEvent.setCreateAt(new Date());
        comEvent.setCreateBy(comEvent.getRequestUserId());
        comEvent.setUpdateBy(comEvent.getRequestUserId());
        comEvent.setUpdateAt(new Date());
        boolean flag = save(comEvent);
        if (!flag) {
            return R.fail(ReturnMsgConstants.DATA_EXIST);
        }
        saveEventImageList(comEvent.getImages(), comEvent.getId(),null,1);
        return R.ok(ReturnMsgConstants.SAVE_SUCCESS);
    }
    @Transactional(rollbackFor = Exception.class)
    public Boolean saveEventImageList(List<ComEventRequestImageVO> images, Long id,Long transferId,Integer status) {
        List<ComEventResource> comEventResourceList = new ArrayList<>();
        if (!StringUtils.isEmpty(images)) {
            List<ComEventRequestImageVO> imagesList = images;
            imagesList.forEach(comEventRequestImageVO -> {
                ComEventResource comEventResource = new ComEventResource();
                comEventResource.setId(Snowflake.getId());
                comEventResource.setRefId(id);
                comEventResource.setTransferId(transferId);
                comEventResource.setStatus(status);
                comEventResource.setType(1);
                comEventResource.setResourceName(comEventRequestImageVO.getName());
                comEventResource.setResourceSize(comEventRequestImageVO.getSize());
                comEventResource.setUrl(comEventRequestImageVO.getUrl());
                comEventResource.setDeleteFlag(false);
                comEventResourceList.add(comEventResource);
            });
        }
        return comEventResourceService.saveBatch(comEventResourceList);
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public R updateComEvent(ComEvent comEvent) {
/*        if (checkExist(comEvent.getOrderSn(), comEvent.getId())) {
            return R.fail(ReturnMsgConstants.DATA_EXIST);
        }*/
        int flag = baseMapper.updateById(comEvent);
        return flag > 0 ? R.ok(comEvent, ReturnMsgConstants.UPDATE_SUCCESS) : R.fail(ReturnMsgConstants.UPDATE_FALSE);
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public R updateEnabled(Long id, Boolean enabled) {
        ComEvent comEvent = baseMapper.selectById(id);
        if (comEvent == null) {
            return R.fail(ReturnMsgConstants.DATA_NOT_EXIST);
        }
        comEvent.setInvalid(enabled);
        Boolean flag = updateById(comEvent);
        return flag ? R.ok(comEvent, ReturnMsgConstants.UPDATE_SUCCESS) : R.fail(ReturnMsgConstants.UPDATE_FALSE);
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public R conciliationEvent(ComEventConciliationVO comEventConciliationVO, LoginUserInfoVO loginUserInfo) {
        saveEventImageList(comEventConciliationVO.getImages(), comEventConciliationVO.getId(),null,4);
        ComEvent comEvent = baseMapper.selectById(comEventConciliationVO.getId());
        comEvent.setEventSucceed(comEventConciliationVO.getEventSucceed());
        comEvent.setEventResult(comEventConciliationVO.getEventResult());
        comEvent.setReportSuperior(comEventConciliationVO.getReportSuperior());
        if(comEventConciliationVO.getEventSucceed() ==2){
            comEvent.setEventProcessStatus(6);
        }
        comEvent.setCurrentEventProcessResult(comEventConciliationVO.getCurrentEventProcessResult());
        //如果当前请求,需要上报上级进行处理
        if (comEventConciliationVO.getReportSuperior()) {
            if (comEvent.getCurrentProcessType() == 2) {
                //查询街道的账号
                comEvent.setCurrentProcessType(3);
                ComActDO comActDO = comActDAO.selectById(comEvent.getCurrentOrgId());
                comEvent.setCurrentOrgId(comActDO.getStreetId().toString());
            } else {
                //查询街道的上级区域账号
                comEvent.setCurrentProcessType(4);
                try {
                    ComStreetDO street = comStreetDAO.selectById(comEvent.getCurrentOrgId());
                    comEvent.setCurrentOrgId(street.getAreaCode().toString());
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }
        int flag = baseMapper.updateById(comEvent);
        ComEventTransferRecord comEventTransferRecord = new ComEventTransferRecord();
        comEventTransferRecord.setEventId(comEvent.getId());
        comEventTransferRecord.setSave(true);
        comEventTransferRecord.setProcessResult(comEvent.getCurrentEventProcessResult());
        comEventTransferRecord.setProcessResultData(new Date().toString());
        comEventTransferRecord.setProcessDate(new Date());
        comEventTransferRecord.setProcessBy(loginUserInfo.getUserId());
        comEventTransferRecord.setProcessByName(loginUserInfo.getName());
        comEventTransferRecord.setProcessType(1);
        comEventTransferRecord.setCreateAt(new Date());
        comEventTransferRecord.setSpecialistId(comEvent.getSpecialistId());
        comEventTransferRecord.setSpecialistOrg(comEvent.getCurrentOrgId());
        comEventTransferRecord.setSpecialistLevel(comEvent.getSpecialistLevel());
        comEventTransferRecord.setSpecialistName(comEvent.getSpecialistName());
        comEventTransferRecord.setEventResult(comEvent.getEventSucceed());
        comEventTransferRecord.setEventStatus(comEvent.getEventProcessStatus());
        saveEventImageList(comEvent.getImages(),comEvent.getId(),comEventTransferRecord.getId(),4);
        comEventTransferRecordService.insertComEventTransferRecord(comEventTransferRecord);
        return flag > 0 ? R.ok() : R.fail(ReturnMsgConstants.UPDATE_FALSE);
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public R cancelRequest(Long id) {
        ComEvent comEvent = baseMapper.selectById(id);
        if (comEvent.getEventProcessStatus() == SanShuoEventStatusEnum.UNDO.getCode().intValue()
                || comEvent.getEventProcessStatus() == SanShuoEventStatusEnum.VALID.getCode().intValue()) {
            comEvent.setId(id);
            comEvent.setUserEventStatus(4);
            comEvent.setEventProcessStatus(SanShuoEventStatusEnum.CANCEL.getCode());
            comEvent.setRevokeDes("用户手动取消");
            int flag = baseMapper.updateById(comEvent);
            return flag > 0 ? R.ok() : R.fail(ReturnMsgConstants.UPDATE_FALSE);
        } else {
            return R.fail("当前申请已经受理,不能取消!");
        }
    }
    @Override
    public HashMap detail(String id) {
        HashMap map = new HashMap(3);
        ComEventDetailVO comEventDetailVO = new ComEventDetailVO();
        ComEvent comEvent = baseMapper.selectById(id);
        ComSanshuoExpert specter = comSanShuoExpertService.getById(comEvent.getSpecialistId());
        CopyUtil.copyProperties(comEvent, comEventDetailVO);
        List<ComEventResource> resourceList = comEventResourceService.list(new QueryWrapper<ComEventResource>().lambda().eq(ComEventResource::getRefId, id)
                .eq(ComEventResource::getStatus,1));
        List<ComEventRequestImageVO> comEventRequestImageVO = CopyUtil.deepCopyListObject(resourceList, ComEventRequestImageVO.class);
        comEventDetailVO.setImages(comEventRequestImageVO);
        map.put("specter", specter);
        map.put("eventDetail", comEventDetailVO);
        List<ComEventTransferRecord> transferRecord = comEventTransferRecordService.list(new QueryWrapper<ComEventTransferRecord>().lambda().eq(ComEventTransferRecord::getEventId, id));
        transferRecord.forEach(comEventTransferRecord -> {
            List<ComEventResource> list = comEventResourceService.list(new QueryWrapper<ComEventResource>().lambda().eq(ComEventResource::getTransferId, comEventTransferRecord.getId()));
            List<ComEventRequestImageVO> ImageVO = CopyUtil.deepCopyListObject(list, ComEventRequestImageVO.class);
            comEventTransferRecord.setImages(ImageVO);
        });
        map.put("transferLog", transferRecord);
        List<ComEventResource> resource = comEventResourceService.list(new QueryWrapper<ComEventResource>().lambda().eq(ComEventResource::getRefId, id)
                .eq(ComEventResource::getStatus, 5));
        map.put("archiveImage", resource);
        return map;
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public R acceptRequest(Long id, Long specterId) {
        ComEvent comEvent = new ComEvent();
        comEvent.setId(id);
        comEvent.setSpecialistId(specterId);
        ComSanshuoExpert specter = comSanShuoExpertService.getById(specterId);
        comEvent.setSpecialistAcceptTime(new Date());
        comEvent.setSpecialistName(specter.getName());
        comEvent.setEventProcessStatus(SanShuoEventStatusEnum.ACCEPT.getCode());
        int flag = baseMapper.updateById(comEvent);
        return flag > 0 ? R.ok() : R.fail(ReturnMsgConstants.UPDATE_FALSE);
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public R reappoint(Long id, Long specialistId) {
        ComEvent comEvent = new ComEvent();
        comEvent.setId(id);
        comEvent.setSpecialistId(specialistId);
        ComSanshuoExpert specter = comSanShuoExpertService.getById(specialistId);
        comEvent.setSpecialistAcceptTime(new Date());
        comEvent.setSpecialistName(specter.getName());
        comEvent.setEventProcessStatus(SanShuoEventStatusEnum.ACCEPT.getCode());
        int flag = baseMapper.updateById(comEvent);
        return flag > 0 ? R.ok() : R.fail(ReturnMsgConstants.UPDATE_FALSE);
    }
    @Override
    public R calculate() {
        List<ComEventCalculateVO> calculateList = baseMapper.calculate();
        ComEventCalculateVO comEventCalculateVO =new ComEventCalculateVO();
        comEventCalculateVO.setStatus("0");
        comEventCalculateVO.setSum(baseMapper.selectCount(new QueryWrapper<ComEvent>().lambda()).toString());
        calculateList.add(comEventCalculateVO);
        return R.ok(calculateList);
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public R archiveRequest(ComEventArchiveVO comEventArchiveVO, LoginUserInfoVO sysUser) {
        ComEvent comEvent = baseMapper.selectById(comEventArchiveVO.getId());
        if (comEvent.getEventSucceed() == 2) {
            comEvent.setEventProcessStatus(6);
        } else {
            comEvent.setEventProcessStatus(5);
        }
        comEvent.setResult(comEventArchiveVO.getResult());
        baseMapper.updateById(comEvent);
        ComEventTransferRecord comEventTransferRecord = new ComEventTransferRecord();
        comEventTransferRecord.setEventId(comEvent.getId());
        comEventTransferRecord.setSave(true);
        comEventTransferRecord.setProcessResult(comEventArchiveVO.getResult());
        comEventTransferRecord.setProcessResultData(new Date().toString());
        comEventTransferRecord.setProcessDate(new Date());
        comEventTransferRecord.setProcessBy(sysUser.getUserId());
        comEventTransferRecord.setProcessByName(sysUser.getName());
        comEventTransferRecord.setProcessType(1);
        comEventTransferRecord.setCreateAt(new Date());
        comEventTransferRecord.setSpecialistId(comEvent.getSpecialistId());
        comEventTransferRecord.setSpecialistOrg(comEvent.getCurrentOrgId());
        comEventTransferRecord.setSpecialistLevel(comEvent.getSpecialistLevel());
        comEventTransferRecord.setSpecialistName(comEvent.getSpecialistName());
        comEventTransferRecord.setEventResult(comEvent.getEventSucceed());
        comEventTransferRecord.setEventStatus(comEvent.getEventProcessStatus());
        return comEventTransferRecordService.insertComEventTransferRecord(comEventTransferRecord);
    }
    /**
     * 大屏事件统计
     * @param indexDataDTO  查询入参
     * */
    @Override
    public R indexData(IndexDateDTO indexDataDTO) {
        IndexDateVO vo = comEventMapper.dateAnalysis(indexDataDTO,DateUtil.beginOfMonth(new Date()),DateUtil.endOfMonth(new Date()));
        //计算率
        if (nonNull(vo.getSuccess()) && !vo.getSuccess().equals(0)){
            if (nonNull(vo.getAccepted()) && !vo.getAccepted().equals(0)){
                //计算成功率
                vo.setSuccessRate(NumberUtil.div(vo.getSuccess(),vo.getAccepted(),2));
            }
        }
        //折线图X轴
        List<Date> dates = pastTwelveMoth();
        vo.setX(getYAndM(dates));
        //新增
        List<Integer> Y1=new ArrayList<>();
        List<Integer> Y2=new ArrayList<>();
        for (Date date : dates) {
            Y1.add(comEventMapper.dateAnalysisY(date,DateUtil.endOfMonth(date),indexDataDTO));
            Y2.add(comEventMapper.dateAnalysisYTwo(date,DateUtil.endOfMonth(date),indexDataDTO));
        }
        vo.setY1(Y1);
        vo.setY2(Y2);
        return R.ok(vo);
    }
    @Override
    public R eventIndexData(Integer type) {
        //获取事件总数
        Integer eventCount = comEventMapper.selectCount(new QueryWrapper<ComEvent>().notIn("event_process_status", (7), (8)));
        if (type.equals(1)){
            //受理级别占比
            List<EventRateVO> eventRateVOS = comEventMapper.eventRate();
            for (EventRateVO eventRateVO : eventRateVOS) {
                if (nonNull(eventRateVO)){
                    eventRateVO.setName(typeToName(eventRateVO.getType()));
                    if (nonNull(eventCount) && !eventCount.equals(0)){
                        //计算占比
                        eventRateVO.setRate(NumberUtil.div(eventRateVO.getCount(),eventCount,2));
                    }
                }
            }
            return R.ok(eventRateVOS);
        }else if (type.equals(2)){
            //专家级别
            List<EventRateVO> eventRateVOS = comEventMapper.expertRate();
            for (EventRateVO eventRateVO : eventRateVOS) {
                if (nonNull(eventRateVO)){
                    eventRateVO.setName(typeToNameExpert(eventRateVO.getType()));
                    if (nonNull(eventCount) && !eventCount.equals(0)){
                        //计算占比
                        eventRateVO.setRate(NumberUtil.div(eventRateVO.getCount(),eventCount,2));
                    }
                }
            }
            return R.ok(eventRateVOS);
        }else{
            //事件类型占比
            List<EventRateVO> eventRateVOS = comEventMapper.mediateTypeRate();
            for (EventRateVO eventRateVO : eventRateVOS) {
                if (nonNull(eventRateVO)){
                    if (nonNull(eventCount) && !eventCount.equals(0)){
                        //计算占比
                        eventRateVO.setRate(NumberUtil.div(eventRateVO.getCount(),eventCount,2));
                    }
                }
            }
            return R.ok(eventRateVOS);
        }
    }
    public String typeToName(Integer type){
        switch (type){
            case 1:
                return "行业分中心受理";
            case 2:
                return "街道调解站受理";
            case 3:
                return "社区调解站受理";
            case 4:
                return "区三说会堂受理";
        }
        return null;
    }
    public String typeToNameExpert(Integer type){
        switch (type){
            case 1:
                return "区三说会堂专家";
            case 2:
                return "行业分中心专家";
            case 3:
                return "街道调解站专家";
            case 4:
                return "社区调解站专家";
        }
        return null;
    }
    /**
     * 过去12个月的月份
     * */
    private List<Date> pastTwelveMoth(){
        List<Date> list=new ArrayList<>();
        Date now = new Date();
        for (int i = 0; i < 12; i++) {
            //本月
            DateTime dateTime = DateUtil.beginOfMonth(now);
            DateUtil.format(dateTime,"yyyy-MM-dd");
            list.add(dateTime);
            //减一天进入下一个月
            now=DateUtil.offsetDay(dateTime,-1);
        }
        return list;
    }
    /**
     * 截取年,月
     * */
    private List<String> getYAndM(List<Date> dateList){
        List<String> list=new ArrayList<>();
        for (Date date : dateList) {
            list.add(DateUtil.format(date,"yyyy-MM").toString());
        }
        return list;
    }
    private Boolean checkExist(String sn, Long id) {
        ComEvent comEvent = new ComEvent();
        comEvent.setOrderSn(sn);
        QueryWrapper<ComEvent> queryWrapper = new QueryWrapper<>(comEvent);
        if (id != null) {
            queryWrapper.ne("id", id);
        }
        Integer count = baseMapper.selectCount(queryWrapper);
        return count > 0;
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventTransferRecordServiceImpl.java
New file
@@ -0,0 +1,70 @@
package com.panzhihua.service_community.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.panzhihua.common.constants.ReturnMsgConstants;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.utlis.Snowflake;
import com.panzhihua.service_community.dao.ComEventTransferRecordMapper;
import com.panzhihua.service_community.entity.ComEventTransferRecord;
import com.panzhihua.service_community.service.IComEventTransferRecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Collections;
import java.util.Date;
import java.util.List;
/**
 * Description 三说会堂事件流转表业务层实现类
 * ClassName   ComEventTransferRecordServiceImpl
 *
 * @author manailin
 * @date 2022-09-07 11:23:52
 */
@Slf4j
@Service("comEventTransferRecordService")
public class ComEventTransferRecordServiceImpl extends ServiceImpl<ComEventTransferRecordMapper, ComEventTransferRecord> implements IComEventTransferRecordService {
    @Override
    public R pageByComEventTransferRecord(ComEventTransferRecord comEventTransferRecord, Page pagination) {
        IPage<ComEventTransferRecord> list = baseMapper.pageByComEventTransferRecord(comEventTransferRecord, pagination);
        if (list.getRecords().size() < 1) {
            return R.ok(Collections.emptyList());
        }
        return R.ok(list);
    }
    @Override
    public List<ComEventTransferRecord> listByComEventTransferRecord(ComEventTransferRecord comEventTransferRecord) {
        List<ComEventTransferRecord> list = baseMapper.listByComEventTransferRecord(comEventTransferRecord);
        if (list.size() < 1) {
            return Collections.emptyList();
        }
        return list;
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public R insertComEventTransferRecord(ComEventTransferRecord comEventTransferRecord) {
        comEventTransferRecord.setId(Snowflake.getId());
        comEventTransferRecord.setCreateAt(new Date());
        boolean flag = save(comEventTransferRecord);
        if (!flag) {
            return R.fail(ReturnMsgConstants.DATA_EXIST);
        }
        return R.ok(ReturnMsgConstants.SAVE_SUCCESS);
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public R updateComEventTransferRecord(ComEventTransferRecord comEventTransferRecord) {
        int flag = baseMapper.updateById(comEventTransferRecord);
        return flag > 0 ? R.ok(comEventTransferRecord, ReturnMsgConstants.UPDATE_SUCCESS) : R.fail(ReturnMsgConstants.UPDATE_FALSE);
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoEventServiceImpl.java
New file
@@ -0,0 +1,61 @@
package com.panzhihua.service_community.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoEventDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.dao.ComSanshuoEventDao;
import com.panzhihua.service_community.entity.ComSanshuoEvent;
import com.panzhihua.service_community.service.ComSanShuoEventService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Date;
import static java.util.Objects.isNull;
@Service
public class ComSanShuoEventServiceImpl extends ServiceImpl<ComSanshuoEventDao, ComSanshuoEvent> implements ComSanShuoEventService {
    @Resource
    private ComSanshuoEventDao sanshuoEventDao;
    /**
     * 添加或修改事件类型
     *
     * @param comSanshuoEvent
     * @return 处理结果
     */
    @Override
    public R addOrUpdate(ComSanshuoEvent comSanshuoEvent) {
        if (isNull(comSanshuoEvent.getName())) {
            return R.fail("名称不能为空!");
        }
        if (isNull(comSanshuoEvent.getId())) {
            //添加操作
            comSanshuoEvent.setCreateTime(new Date());
            int insert = sanshuoEventDao.insert(comSanshuoEvent);
            if (insert > 0) {
                return R.ok();
            }
        }
        //修改
        comSanshuoEvent.setUpdateTime(new Date());
        int i = sanshuoEventDao.updateById(comSanshuoEvent);
        if (i > 0) {
            return R.ok();
        }
        return R.fail("操作失败");
    }
    /**
     * 后台获取事件类型列表
     *
     * @param comSanshuoEventDTO
     * @return 处理结果
     */
    @Override
    public R backStageList(ComSanshuoEventDTO comSanshuoEventDTO) {
        return R.ok(this.baseMapper.pageEvent(new Page(comSanshuoEventDTO.getPage(), comSanshuoEventDTO.getSize()), comSanshuoEventDTO));
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoExpertServiceImpl.java
New file
@@ -0,0 +1,296 @@
package com.panzhihua.service_community.service.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.NumberUtil;
import cn.hutool.crypto.digest.MD5;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoExpertDTO;
import com.panzhihua.common.model.vos.LoginUserInfoVO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.sanshuo.ExpertRangeVO;
import com.panzhihua.common.model.vos.sanshuo.ExpertShowVO;
import com.panzhihua.common.model.vos.user.AdministratorsUserVO;
import com.panzhihua.common.service.user.UserService;
import com.panzhihua.common.utlis.Snowflake;
import com.panzhihua.common.utlis.StringUtils;
import com.panzhihua.service_community.api.ComSanShuoExpertApi;
import com.panzhihua.service_community.dao.*;
import com.panzhihua.service_community.entity.ComEvent;
import com.panzhihua.service_community.entity.ComSanshuoEvent;
import com.panzhihua.service_community.entity.ComSanshuoExpert;
import com.panzhihua.service_community.model.dos.ComActDO;
import com.panzhihua.service_community.model.dos.ComStreetDO;
import com.panzhihua.service_community.service.ComActService;
import com.panzhihua.service_community.service.ComSanShuoExpertService;
import com.panzhihua.service_community.service.ComStreetService;
import com.panzhihua.service_community.util.MyAESUtil;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import static java.util.Objects.nonNull;
@Service
public class ComSanShuoExpertServiceImpl  extends ServiceImpl<ComSanshuoExpertDao, ComSanshuoExpert> implements ComSanShuoExpertService {
    @Resource
    private ComSanshuoExpertDao comSanshuoExpertDao;
    @Resource
    private UserService userService;
    @Resource
    private ComSanshuoIndustryCenterDao comSanshuoIndustryCenterDao;
    @Resource
    private ComStreetDAO comStreetDAO;
    @Resource
    private ComActDAO comActDAO;
    @Resource
    private ComEventMapper comEventMapper;
    /**
     * 添加专家
     * @param comSanshuoExpertDTO
     * @return 处理结果
     * */
    @Override
    public R addExpert(ComSanshuoExpertDTO comSanshuoExpertDTO) {
        ComSanshuoExpert expert=new ComSanshuoExpert();
        BeanUtil.copyProperties(comSanshuoExpertDTO,expert);
        //处理id
        if (nonNull(comSanshuoExpertDTO.getUnit())){
            String id = comSanshuoExpertDTO.getUnit();
            String[] split = id.split(",");
            comSanshuoExpertDTO.setUnitId(split[split.length]);
        }
        expert.setId(Snowflake.getId());
        expert.setCreateTime(new Date());
        if (expert.getLevel()==2){
            expert.setIndustryCenterId(Long.parseLong(comSanshuoExpertDTO.getUnitId()));
        }else if(expert.getLevel()==3){
            expert.setStreetId(Long.parseLong(comSanshuoExpertDTO.getUnitId()));
        }else if(expert.getLevel()==4){
            expert.setCommunityId(Long.parseLong(comSanshuoExpertDTO.getUnitId()));
        }
        int insert = comSanshuoExpertDao.insert(expert);
        if (insert>0){
            try {
                comSanshuoExpertDTO.setPassword(MyAESUtil.Encrypt(comSanshuoExpertDTO.getPassword(),"Ryo7M3n8loC5Abcd"));
            } catch (Exception e) {
                e.printStackTrace();
            }
            //生成后台账号
            AdministratorsUserVO user=new AdministratorsUserVO();
            user.setUserId(Snowflake.getId());
            user.setAccount(comSanshuoExpertDTO.getAccount());
            user.setPassword(comSanshuoExpertDTO.getPassword());
            user.setName(comSanshuoExpertDTO.getName());
            user.setType(11);
            user.setImageUrl(comSanshuoExpertDTO.getAvatar());
            return userService.sanShuoAddUser(user);
        }
        return R.fail("添加失败");
    }
    /**
     * 后台获取专家列表
     * @param page
     * @param keyWord
     * @param size
     * @param loginUserInfo 登陆账号信息
     * @return 处理结果
     * */
    @Override
    public R expertPage(String keyWord, Integer page, Integer size, LoginUserInfoVO loginUserInfo) {
        //range:1.三说会堂下属,2业务中心下属,3街道下属,4社区下属
        //id:社区或街道或业务中心id
        //账号级别
        Long id=null;
        Integer range=null;
        if (nonNull(loginUserInfo)){
            if (nonNull(loginUserInfo.getUserType()) || nonNull(loginUserInfo.getType())){
                if (nonNull(loginUserInfo.getUserType())){
                    if (loginUserInfo.getUserType().equals(1)){
                        range=3;
                        id=loginUserInfo.getStreetId();
                    }else if (loginUserInfo.getUserType().equals(2)){
                        range=4;
                        id=loginUserInfo.getCommunityId();
                    }
                }else if (loginUserInfo.getType().equals(11)){
                    range=2;
                    id=loginUserInfo.getCommunityId();
                }
            }
        }
        return R.ok(comSanshuoExpertDao.expertPage(new Page(page,size),keyWord,range,id));
    }
    /**
     * 专家风采
     * */
    @Override
    public R expertShow() {
        List<ExpertShowVO> expertShowVOS = comSanshuoExpertDao.expertShow();
        for (ExpertShowVO expertShowVO : expertShowVOS) {
            if (nonNull(expertShowVO.getLevel())){
                if (1==expertShowVO.getLevel()) {
                    expertShowVO.setName("区三说会堂调解专家");
                }else if (2==expertShowVO.getLevel()){
                    expertShowVO.setName("行业分中心调解专家");
                    List<ExpertShowVO> expertShowVOS1 = comSanshuoExpertDao.selectExpertIndustry();
                    expertShowVO.setChildList(expertShowVOS1);
                }else if (3==expertShowVO.getLevel()){
                    expertShowVO.setName("镇/街道调解站调解专家");
                    List<ExpertShowVO> expertShowVOS1 = comSanshuoExpertDao.selectExpertStreet();
                    expertShowVO.setChildList(expertShowVOS1);
                }else {
                    expertShowVO.setName("村/社区调解站调解专家");
                    List<ExpertShowVO> expertShowVOS1 = comSanshuoExpertDao.selectExpertCommunity();
                    expertShowVO.setChildList(expertShowVOS1);
                }
            }
        }
        return R.ok(expertShowVOS);
    }
    /**
     * 专家级别与单位范围
     * */
    @Override
    public R expertRange(LoginUserInfoVO loginUserInfo) {
        if (nonNull(loginUserInfo)){
            if (loginUserInfo.getAccount().equals("zhengfawei") || loginUserInfo.getAccount().equals("admin")){
                List<ExpertRangeVO> list=new ArrayList<>();
                for (int i = 1; i < 5; i++) {
                    ExpertRangeVO vo=new ExpertRangeVO();
                    vo.setLevel(i);
                    if (i==2){
                        //设置行业分中心为childList
                        vo.setChildList(comSanshuoIndustryCenterDao.indstryList());
                    }else if (i==3){
                        vo.setChildList(comSanshuoIndustryCenterDao.streetList());
                    }else if (i==4){
                        vo.setChildList(comSanshuoIndustryCenterDao.communityList());
                    }
                    list.add(vo);
                }
                return R.ok(list);
            }else if (loginUserInfo.getType().equals(11)){
                //三说会堂后台
                List<ExpertRangeVO> list=new ArrayList<>();
                ExpertRangeVO vo=new ExpertRangeVO();
                vo.setLevel(1);
                vo.setName("区三说会堂");
                list.add(vo);
                return R.ok(list);
            }else if (loginUserInfo.getType().equals(12)){
                //行业分中心后台
                List<ExpertRangeVO> list=new ArrayList<>();
                ExpertRangeVO vo=new ExpertRangeVO();
                vo.setLevel(2);
                vo.setName("行业分中心");
                vo.setId(loginUserInfo.getCommunityId());
                list.add(vo);
                return R.ok(list);
            }else if (nonNull(loginUserInfo.getUserType())){
                if (loginUserInfo.getUserType().equals(1)){
                    //街道账号
                    ComStreetDO comStreetDO = comStreetDAO.selectById(loginUserInfo.getStreetId());
                    List<ExpertRangeVO> list=new ArrayList<>();
                    ExpertRangeVO vo=new ExpertRangeVO();
                    vo.setLevel(3);
                    vo.setName(comStreetDO.getName()+"调解站");
                    vo.setId(loginUserInfo.getStreetId());
                    list.add(vo);
                    return R.ok(list);
                }
                if (loginUserInfo.getUserType().equals(2)){
                    //街道账号
                    ComActDO comActDO = comActDAO.selectById(loginUserInfo.getCommunityId());
                    List<ExpertRangeVO> list=new ArrayList<>();
                    ExpertRangeVO vo=new ExpertRangeVO();
                    vo.setLevel(4);
                    vo.setName(comActDO.getName()+"调解站");
                    vo.setId(loginUserInfo.getStreetId());
                    list.add(vo);
                    return R.ok(list);
                }
            }
        }
        return R.fail();
    }
    /**
     * 小程序获取专家列表
     * */
    @Override
    public R selectExpertList() {
        List<ComSanshuoExpert> comSanshuoExperts = comSanshuoExpertDao.selectList(new QueryWrapper<ComSanshuoExpert>().lambda().eq(ComSanshuoExpert::getStatus, 1).eq(ComSanshuoExpert::getDelFlag, 1));
        //设置成功率
        for (ComSanshuoExpert comSanshuoExpert : comSanshuoExperts) {
            //查询成功率
            Integer count = comEventMapper.selectCount(new QueryWrapper<ComEvent>().lambda().eq(ComEvent::getSpecialistId, comSanshuoExpert.getId()).eq(ComEvent::getEventProcessStatus, 6));
            Integer successCount = comEventMapper.selectCount(new QueryWrapper<ComEvent>().lambda().eq(ComEvent::getSpecialistId, comSanshuoExpert.getId()).eq(ComEvent::getEventProcessStatus, 6).eq(ComEvent::getEventResult, 2));
            comSanshuoExpert.setCount(count);
            if (nonNull(count) && !count.equals(0)){
                comSanshuoExpert.setCount(count);
                if (nonNull(successCount) && !count.equals(successCount)){
                    //计算成功率
                    comSanshuoExpert.setRate(NumberUtil.div(successCount, count,2));
                }else {
                    comSanshuoExpert.setRate(new BigDecimal(0));
                }
            }else {
                comSanshuoExpert.setCount(0);
            }
        }
        return R.ok(comSanshuoExperts);
    }
    /**
     * 专家风采列表
     * */
    @Override
    public R expertShowList(Integer level, Long id) {
        QueryWrapper<ComSanshuoExpert> wrapper=new QueryWrapper<>();
        wrapper.eq("level",level );
        if (level.equals(2)){
            wrapper.eq("industry_center_id", id);
        }else if (level.equals(3)){
            wrapper.eq("street_id",id );
        }else if (level.equals(4)){
            wrapper.eq("community_id",id );
        }
        List<ComSanshuoExpert> comSanshuoExperts = comSanshuoExpertDao.selectList(wrapper);
        for (ComSanshuoExpert comSanshuoExpert : comSanshuoExperts) {
            //获取成功率
            //查询成功率
            Integer count = comEventMapper.selectCount(new QueryWrapper<ComEvent>().lambda().eq(ComEvent::getSpecialistId, comSanshuoExpert.getId()).eq(ComEvent::getEventProcessStatus, 6));
            Integer successCount = comEventMapper.selectCount(new QueryWrapper<ComEvent>().lambda().eq(ComEvent::getSpecialistId, comSanshuoExpert.getId()).eq(ComEvent::getEventProcessStatus, 6).eq(ComEvent::getEventResult, 2));
            comSanshuoExpert.setCount(count);
            if (nonNull(count) && !count.equals(0)){
                comSanshuoExpert.setCount(count);
                if (nonNull(successCount) && !count.equals(successCount)){
                    //计算成功率
                    comSanshuoExpert.setRate(NumberUtil.div(successCount, count,2));
                }else {
                    comSanshuoExpert.setRate(new BigDecimal(0));
                }
            }else {
                comSanshuoExpert.setCount(0);
            }
        }
        return R.ok(comSanshuoExperts);
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoIndustryCenterServiceImpl.java
New file
@@ -0,0 +1,102 @@
package com.panzhihua.service_community.service.impl;
import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanShuoIndustryCenterDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.user.AdministratorsUserVO;
import com.panzhihua.common.service.user.UserService;
import com.panzhihua.common.utlis.Snowflake;
import com.panzhihua.service_community.dao.ComSanshuoIndustryCenterDao;
import com.panzhihua.service_community.dao.SysUserDao;
import com.panzhihua.service_community.entity.ComSanshuoIndustryCenter;
import com.panzhihua.service_community.entity.SysUser;
import com.panzhihua.service_community.service.ComSanShuoIndustryCenterService;
import com.panzhihua.service_community.util.MyAESUtil;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Date;
import static java.util.Objects.isNull;
import static java.util.Objects.nonNull;
@Service
public class ComSanShuoIndustryCenterServiceImpl extends ServiceImpl<ComSanshuoIndustryCenterDao, ComSanshuoIndustryCenter> implements ComSanShuoIndustryCenterService {
    @Resource
    private ComSanshuoIndustryCenterDao comSanshuoIndustryCenterDao;
    @Resource
    private UserService userService;
    /**
     * 后台业务中心列表
     * @param keyWord 搜索关键字
     * @param page
     * @param size
     * @return 处理结果
     * */
    @Override
    public R pageIndustryCenter(String keyWord, Integer page, Integer size) {
        return R.ok(comSanshuoIndustryCenterDao.pageIndustryCenter(new Page(page,size),keyWord));
    }
    /**
     * 添加或修改业务中心信息
     * @param comSanShuoIndustryCenterDTO
     * @return 处理结果
     * */
    @Override
    public R addOrUpdate(ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO) {
        ComSanshuoIndustryCenter comSanshuoIndustryCenter = comSanshuoIndustryCenterDao.selectOne(new QueryWrapper<ComSanshuoIndustryCenter>().eq("name", comSanShuoIndustryCenterDTO.getName()));
        if (isNull(comSanShuoIndustryCenterDTO.getId())){
            if (nonNull(comSanshuoIndustryCenter)){
                return R.fail("业务中心已存在");
            }
            ComSanshuoIndustryCenter center=new ComSanshuoIndustryCenter();
            BeanUtil.copyProperties(comSanShuoIndustryCenterDTO,center);
            //添加
            center.setId(Snowflake.getId());
            center.setCreateTime(new Date());
            int insert = comSanshuoIndustryCenterDao.insert(center);
            if (insert>0){
                //创建后台登陆账号
                AdministratorsUserVO user=new AdministratorsUserVO();
                user.setUserId(Snowflake.getId());
                user.setAccount(comSanShuoIndustryCenterDTO.getAccount());
                user.setName(comSanShuoIndustryCenterDTO.getName());
                user.setType(12);
                try {
                    user.setPassword(MyAESUtil.Encrypt(comSanShuoIndustryCenterDTO.getPassword(),"Ryo7M3n8loC5Abcd"));
                } catch (Exception e) {
                    e.printStackTrace();
                }
                return userService.sanShuoAddUser(user);
            }
        }else {
            ComSanshuoIndustryCenter center=new ComSanshuoIndustryCenter();
            BeanUtil.copyProperties(comSanShuoIndustryCenterDTO,center);
            center.setUpdateTime(new Date());
            int i = comSanshuoIndustryCenterDao.updateById(center);
            if (i>0){
                return R.ok();
            }
        }
        return R.fail("操作失败");
    }
    @Override
    public R resetPassword(ComSanshuoIndustryCenter center) {
        try {
            String pass=MyAESUtil.Encrypt(center.getPassword(), "Ryo7M3n8loC5Abcd");
            return userService.sanShuoResetPassword(center.getAccount(), pass);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return R.fail();
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComStreetServiceImpl.java
@@ -4,8 +4,13 @@
import javax.annotation.Resource;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.codec.Base64;
import com.panzhihua.common.model.vos.user.AdministratorsUserVO;
import com.panzhihua.common.service.user.UserService;
import com.panzhihua.service_community.dao.ComEventMapper;
import com.panzhihua.service_community.entity.ComEvent;
import com.panzhihua.service_community.util.MyAESUtil;
import org.springframework.beans.BeanUtils;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;
@@ -42,6 +47,9 @@
    @Resource
    private UserService userService;
    @Resource
    private ComEventMapper comEventMapper;
    /**
     * 新增社区
@@ -193,4 +201,66 @@
        return R.fail();
    }
    /**
     * 修改街道信息
     * @param comStreetVO 街道信息
     * */
    @Override
    public R update(ComStreetVO comStreetVO) {
        ComStreetDO comStreetDO=new ComStreetDO();
        BeanUtils.copyProperties(comStreetVO,comStreetDO );
        return R.ok(comStreetDAO.updateById(comStreetDO));
    }
    /**
     * 删除街道
     * */
    @Override
    public R remove(Long id) {
        //是否有未结事件
        List<Long> longs = comActDAO.selectCommunityByStreetId(id);
        List<ComEvent> comEvents = comEventMapper.selectList(new QueryWrapper<ComEvent>().lambda().in(ComEvent::getEventProcessStatus, (4), (6), (7), (8)).in(ComEvent::getRequestUserCommunity, longs));
        if (comEvents.size()!=0){
            return R.fail("有未结事件不可删除");
        }
        comStreetDAO.deleteById(id);
        return R.ok();
    }
    @Override
    public R removeCommunity(Long id) {
        //是否有未结案件
        List<ComEvent> comEvents = comEventMapper.selectList(new QueryWrapper<ComEvent>().lambda().in(ComEvent::getEventProcessStatus, (4), (6), (7), (8)).eq(ComEvent::getRequestUserCommunity, id));
        if (comEvents.size()!=0){
            return R.fail("有未结事件不可删除");
        }
        comActDAO.deleteById(id);
        return R.ok();
    }
    @Override
    public R repassCommunity(ComActVO comActVO) {
        ComActDO comActDO=new ComActDO();
        try {
            comActDO.setPassword(MyAESUtil.Encrypt(comActVO.getPassword(),"Ryo7M3n8loC5Abcd" ));
        } catch (Exception e) {
            e.printStackTrace();
        }
        comActDO.setCommunityId(comActVO.getCommunityId());
        return R.ok(comActDAO.updateById(comActDO));
    }
    @Override
    public R repssStreet(ComStreetVO comActVO) {
        ComStreetDO comStreetDO=new ComStreetDO();
        try {
            comStreetDO.setPassword(MyAESUtil.Encrypt(comActVO.getPassword(),"Ryo7M3n8loC5Abcd" ));
        } catch (Exception e) {
            e.printStackTrace();
        }
        comStreetDO.setStreetId(comActVO.getStreetId());
        return R.ok(comStreetDAO.updateById(comStreetDO));
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/CommediateTypeServiceImpl.java
New file
@@ -0,0 +1,69 @@
package com.panzhihua.service_community.service.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.panzhihua.common.model.dtos.community.sanshuo.ComMediateTypeDTO;
import com.panzhihua.common.model.dtos.community.sanshuo.IndexDateDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.utlis.Snowflake;
import com.panzhihua.service_community.dao.ComEventMapper;
import com.panzhihua.service_community.dao.ComMediateTypeDao;
import com.panzhihua.service_community.entity.ComMediateType;
import com.panzhihua.service_community.service.CommediateTypeService;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Date;
import static java.util.Objects.nonNull;
@Service
public class CommediateTypeServiceImpl extends ServiceImpl<ComMediateTypeDao, ComMediateType> implements CommediateTypeService {
    @Resource
    private ComMediateTypeDao comMediateTypeDao;
    @Resource
    private ComEventMapper comEventMapper;
    /**
     * 后台获取事件列表
     * @param keyWord
     * @param page
     * @param size
     * @return 处理结果
     * */
    @Override
    public R listEvent(String keyWord, Integer page, Integer size) {
        return R.ok(comMediateTypeDao.eventList(new Page(page,size),keyWord));
    }
    /**
     * 新增事件类型
     * @param comMediateTypeDTO
     * @return 处理结果
     * */
    @Override
    public R addOrUpdate(ComMediateTypeDTO comMediateTypeDTO) {
        ComMediateType name = comMediateTypeDao.selectOne(new QueryWrapper<ComMediateType>().eq("name", comMediateTypeDTO.getName()));
        ComMediateType mediateType=new ComMediateType();
        if (nonNull(comMediateTypeDTO.getId())){
            //修改
            BeanUtil.copyProperties(comMediateTypeDTO,mediateType);
            return R.ok(comMediateTypeDao.updateById(mediateType));
        }
        //新增
        if (nonNull(name)){
            return R.fail("事件已存在");
        }
        BeanUtil.copyProperties(comMediateTypeDTO,mediateType);
        mediateType.setId(Snowflake.getId());
        mediateType.setCreateDate(new Date());
        return R.ok(comMediateTypeDao.insert(mediateType));
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComEventMapper.xml
New file
@@ -0,0 +1,383 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.panzhihua.service_community.dao.ComEventMapper">
     <resultMap id="baseResult" type="com.panzhihua.service_community.entity.ComEvent">
            <id property="id" column="id" />
            <result property="orderSn" column="order_sn" />
            <result property="requestUserId" column="request_user_id" />
            <result property="userEventStatus" column="user_event_status" />
            <result property="requestUserEventDes" column="request_user_event_des" />
            <result property="requestUserName" column="request_user_name" />
            <result property="requestUserTel" column="request_user_tel" />
            <result property="eventCategory" column="event_category" />
            <result property="type" column="type" />
            <result property="submitDate" column="submit_date" />
            <result property="appointmentTime" column="appointment_time" />
            <result property="requestUserCommunity" column="request_user_community" />
            <result property="centerId" column="center_id" />
            <result property="centerTel" column="center_tel" />
            <result property="specialistOrg" column="specialist_org" />
            <result property="specialistLevel" column="specialist_level" />
            <result property="specialistId" column="specialist_id" />
            <result property="specialistName" column="specialist_name" />
            <result property="specialistTel" column="specialist_tel" />
            <result property="specialistAcceptTime" column="specialist_accept_time" />
            <result property="revokeType" column="revoke_type" />
            <result property="eventProcessStatus" column="event_process_status" />
            <result property="currentProcessType" column="current_process_type" />
            <result property="currentOrgId" column="current_org_id" />
            <result property="currentOrgName" column="current_org_name" />
            <result property="currentProcessUserId" column="current_process_user_id" />
            <result property="currentProcessUserName" column="current_process_user_name" />
            <result property="revokeDes" column="revoke_des" />
            <result property="eventResult" column="event_result" />
            <result property="eventSucceed" column="event_succeed" />
            <result property="currentEventProcessResult" column="current_event_process_result" />
            <result property="reportSuperior" column="report_superior" />
            <result property="result" column="result" />
            <result property="resultDate" column="result_date" />
            <result property="urgent" column="urgent" />
            <result property="difficult" column="difficult" />
            <result property="urgentDell" column="urgent_dell" />
            <result property="invalid" column="invalid" />
            <result property="major" column="major" />
            <result property="requestUserResponse" column="request_user_response" />
            <result property="createBy" column="create_by" />
            <result property="createAt" column="create_at" />
            <result property="updateBy" column="update_by" />
            <result property="updateAt" column="update_at" />
    </resultMap>
    <sql id="columns">
        id,order_sn,request_user_id,user_event_status,request_user_event_des,event_succeed,current_event_process_result,request_user_name,request_user_tel,event_category,type,submit_date,appointment_time,request_user_community,center_id,center_tel,specialist_org,specialist_level,specialist_id,specialist_name,specialist_tel,specialist_accept_time,revoke_type,event_process_status,current_process_type,current_org_id,current_process_user_id,current_process_user_name,revoke_des,event_result,report_superior,result,result_date,urgent,difficult,urgent_dell,invalid,major,request_user_response,create_by,create_at,update_by,update_at
    </sql>
    <select id="pageByComEvent" resultType="com.panzhihua.service_community.entity.ComEvent">
        SELECT <include refid="columns" />
        FROM com_sanshuo_event_info
        <where>
            <if test="comEvent.eventCategory != null">
                AND event_category = #{comEvent.eventCategory}
            </if>
            <if test="comEvent.eventProcessStatus != null">
                AND event_process_status = #{comEvent.eventProcessStatus}
            </if>
            <if test="comEvent.orderSn != null">
                AND order_sn = #{comEvent.orderSn}
            </if>
            <if test="comEvent.requestUserTel != null">
                AND request_user_tel = #{comEvent.requestUserTel}
            </if>
            <if test="comEvent.currentOrgName != null">
                AND current_org_name = #{comEvent.currentOrgName}
            </if>
        </where>
        order by create_at desc
    </select>
    <select id="listByComEvent" resultType="com.panzhihua.service_community.entity.ComEvent">
        SELECT <include refid="columns" />
        FROM com_sanshuo_event_info
    </select>
    <select id="calculate" resultType="com.panzhihua.common.model.vos.sanshuo.ComEventCalculateVO">
        select event_process_status as status ,count(1) as  sum
        from com_sanshuo_event_info
        group by event_process_status
    </select>
    <select id="dateAnalysis" resultType="com.panzhihua.common.model.vos.sanshuo.IndexDateVO">
        SELECT
        (SELECT count(id) FROM com_sanshuo_event_info
        where event_process_status  in (3,5,6)
        AND user_event_status not in(3,4)
        <if test="dto.type == 2">
            AND type=1
            <if test="dto.id != null">
                AND center_id=#{dto.id}
            </if>
        </if>
        <if test="dto.type == 3">
            AND type=2
            <if test="dto.id != null">
                AND request_user_community in (select com_act.community_id from com_act where street_id=#{dto.id})
            </if>
        </if>
        <if test="dto.type == 4">
            AND type=3
            <if test="dto.id != null">
                AND request_user_community=#{dto.id}
            </if>
        </if>
        <if test="dto.type == 1">
            AND type=4
        </if>
        ) as accept,
        (SELECT count(id) FROM com_sanshuo_event_info
        where event_process_status = 5
        AND user_event_status not in(3,4)
        <if test="dto.type == 1">
            AND type=4
        </if>
        <if test="dto.type == 2">
            AND type=1
            <if test="dto.id != null">
                AND center_id=#{dto.id}
            </if>
        </if>
        <if test="dto.type == 3">
            AND type=2
            <if test="dto.id != null">
                AND request_user_community in (select com_act.community_id from com_act where street_id=#{dto.id})
            </if>
        </if>
        <if test="dto.type == 4">
            AND type=3
            <if test="dto.id != null">
                AND request_user_community=#{dto.id}
            </if>
        </if>) as accepting,
        (SELECT count(id) FROM com_sanshuo_event_info
        where event_process_status = 6
        AND user_event_status not in(3)
        <if test="dto.type == 1">
            AND type=4
        </if>
        <if test="dto.type == 2">
            AND type=1
            <if test="dto.id != null">
                AND center_id=#{dto.id}
            </if>
        </if>
        <if test="dto.type == 3">
            AND type=2
            <if test="dto.id != null">
                 AND request_user_community in (select com_act.community_id from com_act where street_id=#{dto.id})
            </if>
        </if>
        <if test="dto.type == 4">
            AND type=3
            <if test="dto.id != null">
                AND request_user_community=#{dto.id}
            </if>
        </if>) as accepted,
        (SELECT count(id) FROM com_sanshuo_event_info
        where event_process_status in (6,7)
        AND user_event_status not in(3,4)
        <if test="dto.type == 1">
            AND type=4
        </if>
        <if test="dto.type == 2">
            AND type=1
            <if test="dto.id != null">
                AND center_id=#{dto.id}
            </if>
        </if>
        <if test="dto.type == 3">
            AND type=2
            <if test="dto.id != null">
                AND request_user_community in (select com_act.community_id from com_act where street_id=#{dto.id})
            </if>
        </if>
        <if test="dto.type == 4">
            AND type=3
            <if test="dto.id != null">
                AND request_user_community=#{dto.id}
            </if>
        </if>) as expirences,
        (select count(id) FROM com_sanshuo_event_info
        where event_result=1
        AND user_event_status not in(3,4)
        <if test="dto.type == 1">
            AND type=4
        </if>
        <if test="dto.type == 2">
            AND type=1
            <if test="dto.id != null">
                AND center_id=#{dto.id}
            </if>
        </if>
        <if test="dto.type == 3">
            AND type=2
            <if test="dto.id != null">
                AND request_user_community in (select com_act.community_id from com_act where street_id=#{dto.id})
            </if>
        </if>
        <if test="dto.type == 4">
            AND type=3
            <if test="dto.id != null">
                AND request_user_community=#{dto.id}
            </if>
        </if>) as success,
        (select count(id) FROM com_sanshuo_event_info
        where event_result=2
        AND user_event_status not in(3,4)
        <if test="dto.type == 1">
            AND type=4
        </if>
        <if test="dto.type == 2">
            AND type=1
            <if test="dto.id != null">
                AND center_id=#{dto.id}
            </if>
        </if>
        <if test="dto.type == 3">
            AND type=2
            <if test="dto.id != null">
                AND request_user_community in (select com_act.community_id from com_act where street_id=#{dto.id})
            </if>
        </if>
        <if test="dto.type == 4">
            AND type=3
            <if test="dto.id != null">
                AND request_user_community=#{dto.id}
            </if>
        </if>) as fail,
        (select count(id) from com_sanshuo_expert where `status`=1 and del_flag=1
        AND user_event_status not in(3,4)
        <if test="dto.type == 1">
            AND type=4
        </if>
        <if test="dto.type == 2">
            AND type=1
            <if test="dto.id != null">
                AND center_id=#{dto.id}
            </if>
        </if>
        <if test="dto.type == 3">
            AND type=2
            <if test="dto.id != null">
                AND request_user_community in (select com_act.community_id from com_act where street_id=#{dto.id})
            </if>
        </if>
        <if test="dto.type == 4">
            AND type=3
            <if test="dto.id != null">
                AND request_user_community=#{dto.id}
            </if>
        </if>) as expert,
        (select count(id) from com_sanshuo_event_info WHERE
        create_at BETWEEN DATE_FORMAT(#{beginDate}, '%Y-%m-%d 00:00:00') AND DATE_FORMAT(#{endDate}, '%Y-%m-%d 23:59:59')
        AND event_process_status not in (8)
        <if test="dto.type == 1">
            AND type=4
        </if>
        <if test="dto.type == 2">
            AND type=1
            <if test="dto.id != null">
                AND center_id=#{dto.id}
            </if>
        </if>
        <if test="dto.type == 3">
            AND type=2
            <if test="dto.id != null">
                AND request_user_community in (select com_act.community_id from com_act where street_id=#{dto.id})
            </if>
        </if>
        <if test="dto.type == 4">
            AND type=3
            <if test="dto.id != null">
                AND request_user_community=#{dto.id}
            </if>
        </if>) as monthIncrease,
        (select count(id) from com_sanshuo_event_info WHERE
        create_at BETWEEN DATE_FORMAT(#{beginDate}, '%Y-%m-%d 00:00:00') AND DATE_FORMAT(#{endDate}, '%Y-%m-%d 23:59:59')
        AND event_process_status not in (8)
        AND event_process_status = 6
        <if test="dto.type == 1">
            AND type=4
        </if>
        <if test="dto.type == 2">
            AND type=1
            <if test="dto.id != null">
                AND center_id=#{dto.id}
            </if>
        </if>
        <if test="dto.type == 3">
            AND type=2
            <if test="dto.id != null">
                AND request_user_community in (select com_act.community_id from com_act where street_id=#{dto.id})
            </if>
        </if>
        <if test="dto.type == 4">
            AND type=3
            <if test="dto.id != null">
                AND request_user_community=#{dto.id}
            </if>
        </if>) as monthFinish
        FROM com_sanshuo_event_info limit 1
    </select>
    <select id="dateAnalysisY" resultType="java.lang.Integer">
        SELECT COUNT(id) FROM com_sanshuo_event_info
        WHERE create_at BETWEEN DATE_FORMAT(#{beginDate}, '%Y-%m-%d 00:00:00') AND DATE_FORMAT(#{endDate}, '%Y-%m-%d 23:59:59')
        <if test="dto.type != null">
            <if test="dto.type == 1">
                AND type=4
            </if>
            <if test="dto.type==2">
                 AND type=1
                <if test="dto.id != null">
                    AND center_id=#{dto.id}
                </if>
            </if>
            <if test="dto.type == 3">
                AND type=2
                <if test="dto.id != null">
                    AND request_user_community in (select com_act.community_id from com_act where street_id=#{dto.id})
                </if>
            </if>
            <if test="dto.type == 4">
                AND type=3
                <if test="dto.id != null">
                    AND request_user_community=#{dto.id}
                </if>
            </if>
        </if>
    </select>
    <select id="dateAnalysisYTwo" resultType="java.lang.Integer">
        SELECT COUNT(id) FROM com_sanshuo_event_info
        WHERE create_at BETWEEN DATE_FORMAT(#{beginDate}, '%Y-%m-%d 00:00:00') AND DATE_FORMAT(#{endDate}, '%Y-%m-%d 23:59:59')
        AND event_process_status=6
        <if test="dto.type != null">
            <if test="dto.type == 1">
                AND type=4
            </if>
        <if test="dto.type==2">
            AND type=1
            <if test="dto.id != null">
                AND center_id=#{dto.id}
            </if>
        </if>
        <if test="dto.type == 3">
            AND type=2
            <if test="dto.id != null">
                AND request_user_community in (select com_act.community_id from com_act where street_id=#{dto.id})
            </if>
        </if>
        <if test="dto.type == 4">
            AND type=3
            <if test="dto.id != null">
                AND request_user_community=#{dto.id}
            </if>
        </if>
        </if>
    </select>
    <select id="eventRate" resultType="com.panzhihua.common.model.vos.sanshuo.EventRateVO">
        select count(id) as count,type from com_sanshuo_event_info
        where event_process_status not in(7.8)
        group by type
    </select>
    <select id="expertRate" resultType="com.panzhihua.common.model.vos.sanshuo.EventRateVO">
        select count(t.id) as count,t1.level as type  from com_sanshuo_event_info t
        left join com_sanshuo_expert t1 on t.specialist_id=t1.id
        where t.event_process_status not in(7.8)
        group by t1.level
    </select>
    <select id="mediateTypeRate" resultType="com.panzhihua.common.model.vos.sanshuo.EventRateVO">
        select count(t.id) as count,t1.name from com_sanshuo_event_info t
        left join com_mediate_type t1 on t.event_category=t1.id
        where t.event_process_status not in(7.8)
        group by t.event_category
    </select>
</mapper>
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComEventResourceMapper.xml
New file
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.panzhihua.service_community.dao.ComEventResourceMapper">
     <resultMap id="baseResult" type="com.panzhihua.service_community.entity.ComEventResource">
            <id property="id" column="id" />
            <result property="refId" column="ref_id" />
            <result property="transferId" column="transfer_id" />
            <result property="status" column="status" />
            <result property="type" column="type" />
            <result property="resourceName" column="resource_name" />
            <result property="resourceSize" column="resource_size" />
            <result property="resourceTime" column="resource_time" />
            <result property="url" column="url" />
            <result property="createBy" column="create_by" />
            <result property="createAt" column="create_at" />
            <result property="deleteFlag" column="delete_flag" />
    </resultMap>
    <sql id="columns">
        id,ref_id,transfer_id,status,type,resource_name,resource_size,resource_time,url,create_by,create_at,delete_flag
    </sql>
    <select id="pageByComEventResource" resultType="com.panzhihua.service_community.entity.ComEventResource">
        SELECT <include refid="columns" />
        FROM com_sanshuo_event_resource
    </select>
    <select id="listByComEventResource" resultType="com.panzhihua.service_community.entity.ComEventResource">
        SELECT <include refid="columns" />
        FROM com_sanshuo_event_resource
    </select>
</mapper>
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComEventTransferRecordMapper.xml
New file
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.panzhihua.service_community.dao.ComEventTransferRecordMapper">
     <resultMap id="baseResult" type="com.panzhihua.service_community.entity.ComEventTransferRecord">
            <id property="id" column="id" />
            <result property="eventId" column="event_id" />
            <result property="parentsTransferEventId" column="parents_transfer_event_id" />
            <result property="fromType" column="from_type" />
            <result property="fromId" column="from_id" />
            <result property="fromName" column="from_name" />
            <result property="fromUserId" column="from_user_id" />
            <result property="toType" column="to_type" />
            <result property="toId" column="to_id" />
            <result property="toName" column="to_name" />
            <result property="toUserId" column="to_user_id" />
            <result property="save" column="save" />
            <result property="processResult" column="process_result" />
            <result property="processResultData" column="process_result_data" />
            <result property="processDate" column="process_date" />
            <result property="processBy" column="process_by" />
            <result property="processByName" column="process_by_name" />
            <result property="processType" column="process_type" />
            <result property="createAt" column="create_at" />
            <result property="specialistId" column="specialist_id" />
            <result property="specialistOrg" column="specialist_org" />
            <result property="specialistLevel" column="specialist_level" />
            <result property="specialistName" column="specialist_name" />
            <result property="eventResult" column="event_result" />
            <result property="eventStatus" column="event_status" />
    </resultMap>
    <sql id="columns">
        id,event_id,parents_transfer_event_id,from_type,from_id,from_name,from_user_id,to_type,to_id,to_name,to_user_id,save,process_result,process_result_data,process_date,process_by,process_by_name,process_type,create_at,specialist_id,specialist_org,specialist_level,specialist_name,event_result,event_status
    </sql>
    <select id="pageByComEventTransferRecord" resultType="com.panzhihua.service_community.entity.ComEventTransferRecord">
        SELECT <include refid="columns" />
        FROM com_sanshuo_event_transfer_record
    </select>
    <select id="listByComEventTransferRecord" resultType="com.panzhihua.service_community.entity.ComEventTransferRecord">
        SELECT <include refid="columns" />
        FROM com_sanshuo_event_transfer_record
    </select>
</mapper>
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComMediaTypeMapper.xml
New file
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.panzhihua.service_community.dao.ComMediateTypeDao">
    <select id="eventList" resultType="com.panzhihua.service_community.entity.ComMediateType">
        select * from com_mediate_type
        <if test="keyWord != null and keyWord != ''">
            where name like concat('%',#{keyWord},'%')
        </if>
    </select>
</mapper>
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSanshuoEventDao.xml
New file
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.panzhihua.service_community.dao.ComSanshuoEventDao">
    <resultMap id="BaseResultMap" type="com.panzhihua.service_community.entity.ComSanshuoEvent">
            <id property="id" column="id" jdbcType="INTEGER"/>
            <result property="name" column="name" jdbcType="VARCHAR"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
            <result property="status" column="status" jdbcType="INTEGER"/>
            <result property="delFlag" column="del_flag" jdbcType="INTEGER"/>
    </resultMap>
    <sql id="Base_Column_List">
       select id,name,create_time,
        update_time,status,del_flag from com_sanshuo_event
    </sql>
    <select id="pageEvent" resultType="com.panzhihua.service_community.entity.ComSanshuoEvent">
        <include refid="Base_Column_List"/>
        where name like concat('%',#{comSanshuoEventDTO.name},'%')
    </select>
</mapper>
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSanshuoExpertDao.xml
New file
@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.panzhihua.service_community.dao.ComSanshuoExpertDao">
    <resultMap id="BaseResultMap" type="com.panzhihua.service_community.entity.ComSanshuoExpert">
            <id property="id" column="id" jdbcType="BIGINT"/>
            <result property="level" column="level" jdbcType="TINYINT"/>
            <result property="communityId" column="community_id" jdbcType="BIGINT"/>
            <result property="workTime" column="work_time" jdbcType="VARCHAR"/>
            <result property="goodAt" column="good_at" jdbcType="VARCHAR"/>
            <result property="name" column="name" jdbcType="VARCHAR"/>
            <result property="avatar" column="avatar" jdbcType="VARCHAR"/>
            <result property="phone" column="phone" jdbcType="VARCHAR"/>
            <result property="account" column="account" jdbcType="VARCHAR"/>
            <result property="password" column="password" jdbcType="VARCHAR"/>
            <result property="status" column="status" jdbcType="VARCHAR"/>
            <result property="delFlag" column="del_flag" jdbcType="VARCHAR"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
            <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
            <result property="introduction" column="introduction" jdbcType="VARCHAR"/>
            <result property="streetId" column="street_id" jdbcType="BIGINT"/>
            <result property="industryCenterId" column="industry_center_id" jdbcType="VARCHAR"/>
            <result property="param1" column="param1" jdbcType="VARCHAR"/>
            <result property="unit" column="unit" jdbcType="VARCHAR"/>
    </resultMap>
    <sql id="Base_Column_List">
        select id,level,community_id,
        work_time,good_at,name,
        avatar,phone,account,
        password,status,del_flag,
        create_time,create_by,update_time,
        introduction,street_id,industry_center_id,
        param1,unit from com_sanshuo_expert
    </sql>
    <select id="expertShow" resultType="com.panzhihua.common.model.vos.sanshuo.ExpertShowVO">
        select  count(id) as 'count',level from com_sanshuo_expert where status=1 and del_flag=1 group by level
    </select>
    <select id="expertPage"  resultType="com.panzhihua.common.model.vos.sanshuo.ComSanshuoExpertVO">
        select id,level,community_id,
        work_time,good_at,name,
        avatar,phone,account,
        password,status,del_flag,
        create_time,create_by,update_time,
        introduction,street_id,industry_center_id,
        param1,unit from com_sanshuo_expert
        where del_flag=1
            <if test="keyWord != null and keyWord != ''">
                AND unit like concat('%',#{keyWord},'%')
                OR name like concat('%',#{keyWord},'%')
                OR phone like concat('%',#{keyWord},'%')
            </if>
            <if test="range != null and range != ''">
                <if test="range == 3">
                  AND street_id=#{id}
                </if>
                <if test="range == 4">
                  AND community_id=#{id}
                </if>
                <if test="range == 2">
                  AND industry_center_id=#{id}
                </if>
            </if>
    </select>
    <select id="selectExpertIndustry" resultType="com.panzhihua.common.model.vos.sanshuo.ExpertShowVO">
        select  count(t.id) as 'count',t1.name,t1.id from com_sanshuo_expert t
        left join com_sanshuo_industry_center t1 on t.industry_center_id=t1.id
        where t.level=2 and t.status=1 and t.del_flag=1
        group by t1.name
    </select>
    <select id="selectExpertStreet" resultType="com.panzhihua.common.model.vos.sanshuo.ExpertShowVO">
        select  count(t.id) as 'count',t1.name,t1.street_id as id from com_sanshuo_expert t
        left join com_street t1 on t.street_id=t1.street_id
        where t.level=3 and t.status=1 and t.del_flag=1
        group by t1.name
    </select>
    <select id="selectExpertCommunity" resultType="com.panzhihua.common.model.vos.sanshuo.ExpertShowVO">
        select  count(t.id) as 'count',t1.name,t1.community_id as id from com_sanshuo_expert t
        left join com_act t1 on t.community_id=t1.community_id
        where t.level=4 and t.status=1 and t.del_flag=1
        group by t1.name
    </select>
    <select id="selectExpertList" resultType="com.panzhihua.service_community.entity.ComSanshuoExpert">
        select t.*,count (select id from com_sanshuo_event_info where specialist_id = t.id )from com_sanshuo_expert as t
        left join com_sanshuo_event_info t1 on t.id=t1.specialist_id
        where t.status=1 and t.del_flag=1
    </select>
</mapper>
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSanshuoIndustryCenterDao.xml
New file
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.panzhihua.service_community.dao.ComSanshuoIndustryCenterDao">
    <resultMap id="BaseResultMap" type="com.panzhihua.service_community.entity.ComSanshuoIndustryCenter">
            <id property="id" column="id" jdbcType="INTEGER"/>
            <result property="name" column="name" jdbcType="VARCHAR"/>
            <result property="phone" column="phone" jdbcType="VARCHAR"/>
            <result property="account" column="account" jdbcType="VARCHAR"/>
            <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
            <result property="status" column="status" jdbcType="TINYINT"/>
            <result property="delFlag" column="del_flag" jdbcType="TINYINT"/>
            <result property="streetId" column="street_id" jdbcType="BIGINT"/>
            <result property="communityId" column="community_id" jdbcType="BIGINT"/>
    </resultMap>
    <sql id="Base_Column_List">
        select id,name,phone,
        account,create_by,create_time,
        update_time,status,del_flag,
        street_id,community_id from com_sanshuo_industry_center
    </sql>
    <select id="pageIndustryCenter"
            resultType="com.panzhihua.common.model.vos.sanshuo.ComSanShuoIndustryCenterVO">
        <include refid="Base_Column_List"/>
        <where>
            <if test="keyWord != null and keyWord != ''">
               name like concat('%',#{keyWord},'%')
               OR phone like concat('%',#{keyWord},'%')
            </if>
        </where>
    </select>
    <select id="indstryList" resultType="com.panzhihua.common.model.vos.sanshuo.ExpertRangeVO">
        select id,name from com_sanshuo_industry_center where status=1 and del_flag=1
    </select>
    <select id="streetList" resultType="com.panzhihua.common.model.vos.sanshuo.ExpertRangeVO">
        select street_id as id,name from com_street
    </select>
    <select id="communityList" resultType="com.panzhihua.common.model.vos.sanshuo.ExpertRangeVO">
        select community_id as id,name from com_act
    </select>
</mapper>
springcloud_k8s_panzhihuazhihuishequ/service_community/src/test/java/com/panzhihua/service_community/service/impl/ComEventServiceImplTest.java
New file
@@ -0,0 +1,113 @@
package com.panzhihua.service_community.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.common.model.vos.LoginUserInfoVO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.sanshuo.ComEventArchiveVO;
import com.panzhihua.common.model.vos.sanshuo.ComEventConciliationVO;
import com.panzhihua.common.model.vos.sanshuo.ComEventDetailVO;
import com.panzhihua.common.model.vos.sanshuo.ComEventRequestImageVO;
import com.panzhihua.service_community.ServiceCommunityApplication;
import com.panzhihua.service_community.entity.ComEvent;
import com.panzhihua.service_community.service.IComEventService;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
/**
 * 应用模块名称<p>
 * 代码描述<p>
 * Copyright: Copyright (C) 2022 XXX, Inc. All rights reserved. <p>
 * Company: 成都呐喊信息技术有限公司<p>
 *
 * @author manailin
 * @since 2022/9/13 16:27
 */
@Slf4j
@SpringBootTest(classes = ServiceCommunityApplication.class)
class ComEventServiceImplTest {
    @Resource
    private IComEventService comEventService;
    @Test
    void pageByComEvent() {
        Page pagination = new Page(1, 10);
        ComEvent comEvent=new ComEvent();
        comEvent.setCreateBy(1l);
        R data = comEventService.pageByComEvent(comEvent, pagination);
        log.info(JSONObject.toJSONString(data));
    }
    @Test
    void listByComEvent() {
    }
    @Test
    void insertComEvent() {
        ComEvent comEvent =new ComEvent();
        comEvent.setRequestUserId(1l);
        comEvent.setRequestUserEventDes("测试申请数据");
        comEvent.setType("2");
        comEvent.setEventCategory(1l);
        comEvent.setSpecialistId(1L);
        comEvent.setAppointmentTime(new Date());
        List<ComEventRequestImageVO> images =new ArrayList<>();
        ComEventRequestImageVO comEventRequestImageVO =new ComEventRequestImageVO();
        comEventRequestImageVO.setUrl("www.baidu.com");
        images.add(comEventRequestImageVO);
        comEvent.setImages(images);
        comEventService.insertComEvent(comEvent);
    }
    @Test
    void updateComEvent() {
    }
    @Test
    void updateEnabled() {
    }
    @Test
    void conciliationEvent() {
    }
    @Test
    void cancelRequest() {
        comEventService.cancelRequest(1569688381582086144L);
    }
    @Test
    void detail() {
        HashMap data = comEventService.detail("1569688381582086144");
        log.info(JSONObject.toJSONString(data));
    }
    @Test
    void calculate() {
        R data = comEventService.calculate();
        log.info(JSONObject.toJSONString(data));
    }
    @Test
    void archiveRequest() {
        ComEventArchiveVO comEventArchiveVO =new ComEventArchiveVO();
        comEventArchiveVO.setId(1L);
        comEventArchiveVO.setResult("测试数据");
        comEventArchiveVO.setImages(null);
        LoginUserInfoVO sysUser =new LoginUserInfoVO();
        sysUser.setUserId(1L);
        R data = comEventService.archiveRequest(comEventArchiveVO,sysUser);
        log.info(JSONObject.toJSONString(data));
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java
@@ -1451,6 +1451,22 @@
        return userService.tfLogin(uuLoginVO);
    }
    /**
     * 三说会堂新增业务中心或专家账号
     * */
    @PostMapping("/sanshuoAddUser")
    public R sanshuoAddUser(@RequestBody AdministratorsUserVO administratorsUserVO){
        return userService.addExpertOrIndustryCenter(administratorsUserVO);
    }
    /**
     * 三说会堂后台重置密码
     * */
    @GetMapping("/sanshuoResetPassword")
    public R sanshuoAddUser(@RequestParam("account") String account,@RequestParam("pass")String password){
        return userService.resetPassExpertOrIndustryCenter(account,password);
    }
    @GetMapping("/accept")
    public R accept(@RequestParam("userId")Long userId){
        return userService.accept(userId);
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/UserService.java
@@ -922,6 +922,16 @@
    R tfLogin(UuLoginVO uuLoginVO);
    /**
     * 三说会堂新增业务中心或专家账号
     * */
    R addExpertOrIndustryCenter(AdministratorsUserVO administratorsUserVO);
    /**
     * 三说会堂后台重置密码
     * */
    R resetPassExpertOrIndustryCenter(String account,String password);
    /**
     * 用户授权
     * @param userId
     * @return
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java
@@ -470,6 +470,28 @@
            }
        }
        loginUserInfoVO.setIsRealNamed(sysUserDO.getIdCard() != null);
        //是否社区或街道后台
        int countSocialOrg=userDao.countSocialOrg(sysUserDO.getUserId());
        if(countSocialOrg>0){
            loginUserInfoVO.setUserType(3);
        }
        else {
            if(loginUserInfoVO.getStreetId()!=null){
                loginUserInfoVO.setUserType(1);
                loginUserInfoVO.setLevel(3);
            }
            else {
                loginUserInfoVO.setUserType(2);
                loginUserInfoVO.setLevel(4);
            }
        }
        if (sysUserDO.getType().equals(11)){
            loginUserInfoVO.setLevel(5);
        }else if (sysUserDO.getType().equals(12)){
            loginUserInfoVO.setLevel(2);
        }else if (isNull(loginUserInfoVO.getLevel())){
            loginUserInfoVO.setLevel(1);
        }
        return R.ok(loginUserInfoVO);
    }
@@ -745,10 +767,19 @@
        else {
            if(loginUserInfoVO.getStreetId()!=null){
                loginUserInfoVO.setUserType(1);
                loginUserInfoVO.setLevel(3);
            }
            else {
                loginUserInfoVO.setUserType(2);
                loginUserInfoVO.setLevel(4);
            }
        }
        if (sysUserDO.getType().equals(11)){
            loginUserInfoVO.setLevel(5);
        }else if (sysUserDO.getType().equals(12)){
            loginUserInfoVO.setLevel(2);
        }else if (isNull(loginUserInfoVO.getLevel())){
            loginUserInfoVO.setLevel(1);
        }
        return R.ok(loginUserInfoVO);
    }
@@ -3677,6 +3708,56 @@
        return R.ok();
    }
    /**
     * 三说会堂新增业务中心或专家账号
     * */
    @Override
    public R addExpertOrIndustryCenter(AdministratorsUserVO administratorsUserVO) {
        SysUserDO sysUserDO=new SysUserDO();
        //是否存在相同账号
        SysUserDO userDO = userDao.selectOne(new QueryWrapper<SysUserDO>().eq("account", administratorsUserVO.getAccount()));
        if (isNull(userDO)){
            sysUserDO.setCreateAt(new Date());
            sysUserDO.setUserId(administratorsUserVO.getUserId());
            sysUserDO.setAccount(administratorsUserVO.getAccount());
            sysUserDO.setPassword(administratorsUserVO.getPassword());
            sysUserDO.setName(administratorsUserVO.getName());
            if (nonNull(administratorsUserVO.getImageUrl())){
                sysUserDO.setImageUrl(administratorsUserVO.getImageUrl());
            }
            if (nonNull(administratorsUserVO.getType())){
                sysUserDO.setType(administratorsUserVO.getType());
            }
            userDao.insert(sysUserDO);
            //分配权限
            SysUserRoleDO sysUserRole=new SysUserRoleDO();
            sysUserRole.setUserId(sysUserDO.getUserId());
            if (sysUserDO.getType().equals(11)){
                sysUserRole.setRoleId(Long.parseLong(UserConstants.SANSHUO_EXPERT_ROLE));
            }else{
                sysUserRole.setRoleId(Long.parseLong(UserConstants.SANSHUO_INDUSTRY_CENTER_ROLE));
            }
            //配置权限
            sysUserRoleDAO.insert(sysUserRole);
            return R.ok();
        }
        return R.fail("账户名已存在");
    }
    /**
     * 三说会堂后台重置密码
     * */
    @Override
    public R resetPassExpertOrIndustryCenter(String account,String password) {
        SysUserDO sysUserDO = userDao.selectOne(new QueryWrapper<SysUserDO>().eq("account", account));
        if (nonNull(sysUserDO)){
            sysUserDO.setPassword(password);
            userDao.updateById(sysUserDO);
            return R.ok();
        }
        return R.fail("修改失败");
    }
    @Override
    public R getAreaAndStreet() {