Fancy
2024-06-25 0d89ea0d2632abe27c00dfc88943476f00e8804d
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package com.dy.pmsGlobal.pojoPlt;
 
import com.alibaba.fastjson2.annotation.JSONField;
import com.alibaba.fastjson2.writer.ObjectWriterImplToString;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dy.common.po.BaseEntity;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.*;
 
/**
 * 物料表
 * @TableName plt_material
 */
@TableName(value="plt_material", autoResultMap = true)
@Data
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class PltMaterial  implements BaseEntity {
    /**
     * 编号
     */
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    @TableId(type = IdType.AUTO)
    public Integer id;
 
    /**
     * 产品实体编号
     */
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    @NotNull(message = "产品实体编号不能为空")
    public Long proId;
 
    /**
     * 名称
     */
    @NotEmpty(message = "名称不能为空")
    public String name;
 
    /**
     * 型号
     */
    @NotEmpty(message = "型号不能为空")
    public String type;
 
    /**
     * 长度
     */
    public String length;
 
    /**
     * 厂家
     */
    public String factory;
 
    /**
     * 是否删除,1是,0否
     */
    @JSONField(serialize = false)
    public Boolean deleted;
 
    /**
     * 备注
     */
    public String remark;
}