From 705609282f99b21eea927dd2e64cb1672b1e30d5 Mon Sep 17 00:00:00 2001
From: luqingjie <544309509@qq.com>
Date: Sat, 17 Oct 2026 22:22:05 -0400
Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../PaymentDashboardController.java | 21 +++++
.../system/mapper/PaymentDashboardMapper.java | 81 +++++++++++++++++++
.../service/PaymentDashboardService.java | 32 ++++++++
3 files changed, 134 insertions(+)
create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/controller/PaymentDashboardController.java
create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/PaymentDashboardMapper.java
create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/PaymentDashboardService.java
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/controller/PaymentDashboardController.java b/ruoyi-system/src/main/java/com/ruoyi/system/controller/PaymentDashboardController.java
new file mode 100644
index 0000000..3337880
--- /dev/null
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/controller/PaymentDashboardController.java
@@ -0,0 +1,21 @@
+package com.ruoyi.system.controller;
+
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.system.service.PaymentDashboardService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/** 登录首页支付经营数据。 */
+@RestController
+@RequestMapping("/system/dashboard")
+public class PaymentDashboardController {
+ @Autowired
+ private PaymentDashboardService dashboardService;
+
+ @GetMapping("/overview")
+ public AjaxResult overview() {
+ return AjaxResult.success(dashboardService.overview());
+ }
+}
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/PaymentDashboardMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/PaymentDashboardMapper.java
new file mode 100644
index 0000000..1456630
--- /dev/null
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/PaymentDashboardMapper.java
@@ -0,0 +1,81 @@
+package com.ruoyi.system.mapper;
+
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.List;
+import java.util.Map;
+
+/** 支付首页聚合查询,所有查询都接受服务端确定的用户数据范围。 */
+public interface PaymentDashboardMapper {
+ @Select({""})
+ Map selectAppsSummary(@Param("userId") Long userId);
+
+ @Select({""})
+ Map selectWalletSummary(@Param("userId") Long userId);
+
+ @Select({""})
+ Map selectPaymentSummary(@Param("userId") Long userId);
+
+ @Select({""})
+ Map selectPayoutSummary(@Param("userId") Long userId);
+
+ @Select({""})
+ List