Package com.bytedesk.voc.feedback.stats
Class FeedbackStatsServiceImpl
java.lang.Object
com.bytedesk.voc.feedback.stats.FeedbackStatsServiceImpl
- All Implemented Interfaces:
FeedbackStatsService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]
exportExcel
(FeedbackStats stats, Map<String, Long> typeDistribution, Map<String, Long> statusDistribution, Map<String, Double> responseTrend) private byte[]
exportPdf
(FeedbackStats stats, Map<String, Long> typeDistribution, Map<String, Long> statusDistribution, Map<String, Double> responseTrend) byte[]
exportStatsReport
(LocalDateTime startTime, LocalDateTime endTime, String format) private Double
getAverageResolutionTime
(LocalDateTime startTime, LocalDateTime endTime) private Double
getAverageResponseTime
(LocalDateTime startTime, LocalDateTime endTime) getOverallStats
(LocalDateTime startTime, LocalDateTime endTime) getResponseTimeTrend
(LocalDateTime startTime, LocalDateTime endTime) private Long
getStatusCount
(String status, LocalDateTime startTime, LocalDateTime endTime) getStatusDistribution
(LocalDateTime startTime, LocalDateTime endTime) private Long
getTotalCount
(LocalDateTime startTime, LocalDateTime endTime) getTypeDistribution
(LocalDateTime startTime, LocalDateTime endTime) getUserStats
(Long userId, LocalDateTime startTime, LocalDateTime endTime) private Long
getUserStatusCount
(Long userId, String status, LocalDateTime startTime, LocalDateTime endTime) private Long
getUserTotalCount
(Long userId, LocalDateTime startTime, LocalDateTime endTime) getUserTypeDistribution
(Long userId, LocalDateTime startTime, LocalDateTime endTime)
-
Field Details
-
jdbcTemplate
@Autowired private org.springframework.jdbc.core.JdbcTemplate jdbcTemplate
-
-
Constructor Details
-
FeedbackStatsServiceImpl
public FeedbackStatsServiceImpl()
-
-
Method Details
-
getOverallStats
- Specified by:
getOverallStats
in interfaceFeedbackStatsService
-
getUserStats
- Specified by:
getUserStats
in interfaceFeedbackStatsService
-
getTypeDistribution
- Specified by:
getTypeDistribution
in interfaceFeedbackStatsService
-
getStatusDistribution
- Specified by:
getStatusDistribution
in interfaceFeedbackStatsService
-
getResponseTimeTrend
- Specified by:
getResponseTimeTrend
in interfaceFeedbackStatsService
-
exportStatsReport
- Specified by:
exportStatsReport
in interfaceFeedbackStatsService
-
exportExcel
-
exportPdf
-
getTotalCount
-
getStatusCount
-
getAverageResponseTime
-
getAverageResolutionTime
-
getUserTotalCount
-
getUserStatusCount
private Long getUserStatusCount(Long userId, String status, LocalDateTime startTime, LocalDateTime endTime) -
getUserTypeDistribution
private Map<String,Long> getUserTypeDistribution(Long userId, LocalDateTime startTime, LocalDateTime endTime)
-