From 664db98c9e8595ce4dd636a27f480e3a08b81ff5 Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期五, 21 二月 2025 11:13:51 +0800
Subject: [PATCH] 新增可忽略的维修时间

---
 modules/mainPart/src/main/resources/mapper/taskReliability/TaskRepairParamDao.xml |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 50 insertions(+), 2 deletions(-)

diff --git a/modules/mainPart/src/main/resources/mapper/taskReliability/TaskRepairParamDao.xml b/modules/mainPart/src/main/resources/mapper/taskReliability/TaskRepairParamDao.xml
index 3d511d1..ab95b0d 100644
--- a/modules/mainPart/src/main/resources/mapper/taskReliability/TaskRepairParamDao.xml
+++ b/modules/mainPart/src/main/resources/mapper/taskReliability/TaskRepairParamDao.xml
@@ -36,10 +36,9 @@
                             and e.is_delete = 0
                             and f.id = e.node_id
                             and f.is_delete = 0
-                            and f.equip_type is not null and f.equip_type &lt;&gt; ''
+                            and f.equip_type is not null
                             and g.product_id = f.id
                             and g.is_delete = 0
-                            and g.reliab_distrib_type = 2
                             and g.repairable = 1
                       ) c
                  group by task_id, phase_id, phase_name, phase_sort, equip_type
@@ -48,4 +47,53 @@
                            on e.task_id = d.task_id and e.phase_id = d.phase_id and e.equip_type = d.equip_type
     </select>
 
+    <select id="getTaskRepairConstraints" resultType="com.zt.life.modules.mainPart.taskReliability.dto.TaskPhaseConstraintDto">
+        SELECT
+            h.task_id,
+            h.phase_id,
+            b.operat_condit_id as gk_model_id,
+            d.model_id,
+            h.equip_type,
+            h.STATUS,
+            f.`NAME` as product_name,
+            f.ID as product_id
+        FROM
+            task_phase a,
+            task_phase_model b,
+            operat_condit c,
+            operat_condit_model d,
+            model_node_algorithm e,
+            product_model f,
+            param_data g,
+            task_repair_param h
+        WHERE
+            a.task_id = #{taskId}
+          AND a.is_delete = 0
+          AND b.phase_id = a.id
+          and a.id = #{phaseId}
+          AND b.is_delete = 0
+          AND c.id = b.operat_condit_id
+          and c.id = #{gkId}
+          AND c.is_delete = 0
+          AND d.operat_condit_id = c.id
+          AND d.is_delete = 0
+          AND d.is_disabled = 0
+          AND e.model_id = d.model_id
+          AND e.is_delete = 0
+          AND f.id = e.data_id
+          AND f.is_delete = 0
+          AND g.product_id = f.id
+          AND g.is_delete = 0
+          AND g.repairable = 1
+          and h.task_id = a.task_id
+          and h.phase_id = b.phase_id
+          and h.`STATUS` = 1
+          and h.equip_type = f.equip_type
+        order by h.task_id,
+                 h.phase_id,
+                 b.operat_condit_id,
+                 d.model_id,
+                 h.equip_type,
+                 f.`NAME`
+    </select>
 </mapper>

--
Gitblit v1.9.1