package cn.iocoder.yudao.module.supplier.controller.admin.product.vo;

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

import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 供应商主数据新增/修改 Request VO")
@Data
public class SupplierSaveReqVO {

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

    @Schema(description = "供应商编号 自动生成")
    private String code;

    @Schema(description = "供应商名称", example = "张三")
    private String name;

    @Schema(description = "供应商分类")
    private String classification;

    @Schema(description = "公司类型", example = "1")
    private String type;

    @Schema(description = "供应商性质")
    private String nature;

    @Schema(description = "社会信用代码")
    private String creditCode;

    @Schema(description = "纳税人识别号")
    private String tin;

    @Schema(description = "法人")
    private String corporation;

    @Schema(description = "成立日期")
    private LocalDateTime incorporationDate;

    @Schema(description = "公司地址")
    private String address;

    @Schema(description = "经营范围")
    private String bizScope;

    @Schema(description = "注册资金 单位：万元")
    private BigDecimal registeredCapital;

    @Schema(description = "年营业额 单位：万元")
    private BigDecimal annualTurnove;

    @Schema(description = "公司规模 数据字典")
    private String size;

    @Schema(description = "商品状态: 1 草稿 2活动 3 关闭", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    //@NotNull(message = "商品状态: 1 草稿 2活动 3 关闭不能为空")
    private Integer status;

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

    @Schema(description = "部门id")
    private Long deptId;

    @Schema(description = "客商性质")
    private String customerNature;

    @Schema(description = "sap编码")
    private String sapCode;
}
