package cn.iocoder.foodnexus.module.order.controller.admin.customerorderitem.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.iocoder.foodnexus.module.order.dto.CustomerOrderRemark;
import cn.iocoder.foodnexus.module.product.api.dto.ProductInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 客户订单-子订单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CustomerOrderItemExcelVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "22980")
    private Long id;

    @Schema(description = "客户订单id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15521")
    private Long orderId;

    @ExcelProperty("订单编号")
    private String orderCode;

    @ExcelProperty("日期")
    private LocalDate createDate;

    @Schema(description = "商品id", requiredMode = Schema.RequiredMode.REQUIRED, example = "9665")
    @ExcelProperty("商品编号")
    private Long productId;

    @Schema(description = "商品名称", example = "李四")
    @ExcelProperty("商品名称")
    private String productName;

    @Schema(description = "商品信息")
    private ProductInfo productInfo;

    @ExcelProperty("商品规格")
    private String introduction;

    @ExcelProperty("商品单位")
    private String unitName;

    @Schema(description = "客户下单备注")
    @ExcelProperty("下单备注")
    private String customerRemark;

    @Schema(description = "签收数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("签收数量")
    private BigDecimal signedQuantity;

    @Schema(description = "签收总价，单位：分", requiredMode = Schema.RequiredMode.REQUIRED)
    // @ExcelProperty("签收总价，单位：分")
    private Integer signedTotal;

    @ExcelProperty("签收总价")
    private BigDecimal signedTotalYuan;

    @Schema(description = "退货数量")
    @ExcelProperty("退货数量")
    private BigDecimal returnsQuantity;

    // @ExcelProperty("退货总价，单位：分")
    private Integer returnsTotal;

    @ExcelProperty("退货总价")
    private BigDecimal returnsTotalYuan;

    @Schema(description = "订单商品数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("下单数量")
    private BigDecimal orderItemQuantity;

    @Schema(description = "预期下单数量")
    private BigDecimal expectedQuantity;

    @Schema(description = "订单商品单价，单位：分", requiredMode = Schema.RequiredMode.REQUIRED, example = "29922")
    // @ExcelProperty("订单商品单价，单位：分")
    private Integer orderItemPrice;

    @ExcelProperty("订单商品单价")
    private BigDecimal orderItemPriceYuan;

    @Schema(description = "订单商品总价，单位：分", requiredMode = Schema.RequiredMode.REQUIRED)
    // @ExcelProperty("订单商品总价，单位：分")
    private Integer orderItemTotal;

    @ExcelProperty("订单商品总价")
    private BigDecimal orderItemTotalYuan;

    private LocalDateTime createTime;
}