From ae7063f5e4a49e2ed55f240440246bdbae3fcc13 Mon Sep 17 00:00:00 2001
From: “mitao” <“2763622819@qq.com”>
Date: 星期二, 23 十二月 2025 11:59:00 +0800
Subject: [PATCH] feat:管理后台财务管理积分结算
---
ruoyi-system/src/main/resources/mapper/system/TIntegralSettlementMapper.xml | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/ruoyi-system/src/main/resources/mapper/system/TIntegralSettlementMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TIntegralSettlementMapper.xml
index 50331a4..35ed211 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TIntegralSettlementMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TIntegralSettlementMapper.xml
@@ -24,6 +24,7 @@
<!-- 分页查询积分结算列表(按结算周期分组汇总) -->
<select id="selectSettlementPageList" resultType="com.ruoyi.system.vo.TIntegralSettlementVO">
SELECT
+ t.id,
t.settlement_interval,
MIN(t.settlement_start_time) AS settlementStartTime,
MAX(t.settlement_end_time) AS settlementEndTime,
@@ -41,4 +42,28 @@
ORDER BY t.settlement_interval DESC, MAX(t.create_time) DESC
</select>
+ <select id="getSettlementDetailPageList" resultType="com.ruoyi.system.vo.TIntegralSettlementDetailVO">
+ SELECT
+ t.id,
+ t.total_settlement_integral,
+ t.create_time,
+ tau.name,
+ tau.phone,
+ tau.code
+ FROM t_integral_settlement t
+ LEFT JOIN t_app_user tau ON tau.id = t.app_user_id
+ <where>
+ <if test="query.name != null and query.name != ''">
+ AND tau.name LIKE CONCAT('%', #{query.name}, '%')
+ </if>
+ <if test="query.phone != null and query.phone != ''">
+ AND tau.phone LIKE CONCAT('%', #{query.phone}, '%')
+ </if>
+ <if test="query.code != null and query.code != ''">
+ AND tau.code LIKE CONCAT('%', #{query.code}, '%')
+ </if>
+ </where>
+ ORDER BY t.create_time DESC
+ </select>
+
</mapper>
--
Gitblit v1.7.1