刘小明
2024-08-19 768feddf7a1ded7b22b1382e7b8039a12f8015a0
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPlt/PltStation.java
@@ -1,5 +1,7 @@
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;
@@ -23,14 +25,24 @@
    /**
     * 
     */
    @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;
    /**
@@ -52,8 +64,17 @@
    public Date dt;
    /**
     * 是否禁用,1是,0否
     */
    public Boolean disabled;
    /**
     * 是否删除,1是,0否
     */
    public Boolean deleted;
    /**
     * 二维码
     */
    @TableField(exist = false)
    public String qrCode;
}