From 4513ef24bf9b188c2a77d6ce94f1a6b7e9ebf0e6 Mon Sep 17 00:00:00 2001
From: zuoxiao <470321431@qq.com>
Date: 星期日, 27 四月 2025 20:40:19 +0800
Subject: [PATCH] fix(irrigatePlan): 修正灌溉计划开始时间逻辑

---
 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