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 DoublegetAverageResolutionTime(ZonedDateTime startTime, ZonedDateTime endTime) private DoublegetAverageResponseTime(ZonedDateTime startTime, ZonedDateTime endTime) getOverallStats(ZonedDateTime startTime, ZonedDateTime endTime) getResponseTimeTrend(ZonedDateTime startTime, ZonedDateTime endTime) private LonggetStatusCount(String status, ZonedDateTime startTime, ZonedDateTime endTime) getStatusDistribution(ZonedDateTime startTime, ZonedDateTime endTime) private LonggetTotalCount(ZonedDateTime startTime, ZonedDateTime endTime) getTypeDistribution(ZonedDateTime startTime, ZonedDateTime endTime) getUserStats(Long userId, ZonedDateTime startTime, ZonedDateTime endTime) private LonggetUserStatusCount(Long userId, String status, ZonedDateTime startTime, ZonedDateTime endTime) private LonggetUserTotalCount(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:
getOverallStatsin interfaceFeedbackStatsService
-
getUserStats
- Specified by:
getUserStatsin interfaceFeedbackStatsService
-
getTypeDistribution
- Specified by:
getTypeDistributionin interfaceFeedbackStatsService
-
getStatusDistribution
- Specified by:
getStatusDistributionin interfaceFeedbackStatsService
-
getResponseTimeTrend
- Specified by:
getResponseTimeTrendin interfaceFeedbackStatsService
-
exportStatsReport
- Specified by:
exportStatsReportin 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)
-