From 87a050a80c477fedf706adfe1c89b11a705ac325 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 09 六月 2025 16:17:37 +0800
Subject: [PATCH] 完善代码

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

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIntakeOperateMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIntakeOperateMapper.xml
index e953e95..6dc8edc 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIntakeOperateMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIntakeOperateMapper.xml
@@ -156,6 +156,13 @@
     where command_id = #{commandId}
   </update>
 
+  <!--鏍规嵁涓婚敭淇敼鍛戒护ID-->
+  <update id="updateCommandId">
+    update ir_intake_operate
+    set command_id = #{commandId}
+    where id = #{id}
+  </update>
+
   <!--鏍规嵁璁″垝ID鑾峰彇寰呯粓姝㈢殑鍙栨按鍙D锛堝凡鍙戝竷寮�鍙戝懡浠わ紝鏃犺鏄惁鎴愬姛锛�-->
   <select id="getToTerminateIntakeIds" resultType="java.lang.Long">
     SELECT
@@ -187,7 +194,7 @@
         io.failure_factors AS result
     FROM ir_intake_operate io
         inner JOIN ir_group_intake gi ON gi.intake_id = io.intake_id
-    WHERE io.plan_id = #{planId} AND gi.group_id = #{groupId};
+    WHERE io.plan_id = #{planId} AND gi.group_id = #{groupId} AND operate_type = 1;
   </select>
 
   <!--鏍规嵁璁″垝ID鑾峰彇鍙栨按鍙e懡浠ゅ彂甯冨け璐ユ暟閲忥紝鐏屾簤璁″垝璇︽儏椤典娇鐢�-->

--
Gitblit v1.8.0