From 5e765b7358c0a1f91b30acf48d442c08073fdbed Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期二, 30 九月 2025 16:06:58 +0800
Subject: [PATCH] 优化数据源配置
---
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voMd/VoCrops.java | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 100 insertions(+), 14 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voMd/VoCrops.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voMd/VoCrops.java
index 766cb52..4eb11a1 100644
--- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voMd/VoCrops.java
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voMd/VoCrops.java
@@ -16,7 +16,15 @@
*/
@Data
-@JsonPropertyOrder({"id", "name", "startDt", "endDt", "stopped", "isStopped", "remarks", "createDt"})
+@JsonPropertyOrder({"id", "weatherId",
+ "name", "startDt", "endDt",
+ "life1Start", "life1End", "life1Factor",
+ "life2Start", "life2End", "life2Factor",
+ "life3Start", "life3End", "life3Factor",
+ "life4Start", "life4End", "life4Factor",
+ "stopped", "remarks", "createDt",
+ "lifeLen", "lifeCur", "lifeFactor", "stoppedStr"
+})
public class VoCrops implements Serializable {
public static final long serialVersionUID = 202508061124001L;
@@ -26,6 +34,11 @@
*/
@JSONField(serializeUsing= ObjectWriterImplToString.class)
public Long id;
+ /**
+ * 鎸囧悜姘旇薄绔欏閿�
+ */
+ @JSONField(serializeUsing= ObjectWriterImplToString.class)
+ public Long weatherId;
/**
* 浣滅墿鍚嶇О
@@ -45,14 +58,70 @@
public String endDt;
/**
- * 鏄惁鍋滄璁$畻锛�1鏄紝0鍚�
+ * 鐢熼暱鍒濇湡寮�濮嬪ぉ鏁帮紙榛樿鏄�1锛�
*/
- public Byte stopped;
+ public Integer life1Start;
+
+ /**
+ * 鐢熼暱鍒濇湡缁撴潫澶╂暟
+ */
+ public Integer life1End;
+
+ /**
+ * 鐢熼暱鍒濇湡浣滅墿绯绘暟
+ */
+ public Double life1Factor ;
+
+ /**
+ * 蹇�熺敓闀挎湡寮�濮嬪ぉ鏁帮紙榛樿鐢熼暱鍒濇湡缁撴潫澶╂暟+1锛�
+ */
+ public Integer life2Start;
+
+ /**
+ * 蹇�熺敓闀挎湡缁撴潫澶╂暟
+ */
+ public Integer life2End;
+
+ /**
+ * 蹇�熺敓闀挎湡浣滅墿绯绘暟
+ */
+ public Double life2Factor ;
+
+ /**
+ * 鐢熼暱涓湡寮�濮嬪ぉ鏁帮紙榛樿蹇�熺敓闀挎湡缁撴潫澶╂暟+1锛�
+ */
+ public Integer life3Start;
+
+ /**
+ * 鐢熼暱涓湡缁撴潫澶╂暟
+ */
+ public Integer life3End;
+
+ /**
+ * 鐢熼暱涓湡浣滅墿绯绘暟
+ */
+ public Double life3Factor ;
+
+ /**
+ * 鐢熼暱鏈湡寮�濮嬪ぉ鏁帮紙榛樿鐢熼暱涓湡缁撴潫澶╂暟+1锛�
+ */
+ public Integer life4Start;
+
+ /**
+ * 鐢熼暱鏈湡缁撴潫澶╂暟
+ */
+ public Integer life4End;
+
+ /**
+ * 鐢熼暱鏈湡浣滅墿绯绘暟
+ */
+ public Double life4Factor ;
+
/**
* 鏄惁鍋滄璁$畻锛�1鏄紝0鍚�
*/
- public String stoppedStr;
+ public Byte stopped;
/**
* 澶囨敞
@@ -65,16 +134,33 @@
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
public Date createDt;
- public String getStoppedStr() {
- if (this.stopped != null) {
- if(this.stopped == 0){
- return "鍚�";
- }else{
- return "鏄�";
- }
- }
- return "" ;
- }
+ /**
+ * 宸茬粡鐢熸垚鏃堕暱锛堝ぉ锛�
+ */
+ public Integer lifeLen;
+ /**
+ * 褰撳墠鐢熼暱闃舵
+ */
+ public String lifeCur ;
+ /**
+ * 瀵瑰簲浣滅墿鐢熼暱闃舵鐨勭郴鏁�
+ */
+ public Double lifeFactor ;
+ /**
+ * 鏄惁鍋滄璁$畻锛�1鏄紝0鍚�
+ */
+ public String stoppedStr;
+ /**
+ * 宸茬粡鐢熸垚鏃堕暱锛堝ぉ锛�
+ */
+ public String lifeLenStr;
+ /**
+ * 瀵瑰簲浣滅墿鐢熼暱闃舵鐨勭郴鏁�
+ */
+ public String lifeFactorStr ;
+
+ //鍏宠仈姘旇薄绔欏悕绉�
+ public String weatherName ;
}
--
Gitblit v1.8.0