| | |
| | | package com.ruoyi.web.controller.evaluation; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | * 获取评价统计数据 |
| | | */ |
| | | @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) { |