| 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 com.dy.common.po.BaseEntity; | 
| import jakarta.validation.constraints.NotEmpty; | 
| import jakarta.validation.constraints.NotNull; | 
| import lombok.*; | 
|   | 
| /** | 
|  * 产品设备报废原因表 | 
|  * @TableName plt_product_scrapping_reason | 
|  */ | 
| @TableName(value="plt_product_scrapping_reason", autoResultMap = true) | 
| @Data | 
| @Builder | 
| @ToString | 
| @NoArgsConstructor | 
| @AllArgsConstructor | 
| public class PltProductScrappingReason  implements BaseEntity { | 
|     /** | 
|      *  | 
|      */ | 
|     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|     @TableId(type = IdType.AUTO) | 
|     public Long id; | 
|   | 
|     /** | 
|      * 报废原因 | 
|      */ | 
|     @NotEmpty(message = "报废原因不能为空") | 
|     public String reason; | 
|   | 
|     /** | 
|      * 产品ID | 
|      */ | 
|     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|     @NotNull(message = "产品id不能为空") | 
|     public Long proId; | 
|   | 
|     @TableField(exist = false) | 
|     public String proName; | 
|   | 
|     /** | 
|      * 排序(从大到小) | 
|      */ | 
|     public int sort; | 
|   | 
|     /** | 
|      * 是否禁用,1是,0否 | 
|      */ | 
|     public Boolean disabled; | 
|     /** | 
|      * 是否删除,1是,0否 | 
|      */ | 
|     public Boolean deleted; | 
|   | 
| } |