package com.vincent.rsf.openApi.entity.phyz; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.annotations.ApiModel; import lombok.Data; import lombok.experimental.Accessors; import javax.validation.constraints.NotNull; @Data @JsonIgnoreProperties(ignoreUnknown = true) @Accessors(chain = true) @ApiModel(value = "Material", description = "物料信息同步") public class Material { // 物料编码,唯一标识 @NotNull @JsonProperty("matNr") private String matNr; // 物料名称 @JsonProperty("makTx") private String makTx; // 物料分组编码 @JsonProperty("groupId") private String groupId; // 物料分组 @JsonProperty("groupName") private String groupName; // 型号 private String model; // 重量 private Double weight; // 颜色 private String color; // 尺寸 private String size; // 规格 private String spec; // 描述 private String describe; // 单位 private String unit; // 基本单位,银座有双单位,如长度和重量,可能需要转换 private String baseUnit; // 使用组织编码 private String useOrgId; // 使用组织名称 private String useOrgName; // 物料属性,外购等 private String erpClsID; // 操作类型,1 新增;2 修改;3禁用;4 反禁用; @JsonProperty("operateType") private Integer operateType; }