| | |
| | | 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.*; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 排序 |
| | | */ |
| | | @NotEmpty(message = "节点顺序不能为空") |
| | | @NotNull(message = "节点顺序不能为空") |
| | | public Integer sort; |
| | | |
| | | /** |
| | | * 节点作业内容 |
| | | */ |
| | | @NotEmpty(message = "请输入节点作业内容") |
| | | public String content; |
| | | |
| | | /** |
| | | * 排序 |
| | | */ |
| | | //@NotNull(message = "节点类型不能为空") |
| | | public Integer nodeType; |
| | | |
| | | /** |
| | | * 是否开始节点,1是,0否 |
| | | */ |
| | | @NotNull(message = "请选择是否生产开始") |
| | | public Boolean isStart; |
| | | |
| | | /** |
| | | * 是否结束节点,1是,0否 |
| | | */ |
| | | @NotNull(message = "请选择是否生产结束") |
| | | public Boolean isEnd; |
| | | |
| | | /** |
| | | * 是否记录设备周期,1是,0否 |
| | | */ |
| | | @NotNull(message = "请选择是否记录设备周期") |
| | | public Boolean isRecord; |
| | | |
| | | /** |
| | | * 记录设备周期内容 |
| | | */ |
| | | public String equipCycleContent; |
| | | public String deviceCycleContent; |
| | | |
| | | @AssertTrue(message = "请输入记录设备周期内容") |
| | | public boolean isDeviceCycleContentValid() { |
| | | return !isRecord || (isRecord && StringUtils.isNotBlank(deviceCycleContent)); |
| | | } |
| | | |
| | | /** |
| | | * 是否删除,1是,0否 |