|  |  | 
 |  |  | 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.TableField; | 
 |  |  | import com.baomidou.mybatisplus.annotation.TableId; | 
 |  |  | import com.baomidou.mybatisplus.annotation.TableName; | 
 |  |  | import java.io.Serializable; | 
 |  |  |  | 
 |  |  | import com.dy.common.po.BaseEntity; | 
 |  |  | import jakarta.validation.constraints.NotEmpty; | 
 |  |  | import lombok.Data; | 
 |  |  | import jakarta.validation.constraints.NotNull; | 
 |  |  | import lombok.*; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * 物料表 | 
 |  |  |  * @TableName plt_material | 
 |  |  |  */ | 
 |  |  | @TableName(value ="plt_material") | 
 |  |  | @TableName(value="plt_material", autoResultMap = true) | 
 |  |  | @Data | 
 |  |  | public class PltMaterial implements Serializable { | 
 |  |  | @Builder | 
 |  |  | @ToString | 
 |  |  | @NoArgsConstructor | 
 |  |  | @AllArgsConstructor | 
 |  |  | public class PltMaterial  implements BaseEntity { | 
 |  |  |     /** | 
 |  |  |      * 编号 | 
 |  |  |      */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     @TableId(type = IdType.AUTO) | 
 |  |  |     public Integer id; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 产品实体编号 | 
 |  |  |      */ | 
 |  |  |     @NotEmpty(message = "产品实体编号不能为空") | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     @NotNull(message = "产品实体编号不能为空") | 
 |  |  |     public Long proId; | 
 |  |  |  | 
 |  |  |     /** |