package com.yunzhupaas.model.order;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * 订单信息
 *
 * @author 云筑产品开发平台组
 * @version V3.1.0
 * @copyright 深圳市乐程软件有限公司
 * @date 2024/3/15 8:46
 */
@Data
public class OrderEntryModel {
    @NotNull(message = "必填")
    @Schema(description ="订单日期")
    private Long remove;
    @NotBlank(message = "必填")
    @Schema(description ="自然主键")
    private String id;
    @NotBlank(message = "必填")
    @Schema(description ="商品Id")
    private String goodsId;
    @NotBlank(message = "必填")
    @Schema(description ="商品编码")
    private String goodsCode;
    @NotBlank(message = "必填")
    @Schema(description ="商品名称")
    private String goodsName;
    @NotBlank(message = "必填")
    @Schema(description ="规格型号")
    private String specifications;
    @NotBlank(message = "必填")
    @Schema(description ="单位")
    private String unit;
    @NotBlank(message = "必填")
    @Schema(description ="数量")
    private String qty;
    @NotBlank(message = "必填")
    @Schema(description ="单价")
    private String price;
    @NotBlank(message = "金额不能为空")
    @Schema(description ="金额")
    private String amount;
    @NotBlank(message = "折扣%不能为空")
    @Schema(description =" 折扣%")
    private String discount;
    @NotBlank(message = "税率%不能为空")
    @Schema(description =" 税率%")
    private String cess;
    @NotBlank(message = "实际单价不能为空")
    @Schema(description ="实际单价")
    private String actualPrice;
    @NotBlank(message = "实际金额不能为空")
    @Schema(description ="实际金额")
    private String actualAmount;
    @Schema(description ="描述")
    private String description;
    @Schema(description ="角标")
    private String index;

}

