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
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);
  IPage<ComEvent> pageByComEventExpert(@Param("eventIds") List<Long> eventIds,@Param("comEvent") ComEvent comEvent, Page pagination);
  /**
   *
   * 获取专家名下的所有事件id
   * @param expertId 专家id
   * */
   List<Long> listEventIds(Long expertId);
      /**
       * description 三说会堂事件表列表数据
       *
       * @param  comEvent 接口管理对象
       * @return R  数据结果
       * @author manailin
       * @date   2022-09-07 11:23:51
       */
   List<ComEvent> listByComEvent(@Param("comEvent") ComEvent comEvent,@Param("requestUserId") Long requestUserId);
 
    List<ComEventCalculateVO> calculate(@Param("comEvent") ComEvent comEvent);
 
    int caculateSum(@Param("comEvent")ComEvent comEvent);
 
    /**
     * 大屏事件统计
     * @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();
 
    /**
     * 获取用户头像
     * */
    String getUserAvatar(Long userId);
 
    /**
     * 添加事件-专家对应记录
     * @param status 流转状态(
     * 0创建时分配,只有一条记录
     * 1上报后重新分配
     * 2拒绝后重新分配
     * )
     * */
    void insertEventAndExpertRecord(@Param("eventId") Long eventId, @Param("expertId") Long experId,@Param("status")Integer status);
 
    void updateLog(@Param("eventId") Long id, @Param("expertId") Long specialistId);
 
    /**
     * 社区专家受理数量
     * */
    int expertSolveCountCommunity();
 
    /**
     * 行业分中心专家受理数量计算
     * */
    int expertSolveCountCenter();
 
 
}