From d9d08181a94d727a4fe5933ac9efd1ff5c8a7c5a Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期三, 16 七月 2025 13:49:13 +0800
Subject: [PATCH] 中间件修改内容: 1、当没农业综合站时即没相关配置项目内容为空时,启动时会产生bug; 2、整理优化代码。

---
 pipIrr-platform/pipIrr-global/src/main/resources/mapper/UgRtuControllerMapper.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/UgRtuControllerMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/UgRtuControllerMapper.xml
index fd8a25f..37c93e5 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/UgRtuControllerMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/UgRtuControllerMapper.xml
@@ -140,10 +140,10 @@
         AND ugCon.rtu_addr = #{rtuAddr,jdbcType=VARCHAR}
       </if>
       <if test="state != null and state == 1">
-        AND ugCon.ug_state = 1
+        AND ugCon.ug_state = 2
       </if>
       <if test="state != null and state == 0">
-        AND ugCon.ug_state != 1
+        AND ugCon.ug_state != 2
       </if>
       <if test="fail != null">
         AND ugCon.ug_state = #{fail,jdbcType=INTEGER}
@@ -175,10 +175,10 @@
         AND ugCon.rtu_addr = #{rtuAddr,jdbcType=VARCHAR}
       </if>
       <if test="state != null and state == 1">
-        AND ugCon.ug_state = 1
+        AND ugCon.ug_state = 2
       </if>
       <if test="state != null and state == 0">
-        AND ugCon.ug_state != 1
+        AND ugCon.ug_state != 2
       </if>
       <if test="fail != null">
         AND ugCon.ug_state = #{fail,jdbcType=INTEGER}

--
Gitblit v1.8.0