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