From d0b51c6d6f2b7a530c0557b6279cc6dfced223cf Mon Sep 17 00:00:00 2001
From: zhubaomin <470473919@qq.com>
Date: 星期日, 27 四月 2025 19:01:04 +0800
Subject: [PATCH] 各轮灌组开阀时间提前10分钟,第一组除外,改为配置文件设置
---
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoUg/UgRtuTask.java | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 105 insertions(+), 0 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoUg/UgRtuTask.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoUg/UgRtuTask.java
new file mode 100644
index 0000000..fcfa486
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoUg/UgRtuTask.java
@@ -0,0 +1,105 @@
+package com.dy.pipIrrGlobal.pojoUg;
+
+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 com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.*;
+import org.hibernate.validator.constraints.Length;
+
+import java.util.Date;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/11/5 9:09
+ * @Description
+ */
+@TableName(value="ug_rtu_task", autoResultMap = true)
+@Data
+@Builder
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+@Schema(name = "RTU杩滅▼鍗囩骇浠诲姟")
+public class UgRtuTask implements BaseEntity {
+
+ public static final long serialVersionUID = 202411050926001L;
+ /**
+ * 涓婚敭
+ */
+ @Schema(description = "涓婚敭", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JSONField(serializeUsing= ObjectWriterImplToString.class)
+ @TableId(type = IdType.INPUT)
+ public Long id;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝崌绾х▼搴�
+ */
+ @Schema(description = "澶栭敭锛屾寚鍚戝崌绾х▼搴�", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JSONField(serializeUsing= ObjectWriterImplToString.class)
+ public Long programId;
+
+ /**
+ * 鍒涘缓浜�
+ */
+ @Schema(description = "鍒涘缓浜�", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @Length(message = "澶囨敞涓嶅ぇ浜巤max}瀛楋紝涓嶅皬浜巤min}瀛�", min = 1, max = 50)
+ public String creator;
+
+ /**
+ * 澶囨敞
+ */
+ @Schema(description = "澶囨敞", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @Length(message = "澶囨敞涓嶅ぇ浜巤max}瀛楋紝涓嶅皬浜巤min}瀛�", min = 1, max = 100)
+ public String remark;
+
+ /**
+ * 鍒涘缓鏃堕棿
+ */
+ @Schema(description = "鍒涘缓鏃堕棿", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS")
+ public Date dt;
+
+ /**
+ * 鏄惁鎵ц锛�1鏄紝0鍚︼級
+ */
+ @Schema(description = "鏄惁鎵ц锛�1鏄紝0鍚︼級", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ public Byte isExecute;
+
+ /**
+ * 鏄惁鎵ц
+ */
+ @Schema(description = "鏄惁鎵ц", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ public String isExecuteStr;
+
+ /**
+ * 鏄惁缁撴潫锛�1鏄紝0鍚︼級
+ */
+ @Schema(description = "鏄惁缁撴潫锛�1鏄紝0鍚︼級", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ public Byte isOver;
+
+ /**
+ * 鏄惁缁撴潫
+ */
+ @Schema(description = "鏄惁缁撴潫", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ public String isOverStr;
+
+ /**
+ * 鍒犻櫎鏍囪瘑
+ */
+ @Schema(hidden=true)
+ @JSONField(serialize=false)
+ public Byte deleted;
+
+ public void init(){
+ this.dt = new Date();
+ this.isExecute = 0 ;
+ this.isOver = 0 ;
+ this.deleted = 0 ;
+ }
+
+}
\ No newline at end of file
--
Gitblit v1.8.0