wlzboy
2025-09-21 b5b16a26de0d84d7b5fb69b584377bdc3582e3ab
ruoyi-admin/src/main/java/com/ruoyi/web/controller/evaluation/EvaluationController.java
@@ -1,6 +1,7 @@
package com.ruoyi.web.controller.evaluation;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -190,6 +191,22 @@
    /**
     * 获取评价统计数据
     */
    @PreAuthorize("@ss.hasPermi('evaluation:statistics')")
    @GetMapping("/evaluation/statistics")
    public AjaxResult getStatistics(CustomerEvaluation customerEvaluation) {
        try {
            // 获取统计数据
            Map<String, Object> statistics = customerEvaluationService.getEvaluationStatistics(customerEvaluation);
            return success(statistics);
        } catch (Exception e) {
            logger.error("获取评价统计数据失败", e);
            return error("获取统计数据失败");
        }
    }
    /**
     * 获取客户端IP地址
     */
    private String getClientIP(HttpServletRequest request) {