package cn.iocoder.yudao.module.mes.controller.admin.saleorder.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 销售订单新增/修改 Request VO")
@Data
public class SaleOrderSaveReqVO {
    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14570")
    private Long id;

    @Schema(description = "销售单编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "销售单编号不能为空")
    private String no;

    @Schema(description = "销售状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "销售状态不能为空")
    private Integer status;

    @Schema(description = "客户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "21463")
    @NotNull(message = "客户编号不能为空")
    private Long customerId;

    @Schema(description = "下单时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "下单时间不能为空")
    private LocalDateTime orderTime;

    @Schema(description = "合计数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "15252")
    @NotNull(message = "合计数量不能为空")
    private BigDecimal totalCount;

    @Schema(description = "合计价格，单位：元", requiredMode = Schema.RequiredMode.REQUIRED, example = "12141")
    @NotNull(message = "合计价格，单位：元不能为空")
    private BigDecimal totalPrice;

    @Schema(description = "合计产品价格，单位：元", requiredMode = Schema.RequiredMode.REQUIRED, example = "14588")
    @NotNull(message = "合计产品价格，单位：元不能为空")
    private BigDecimal totalProductPrice;

    @Schema(description = "备注", example = "随便")
    private String remark;

}