From c5947256b22f2283214258827f61af09966cf490 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Tue, 31 Dec 2024 17:25:37 +0800
Subject: [PATCH] feat(mall): 添加会员列表直推、团队、业绩统计功能 - 在 MallMember 实体中添加直推数、团队数、业绩金额等字段 - 修改 getMallMemberList 方法,异步计算每个会员的直推、团队和业绩数据 - 在前端列表中显示直推、团队、业绩等列 - 优化数据查询效率,使用 LambdaQueryWrapper 和 CompletableFuture
---
src/main/resources/templates/febs/views/modules/runVip/buyVipList.html | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/main/resources/templates/febs/views/modules/runVip/buyVipList.html b/src/main/resources/templates/febs/views/modules/runVip/buyVipList.html
index 266d514..faa2c5b 100644
--- a/src/main/resources/templates/febs/views/modules/runVip/buyVipList.html
+++ b/src/main/resources/templates/febs/views/modules/runVip/buyVipList.html
@@ -48,12 +48,12 @@
</div>
</div>
</div>
-<script type="text/html" id="stateType">
+<script type="text/html" id="statesType">
{{#
var state = {
- 2: {title: '进行中', color: 'volcano'},
- 1: {title: '成功', color: 'green'},
- 0: {title: '失败', color: 'blue'}
+ 2: {title: '进行中', color: 'green'},
+ 1: {title: '成功', color: 'blue'},
+ 0: {title: '失败', color: 'red'}
}[d.state];
}}
<span class="layui-badge febs-bg-{{state.color}}">{{ state.title }}</span>
@@ -61,8 +61,8 @@
<script type="text/html" id="commissionOption">
{{# if(d.state == 2){ }}
- <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" shiro:hasPermission="user:update" lay-event="chargeAgreeEvent">确认</button>
- <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" shiro:hasPermission="user:update" lay-event="chargeDisAgreeEvent">取消</button>
+ <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" shiro:hasPermission="charge:update" lay-event="chargeAgreeEvent">确认</button>
+ <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" shiro:hasPermission="charge:update" lay-event="chargeDisAgreeEvent">取消</button>
{{# } }}
</script>
<script data-th-inline="none" type="text/javascript">
@@ -133,13 +133,13 @@
{type: 'numbers', title: '序号', width: 80},
{field: 'orderNo', title: '编号', minWidth: 100,align:'center', totalRowText: '合计'},
{field: 'account', title: '账号', minWidth: 150,align:'center'},
- {field: 'type', title: '链', minWidth: 100,align:'center'},
{field: 'vipName', title: '会员名称', minWidth: 100,align:'center'},
- {field: 'vipCnt', title: '数量', minWidth: 100,align:'center'},
{field: 'amount', title: '金额', minWidth: 100,align:'center',totalRow: '{{= parseInt(d.amount) }}'},
+ {field: 'type', title: '链', minWidth: 100,align:'center'},
{field: 'address', title: '地址', minWidth: 100,align:'center'},
- {title: '状态', templet: '#stateType', minWidth: 100,align:'center'},
+ {title: '状态', templet: '#statesType', minWidth: 100,align:'center'},
{field: 'failTime', title: '失效时间', minWidth: 180,align:'center'},
+ {field: 'vipCnt', title: '数量', minWidth: 100,align:'center'},
{field: 'createdTime', title: '创建时间', minWidth: 180,align:'center'},
{title: '操作', toolbar: '#commissionOption', minWidth: 200}
]],
--
Gitblit v1.9.1