package cn.iocoder.yudao.module.aftersales.controller.admin.ticket.vo.ticket; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import java.math.BigDecimal; import java.util.List; /** * 售后工单 - 工单助手统计 Response VO */ @Schema(description = "售后工单 - 工单助手统计 Response VO") @Data public class AfterSaleTicketStatisticsRespVO { @Schema(description = "工单总数", example = "42") private Long totalCount; @Schema(description = "处理中数量", example = "8") private Long processingCount; @Schema(description = "待退货数量", example = "2") private Long waitingReturnCount; @Schema(description = "待退款/换货数量", example = "1") private Long waitingRefundCount; @Schema(description = "已完结(待回访)数量", example = "5") private Long completedCount; @Schema(description = "已关闭(归档)数量", example = "20") private Long closedCount; @Schema(description = "已取消数量", example = "1") private Long canceledCount; @Schema(description = "今日新增数量", example = "3") private Long todayCreateCount; @Schema(description = "今日完结数量", example = "2") private Long todayResolveCount; @Schema(description = "已现场签到工单数量", example = "15") private Long signInCount; @Schema(description = "被升级过的工单数量", example = "4") private Long escalatedCount; @Schema(description = "平均完结耗时(小时)", example = "6.5") private BigDecimal avgResolveHours; @Schema(description = "回访满意率(百分比,0-100)", example = "96.7") private BigDecimal satisfactionRate; @Schema(description = "按状态统计") private List statusCounts; @Schema(description = "按问题类型统计") private List issueTypeCounts; @Schema(description = "按处理人统计工作量") private List handlerWorkloads; @Schema(description = "状态统计") @Data public static class StatusCount { @Schema(description = "状态", example = "10") private Integer status; @Schema(description = "状态名称", example = "处理中") private String statusName; @Schema(description = "数量", example = "8") private Long count; } @Schema(description = "问题类型统计") @Data public static class IssueTypeCount { @Schema(description = "问题类型", example = "2") private Integer issueType; @Schema(description = "问题类型名称", example = "维修问题") private String issueTypeName; @Schema(description = "数量", example = "12") private Long count; } @Schema(description = "处理人工作量") @Data public static class HandlerWorkload { @Schema(description = "处理人用户编号", example = "2") private Long handlerUserId; @Schema(description = "处理人名称", example = "张工") private String handlerUserName; @Schema(description = "处理中数量", example = "3") private Long processingCount; @Schema(description = "累计处理数量", example = "12") private Long totalCount; } }