This commit is contained in:
Lemon
2025-04-16 09:16:18 +08:00
parent a0209c71d7
commit 91c08e4b0a
4 changed files with 14 additions and 3 deletions

View File

@@ -122,13 +122,13 @@ public class ChargeAlgorithmRecord extends BaseEntity {
/**
* $column.columnComment
*/
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
@Excel(name = "最大允许电压告警", readConverterExp = "最大允许电压告警")
private String maxAllowableVoltageAlarm;
/**
* $column.columnComment
*/
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
@Excel(name = "最大允许电流告警", readConverterExp = "最大允许电流告警")
private String maxAllowableElectricityAlarm;
/**

View File

@@ -319,6 +319,12 @@ public class OrderSplitRecordServiceImpl implements OrderSplitRecordService {
.merchantName(orderSplitRecordVO.getMerchantName())
.build();
// 收入金额
BigDecimal subtract = orderSplitRecordVO.getElectricitySplitAmount()
.add(orderSplitRecordVO.getServiceSplitAmount())
.subtract(new BigDecimal(orderSplitRecordVO.getFeeAmount()));
orderSplit.setRevenueAmount(String.valueOf(subtract));
orderSplitList.add(orderSplit);
}
// 对 orderSplitList 进行排序,将当前登录用户的分账记录放在第一条

View File

@@ -77,6 +77,11 @@ public class SplitRecordInfoVO {
*/
private String serviceSplitAmount;
/**
* 收入金额
*/
private String revenueAmount;
/**
* 手续费
*/