| 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; | 
|   | 
| } |