package com.hzs.member.account.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hzs.common.core.annotation.Excel;
import com.hzs.common.core.annotation.Transaction;
import com.hzs.common.core.constant.EnumsPrefixConstants;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 会员充值详情VO
 *
 * @Description:
 * @Author: ljc
 * @Time: 2022/10/8 9:30
 * @Classname: CuMemberRechargeVO
 * @Package_name: com.hzs.member.account.vo
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CuMemberRechargeDetailVO extends CuMemberBaseVO {

    /**
     * 充值金额
     */
    @Excel(name = "充值金额", scale = 2)
    private BigDecimal rechargeAmount;

    /**
     * 充值金额（本币）
     */
    @Excel(name = "充值金额(本币)", scale = 2)
    private BigDecimal settleRechargeAmount;

    /**
     * 充值类型
     */
    @JsonIgnore
    @Transaction(transactionKey = EnumsPrefixConstants.ACCOUNT)
    private Integer rechargeType;

    /**
     * 充值类型 翻译
     */
    @Excel(name = "充值类型")
    private String rechargeTypeVal;

    /**
     * 充值单号：对应trade表的来源单号
     */
    private String rechargeCode;

    /**
     * 审核人
     */
    @Excel(name = "审核人")
    private String approver;
    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date approveTime;

    /**
     * 审核状态
     */
    @JsonIgnore
    @Transaction(transactionKey = EnumsPrefixConstants.APPROVE_STATUS)
    private Integer approveState;

    @Excel(name = "审核状态")
    private String approveStateVal;

    /**
     * 充值备注
     */
    @Excel(name = "充值备注")
    private String remarks;

    /**
     * 审批业务详情列表
     */
    private List<ApprovalDetailVO> detailList;
}
