From d096e4f9fd6d63f40d0ec27f767be59848197f5b Mon Sep 17 00:00:00 2001
From: zhanghl <253316343@qq.com>
Date: 星期四, 22 五月 2025 18:13:41 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev

---
 aps-modules/aps-core/src/main/java/com/aps/core/domain/ApsGasPipelinePrediction.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/domain/ApsGasPipelinePrediction.java b/aps-modules/aps-core/src/main/java/com/aps/core/domain/ApsGasPipelinePrediction.java
index 4ebf861..6a23249 100644
--- a/aps-modules/aps-core/src/main/java/com/aps/core/domain/ApsGasPipelinePrediction.java
+++ b/aps-modules/aps-core/src/main/java/com/aps/core/domain/ApsGasPipelinePrediction.java
@@ -59,8 +59,9 @@
     @TableField(exist = false)
     private String key;
 
+    @JsonIgnore
     public String getKey() {
-        if (key == null) {
+        if (key == null && getPredictDate() != null) {
             SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM");
             key = getFactory() + "##" + getMaterialCode() + "##" + sdf.format(getPredictDate());
         }

--
Gitblit v1.9.3