刘小明
2024-06-19 cfa51be0ceb9a04a1e20b4fba3b4f897c60b611b
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPlt/PltStation.java
@@ -1,6 +1,9 @@
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.*;
@@ -18,18 +21,28 @@
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class PltStation{
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)
//    @NotEmpty(message = "编号不能为空")
//    @Length(message = "编号必须{max}位数据", min = 4, max = 4)
    public String code;
    /**
@@ -51,8 +64,17 @@
    public Date dt;
    /**
     * 是否禁用,1是,0否
     */
    public Boolean disabled;
    /**
     * 是否删除,1是,0否
     */
    public Boolean deleted;
    /**
     * 二维码
     */
    @TableField(exist = false)
    public String qrCode;
}