update 钱包明细导出字段

This commit is contained in:
Guoqs
2025-06-19 14:30:10 +08:00
parent 2047c24cf7
commit 1ea389701c
2 changed files with 25 additions and 1 deletions

View File

@@ -50,4 +50,16 @@ public enum MemberWalletEnum {
this.value = value; this.value = value;
this.label = label; this.label = label;
} }
/**
* 根据value获取label
*/
public static String getLabelByValue(String value) {
for (MemberWalletEnum item : MemberWalletEnum.values()) {
if (item.getValue().equals(value)) {
return item.getLabel();
}
}
return "未知类型";
}
} }

View File

@@ -1,6 +1,7 @@
package com.jsowell.pile.vo.uniapp.customer; package com.jsowell.pile.vo.uniapp.customer;
import com.jsowell.common.annotation.Excel; import com.jsowell.common.annotation.Excel;
import com.jsowell.common.enums.MemberWalletEnum;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@@ -30,9 +31,14 @@ public class MemberWalletLogVO {
/** /**
* 子类型 10-充值, 11-赠送, 12-订单结算退款20-后管扣款, 21-订单付款, 22-用户退款 * 子类型 10-充值, 11-赠送, 12-订单结算退款20-后管扣款, 21-订单付款, 22-用户退款
*/ */
@Excel(name = "操作类型(10-充值, 11-赠送, 12-订单结算退款20-后管扣款, 21-订单付款, 22-用户退款)")
private String subType; private String subType;
/**
* 子类型名称
*/
@Excel(name = "操作类型")
private String subTypeName;
/** /**
* 出账/入账金额 * 出账/入账金额
*/ */
@@ -76,15 +82,21 @@ public class MemberWalletLogVO {
/** /**
* 变动前金额 * 变动前金额
*/ */
@Excel(name = "变动前金额")
private BigDecimal beforeAmount; private BigDecimal beforeAmount;
/** /**
* 变动后金额 * 变动后金额
*/ */
@Excel(name = "变动后金额")
private BigDecimal afterAmount; private BigDecimal afterAmount;
/** /**
* 操作人员 * 操作人员
*/ */
private String createBy; private String createBy;
public String getSubTypeName() {
return MemberWalletEnum.getLabelByValue(this.subType);
}
} }