|  |  | 
 |  |  | package com.dy.pmsGlobal.pojoPr; | 
 |  |  |  | 
 |  |  | import com.alibaba.excel.util.StringUtils; | 
 |  |  | 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.AssertTrue; | 
 |  |  | import jakarta.validation.constraints.NotEmpty; | 
 |  |  | import jakarta.validation.constraints.NotNull; | 
 |  |  | import lombok.*; | 
 |  |  | 
 |  |  |     public String content; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 排序 | 
 |  |  |      */ | 
 |  |  |     //@NotNull(message = "节点类型不能为空") | 
 |  |  |     public Integer nodeType; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 是否开始节点,1是,0否 | 
 |  |  |      */ | 
 |  |  |     @NotNull(message = "请选择是否生产开始") | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 记录设备周期内容 | 
 |  |  |      */ | 
 |  |  |     public String equipCycleContent; | 
 |  |  |     public String deviceCycleContent; | 
 |  |  |  | 
 |  |  |     @AssertTrue(message = "请输入记录设备周期内容") | 
 |  |  |     public boolean isDeviceCycleContentValid() { | 
 |  |  |         return !isRecord || (isRecord && StringUtils.isNotBlank(deviceCycleContent)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 是否删除,1是,0否 | 
 |  |  | 
 |  |  |  | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public PrWorkingInstruction instruction; | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public PrBillOfMaterial bill; | 
 |  |  |  | 
 |  |  | } |