package com.wzj.soopin.transaction.domain.bo;


import com.alibaba.excel.annotation.ExcelProperty;
import com.wzj.soopin.transaction.domain.po.Divide;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.dromara.common.core.domain.BaseBO;

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

/**
 * 订单分账
 *
 * @author wzj
 * @date 2023-03-07
 */
@Schema(description = "订单分账")
@Data
public class DivideBO extends BaseBO<Divide> {

    /**
     * 主键
     */
    @Schema(description = "主键")
    @ExcelProperty(value = "主键", order = 1)
    private Long id;

    /**
     * 分账规则id
     */
    @Schema(description = "分账规则id")
    @ExcelProperty(value = "分账规则id", order = 2)
    private Long ruleId;



    /**
     * 金额
     */
    @Schema(description = "订单总金额")
    @ExcelProperty(value = "订单总金额", order = 4)
    private BigDecimal orderMoney;

    /**
     * 手续费
     */
    @Schema(description = "手续费")
    @ExcelProperty(value = "手续费", order = 5)
    private BigDecimal fee;
    /**
     * 金额分配比例
     */
    @Schema(description = "实际分账金额")
    @ExcelProperty(value = "实际分账金额", order = 5)
    private BigDecimal actualMoney;

    @Schema(description = "适用订单类型")
    private Integer type;
    /**
     * 状态
     */
    @Schema(description = "状态")
    @ExcelProperty(value = "状态", order = 5)
    private Integer status;


    /**
     * 订单id
     * */
    @Schema(description = "订单id")
    @ExcelProperty(value = "订单id", order = 8)
    private Long orderId;

    /**
     * 订单编号
     * */
    @Schema(description = "订单编号")
    @ExcelProperty(value = "订单编号", order = 9)
    private String orderSn;

    /**
     * 分账规则明细
     */

    @Schema(description = "分账规则明细")
    @ExcelProperty(value = "分账规则明细", order = 10)
    private List<DivideDetailBO> details=new ArrayList<>();


}
