From f16c96a3bbd126dca21b254ceb018a0558f5ea1d Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期五, 25 十月 2024 13:57:24 +0800
Subject: [PATCH] “开关阀卡”修改成“巡检卡”

---
 pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOpenCloseValveHistoryMapper.xml |   32 ++++++++++++++++++++++++++------
 1 files changed, 26 insertions(+), 6 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOpenCloseValveHistoryMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOpenCloseValveHistoryMapper.xml
index 9d8fc5e..65e7dd0 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOpenCloseValveHistoryMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOpenCloseValveHistoryMapper.xml
@@ -476,7 +476,7 @@
                    WHEN oh.op_type = 3 THEN '涓績绔欏紑闃�'
                    WHEN oh.op_type = 5 THEN '浣欓涓嶈冻鍏抽榾'
                    WHEN oh.op_type = 8 THEN '鐢ㄦ埛杩滅▼寮�闃�'
-                   WHEN oh.op_type = 11 THEN '寮�鍏抽榾鍗″紑闃�'
+                   WHEN oh.op_type = 11 THEN '宸℃鍗″紑闃�'
                    ELSE '鏈煡'
                    END                 AS openType,
                oh.op_order_no          AS openOrderNo,
@@ -494,7 +494,7 @@
                    WHEN oh.cl_type = 6 THEN '娴侀噺璁℃晠闅滃叧闃�'
                    WHEN oh.cl_type = 7 THEN '绱ф�ュ叧闂�'
                    WHEN oh.cl_type = 9 THEN '鐢ㄦ埛杩滅▼鍏抽榾'
-                   WHEN oh.cl_type = 10 THEN '寮�鍏抽榾鍗″叧闃�'
+                   WHEN oh.cl_type = 10 THEN '宸℃鍗″叧闃�'
                    WHEN oh.cl_type = 12 THEN '榛戝悕鍗曞懡浠ゅ叧闃�'
                    WHEN oh.cl_type = 13 THEN '鐢ㄦ埛杩滅▼瀹氭椂鍏抽榾'
                    WHEN oh.cl_type = 14 THEN '鐢ㄦ埛杩滅▼瀹氶噺鍏抽榾'
@@ -1270,7 +1270,12 @@
         SELECT COUNT(*) AS recordCount
         FROM rm_open_close_valve_history his
                  LEFT JOIN pr_intake inta ON inta.id = his.intake_id
-        WHERE op_type  = 1
+        <where>
+            AND op_type  = 1
+            <if test = "clientId != null">
+                AND his.client_id = #{clientId}
+            </if>
+        </where>
     </select>
 
     <!--鑾峰彇鐗╃悊鍗″紑鍏抽榾璁板綍锛屽井淇″皬绋嬪簭浣跨敤-->
@@ -1286,7 +1291,12 @@
             '鍒峰崱寮�闃�' AS openType
         FROM rm_open_close_valve_history his
                  LEFT JOIN pr_intake inta ON inta.id = his.intake_id
-        WHERE op_type  = 1
+        <where>
+            AND op_type  = 1
+            <if test = "clientId != null">
+                AND his.client_id = #{clientId}
+            </if>
+        </where>
         ORDER BY open_dt DESC
         <trim prefix="limit " >
             <if test="start != null and count != null">
@@ -1300,7 +1310,12 @@
         SELECT COUNT(*) AS recordCount
         FROM rm_open_close_valve_history his
                  LEFT JOIN pr_intake inta ON inta.id = his.intake_id
-        WHERE op_type  = 8
+        <where>
+            AND op_type  = 8
+            <if test = "clientId != null">
+                AND his.client_id = #{clientId}
+            </if>
+        </where>
     </select>
 
     <!--鑾峰彇铏氭嫙鍗″紑鍏抽榾璁板綍锛屽井淇″皬绋嬪簭浣跨敤-->
@@ -1320,7 +1335,12 @@
                 END AS openType
         FROM rm_open_close_valve_history his
                  LEFT JOIN pr_intake inta ON inta.id = his.intake_id
-        WHERE op_type  = 8
+        <where>
+            AND op_type  = 8
+            <if test = "clientId != null">
+                AND his.client_id = #{clientId}
+            </if>
+        </where>
         ORDER BY open_dt DESC
         <trim prefix="limit " >
             <if test="start != null and count != null">

--
Gitblit v1.8.0