mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
package com.panzhihua.service_community.dao;
 
import java.util.List;
import java.util.Map;
 
import com.panzhihua.service_community.model.dos.EventDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
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.bigscreen.event.ScreenEventListDTO;
import com.panzhihua.common.model.dtos.grid.GridEventStatisticsDTO;
import com.panzhihua.common.model.dtos.grid.PageEventDTO;
import com.panzhihua.common.model.dtos.grid.PageEventManageDTO;
import com.panzhihua.common.model.dtos.grid.PageEventSpecialPopulationDTO;
import com.panzhihua.common.model.dtos.grid.PagePublicityEventCommunityDTO;
import com.panzhihua.common.model.dtos.grid.PagePublicityEventDTO;
import com.panzhihua.common.model.vos.community.StatisticsCommVO;
import com.panzhihua.common.model.vos.community.screen.civil.CivilVillageStatisticsVO;
import com.panzhihua.common.model.vos.community.screen.event.EventComprehensiveGovernanceStatisticsVO;
import com.panzhihua.common.model.vos.community.screen.event.EventGridIncidentStatisticsVO;
import com.panzhihua.common.model.vos.community.screen.event.EventListVO;
import com.panzhihua.common.model.vos.grid.ComMapGridEventVO;
import com.panzhihua.common.model.vos.grid.EventSpecialPopulationVO;
import com.panzhihua.common.model.vos.grid.EventStatisticsAllAdminVO;
import com.panzhihua.common.model.vos.grid.EventVO;
import com.panzhihua.common.model.vos.grid.GridEventStatisticsDetailVO;
import com.panzhihua.common.model.vos.grid.GridEventStatisticsVO;
import com.panzhihua.common.model.vos.screen.DateScreenVO;
import com.panzhihua.common.model.vos.screen.EventDetailWorkVO;
import com.panzhihua.common.model.vos.screen.EventTypeWorkVO;
import com.panzhihua.common.model.vos.screen.EventWorkVO;
import com.panzhihua.common.model.vos.screen.ScreenDrawEventPopulationTotalVO;
 
/**
 * DAO
 *
 * @author cedoo email:cedoo(a)qq.com
 * @version 1.0
 * @date 2021-05-26
 * @since 1.0
 */
@Mapper
public interface EventMapper extends BaseMapper<EventDO> {
 
    /**
     * 分页查询事件
     *
     * @param pageEventDTO
     * @return
     */
    IPage<EventVO> findByPage(Page page, @Param("pageEventDTO") PageEventDTO pageEventDTO);
 
    /**
     * 分页查询宣传教育
     *
     * @param pagePublicityEventDTO
     * @return
     */
    IPage<EventVO> findPublicityByPage(Page page,
                                       @Param("pagePublicityEventDTO") PagePublicityEventDTO pagePublicityEventDTO);
 
    /**
     * 地图模块-根据网格id查询网格办件事件
     *
     * @param gridId
     *            网格id
     * @return 网格办件事件
     */
    List<ComMapGridEventVO> getEventByGridId(@Param("gridId") Long gridId);
 
    /**
     * 根据网格员id查询网格员头像url
     *
     * @param gridMemberId
     *            网格员id
     * @return 头像url
     */
    Map<String, String> getGridMemberImageUrl(@Param("gridMemberId") Long gridMemberId);
 
    /**
     * 查询事件(管理)列表
     *
     * @param page
     * @param pageEventManageDTO
     * @return
     */
    IPage<EventVO> findToManageByPage(Page page, @Param("pageEventManageDTO") PageEventManageDTO pageEventManageDTO);
 
    /**
     * 查询事件(管理)列表
     *
     * @param page
     * @param pagePublicityEventCommunityDTO
     * @return
     */
    IPage<EventVO> findCommunityPublicityByPage(Page page,
                                                @Param("pagePublicityEventCommunityDTO") PagePublicityEventCommunityDTO pagePublicityEventCommunityDTO);
 
    /**
     * 后台管理-统计模块
     *
     * @param communityId
     *            社区id
     * @return 统计信息
     */
    EventStatisticsAllAdminVO eventStatistics(@Param("communityId") Long communityId);
 
    Integer getEventCountByGridIds(@Param("ids") List<Long> ids);
 
    /**
     * 根据网格id查询网格统计数据
     *
     * @param gridId
     *            网格id
     * @return 网格统计数据
     */
    GridEventStatisticsVO getGridEventStatisticsByApp(@Param("gridId") Long gridId);
 
    /**
     * 查询网格事件统计数据
     *
     * @param statisticsDTO
     *            请求参数
     * @return 网格事件统计数据
     */
    GridEventStatisticsDetailVO
        getGridEventDetailStatisticsByApp(@Param("statisticsDTO") GridEventStatisticsDTO statisticsDTO);
 
    /**
     * 查询时间发布者基本信息
     *
     * @param gridMemberId
     * @return
     */
    Map<String, Object> getUserBaseInfo(@Param("gridMemberId") Long gridMemberId);
 
    /**
     * 事件大屏查询事件列表
     *
     * @param eventListDTO
     *            请求参数
     * @return 事件列表
     */
    IPage<EventListVO> getScreenEventList(Page page, @Param("eventListDTO") ScreenEventListDTO eventListDTO);
 
    /**
     * 特殊人群上报-社区人口数据列表
     *
     * @param specialPopulationDTO
     *            请求参数
     * @return 社区人口数据列表
     */
    IPage<EventSpecialPopulationVO> specialPopulationList(Page page,
                                                          @Param("specialPopulationDTO") PageEventSpecialPopulationDTO specialPopulationDTO);
 
    Map<String, Long> countByCommunityId(@Param("communityId") Long communityId, @Param("nowDate") String nowDate);
 
    DateScreenVO countByAvgCommunityId(@Param("communityId") Long communityId);
 
    List<EventDetailWorkVO> getWorkScreenEventList(@Param("communityId") Long communityId);
 
    EventWorkVO countByTime(@Param("start") String start, @Param("end") String end,
                            @Param("communityId") Long communityId);
 
    EventTypeWorkVO getComplete(@Param("communityId") Long communityId);
 
    EventTypeWorkVO getNoComplete(@Param("communityId") Long communityId);
 
    Map<String, Long> getSSPEventTotal(@Param("communityId") Long communityId);
 
    List<EventGridIncidentStatisticsVO> getEventListByCommunityId(@Param("communityId") Long communityId);
 
    List<CivilVillageStatisticsVO> getCivilScreenVillageList(@Param("communityId") Long communityId);
 
    ScreenDrawEventPopulationTotalVO getVillagePopulationTotal(@Param("villageId") Long villageId);
 
    List<Map<String, Object>> getMemberBuildName(@Param("userId") Long userId);
 
    Integer getPopulationByLabelCount(@Param("floor") String floor, @Param("villageId") Long villageId);
 
    /**
     * 西区大数据分析平台-综合治理栏数据
     * @return
     */
    EventComprehensiveGovernanceStatisticsVO selectComprehensiveGovernanceStatics();
 
    List<EventGridIncidentStatisticsVO> getGridsGovernanceEventList(@Param("communityId") Long communityId);
 
    ScreenDrawEventPopulationTotalVO getVillagePopulationTotalNew(@Param("villageId") Long villageId);
 
    List<StatisticsCommVO> selectStatisticsForAge(@Param("villageIds") List<Long> villageIds);
}