From 5dec8dcc45b40a1d7acdf05be2f2ffd00759535e Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期六, 07 六月 2025 16:11:30 +0800
Subject: [PATCH] 1、*-global.yml配置文件中增加有关萤石云应用的配置; 2、萤石云视频监控相关数据库设计(萤石应用+视频监控站); 3、remote模块增加定时下载萤石应用AccessToken的监听器,及网络下载逻辑,数据库存储等功能实现;

---
 pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIntakeOperateMapper.xml |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 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 905c155..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
@@ -178,4 +185,23 @@
     FROM ir_intake_operate
     WHERE operate_type = 1 AND command_result = 1 AND plan_id = #{planId}
   </select>
+
+  <!--鏍规嵁璁″垝ID鍙婄杞粍ID鑾峰彇鍙栨按鍙e彂甯冨彂甯冪粨鏋�-->
+  <select id="getIntakeResult" resultType="com.dy.pipIrrGlobal.voIr.VoIntakeResult">
+    SELECT
+        IF(io.command_result = 1, 0, 1) AS code,
+        (SELECT name FROM pr_intake WHERE id = io.intake_id) AS intakeName,
+        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} AND operate_type = 1;
+  </select>
+
+  <!--鏍规嵁璁″垝ID鑾峰彇鍙栨按鍙e懡浠ゅ彂甯冨け璐ユ暟閲忥紝鐏屾簤璁″垝璇︽儏椤典娇鐢�-->
+  <select id="getFailureCount" resultType="java.lang.Integer">
+    SELECT
+      COUNT(1) AS failureCount
+    FROM ir_intake_operate
+    WHERE operate_type = 1 AND command_result != 1 AND plan_id = #{planId}
+  </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0