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
71
72
73
74
75
76
77
78
79
80
package com.dy.pmsGlobal.pojoPlt;
 
import com.alibaba.fastjson2.annotation.JSONField;
import com.alibaba.fastjson2.writer.ObjectWriterImplToString;
import com.baomidou.mybatisplus.annotation.*;
import com.dy.common.po.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotEmpty;
import lombok.*;
import org.hibernate.validator.constraints.Length;
 
import java.util.Date;
 
/**
 * 工站表
 * @TableName plt_station
 */
@TableName(value="plt_station", autoResultMap = true)
@Data
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class PltStation implements BaseEntity {
    /**
     * 
     */
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    @TableId(type = IdType.AUTO)
    public Long id;
 
    /**
     * 生产线id
     */
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    public Long lineId;
 
    @TableField(exist = false)
    public String lineName;
 
    /**
     * 编号
     */
//    @NotEmpty(message = "编号不能为空")
//    @Length(message = "编号必须{max}位数据", min = 4, max = 4)
    public String code;
 
    /**
     * 名称
     */
    @NotEmpty(message = "名称不能为空")
    public String name;
 
    /**
     * 备注
     */
    public String remark;
 
    /**
     * 创建时间
     */
    @TableField(value = "dt", fill = FieldFill.INSERT)
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date dt;
 
    /**
     * 是否禁用,1是,0否
     */
    public Boolean disabled;
    /**
     * 是否删除,1是,0否
     */
    public Boolean deleted;
    /**
     * 二维码
     */
    @TableField(exist = false)
    public String qrCode;
 
}