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
(ZonedDateTime startTime, ZonedDateTime endTime, String format) private Double
getAverageResolutionTime
(ZonedDateTime startTime, ZonedDateTime endTime) private Double
getAverageResponseTime
(ZonedDateTime startTime, ZonedDateTime endTime) getOverallStats
(ZonedDateTime startTime, ZonedDateTime endTime) getResponseTimeTrend
(ZonedDateTime startTime, ZonedDateTime endTime) private Long
getStatusCount
(String status, ZonedDateTime startTime, ZonedDateTime endTime) getStatusDistribution
(ZonedDateTime startTime, ZonedDateTime endTime) private Long
getTotalCount
(ZonedDateTime startTime, ZonedDateTime endTime) getTypeDistribution
(ZonedDateTime startTime, ZonedDateTime endTime) getUserStats
(Long userId, ZonedDateTime startTime, ZonedDateTime endTime) private Long
getUserStatusCount
(Long userId, String status, ZonedDateTime startTime, ZonedDateTime endTime) private Long
getUserTotalCount
(Long userId, ZonedDateTime startTime, ZonedDateTime endTime) getUserTypeDistribution
(Long userId, ZonedDateTime startTime, ZonedDateTime 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, ZonedDateTime startTime, ZonedDateTime endTime) -
getUserTypeDistribution
private Map<String,Long> getUserTypeDistribution(Long userId, ZonedDateTime startTime, ZonedDateTime endTime)
-