From cadeca36ff86f74371c77a05dc8422abc1e48855 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Thu, 19 Dec 2024 16:28:40 +0800
Subject: [PATCH] feat(table): 添加合计行功能 - 在 mallMemberList.html 中添加了 totalRow 属性,用于显示碳币和碳积分的合计 - 在 moneyFlowList.html 中移除了 description 字段的 totalRow属性 - 在 sellVipList.html 中将 amount 和 amountFee 字段的 totalRow 属性改为 true
---
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallAgentServiceImpl.java | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallAgentServiceImpl.java b/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallAgentServiceImpl.java
index d85c377..9e814ae 100644
--- a/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallAgentServiceImpl.java
+++ b/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallAgentServiceImpl.java
@@ -54,15 +54,21 @@
// return new FebsResponse().fail().message("当前城市已经无法申请");
// }
- MallAgentRecord mallAgentRecordNew = MallAgentRecordConversion.INSTANCE.dtoToEntity(apiAgentApplyDto);
- mallAgentRecordNew.setMemberId(memberId);
- mallAgentRecordNew.setState(MallAgentRecord.APPLY_ING);
- mallAgentRecordMapper.insert(mallAgentRecordNew);
DataDictionaryCustom agentAmountDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.PRICE_AMOUNT.getType()
, DataDictionaryEnum.PRICE_AMOUNT.getCode());
String agentAmount = agentAmountDic.getValue();
BigDecimal bigDecimal = new BigDecimal(agentAmount);
+
+ MallAgentRecord mallAgentRecordNew = MallAgentRecordConversion.INSTANCE.dtoToEntity(apiAgentApplyDto);
+ mallAgentRecordNew.setMemberId(memberId);
+ mallAgentRecordNew.setState(MallAgentRecord.APPLY_ING);
+ mallAgentRecordNew.setAgentLevel(apiAgentApplyDto.getType());
+ if(apiAgentApplyDto.getType().equals(AgentLevelEnum.LEVEL_THREE.getName())){
+ mallAgentRecordNew.setAmount(bigDecimal);
+ }
+ mallAgentRecordMapper.insert(mallAgentRecordNew);
return new FebsResponse().success().data(bigDecimal);
}
+
}
--
Gitblit v1.9.1