package com.hzs.sale.order.vo;

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

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

/**
 * @Description: 订单业务调换货物返回VO
 * @Author: jiang chao
 * @Time: 2023/2/4 10:12
 * @Classname: OrderBusinessProductVO
 * @PackageName: com.hzs.sale.order.vo
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
public class OrderBusinessProductVO {

    /**
     * 订单编号
     */
    private String orderCode;

    /**
     * 会员编号
     */
    private String memberCode;
    /**
     * 会员姓名
     */
    private String memberName;

    /**
     * 订单金额
     */
    private BigDecimal orderAmount;
    /**
     * 订单业绩
     */
    private BigDecimal orderAchieve;
    /**
     * 订单BV
     */
    private BigDecimal orderAssAchievement;
    /**
     * 邮费
     */
    private BigDecimal postage;

    /**
     * 明细列表
     */
    @Transaction
    private List<OrderBusinessProductDetailVO> detailList;

    /**
     * 币种
     */
    private Integer pkAccount;
    /**
     * 币种翻译KEY
     */
    @Transaction(transactionKey = EnumsPrefixConstants.KEY_ACC)
    @JsonIgnore
    private Integer accountKey;
    /**
     * 币种翻译显示
     */
    private String accountKeyVal;
    /**
     * 费用
     */
    private BigDecimal cost;

}
