package com.wzj.soopin.order.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.domain.model.BaseAudit;
import org.dromara.common.excel.annotation.Excel;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单售后对象 oms_aftersale_item
 *
 * @author zcc
 */
@EqualsAndHashCode(callSuper = true)
@Schema(description = "订单售后对象")
@Data
@TableName("oms_aftersale_item")
@Builder
public class AftersaleItem extends BaseAudit implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "MEMBER_ID")
    @Excel(name = "MEMBER_ID")
    private Long memberId;

    @Schema(description = "售后单id")
    @Excel(name = "售后单id")
    private Long aftersaleId;

    @Schema(description = "订单id")
    @Excel(name = "订单id")
    private Long orderId;

    @Schema(description = "子订单id")
    @Excel(name = "子订单id")
    private Long orderItemId;

    @Schema(description = "退款金额")
    @Excel(name = "退款金额")
    private BigDecimal returnAmount;

    @Schema(description = "退货数量")
    @Excel(name = "退货数量")
    private Integer quantity;
}
