1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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;
}