From 828ab0a29e334beaf300b2aea0eee47ff5404615 Mon Sep 17 00:00:00 2001 From: 16337 <1633794139@qq.com> Date: Fri, 13 Feb 2026 17:01:34 +0800 Subject: [PATCH] =?UTF-8?q?refactor(aiot):=20=E7=AE=80=E5=8C=96=E7=A6=BB?= =?UTF-8?q?=E5=B2=97=E6=A3=80=E6=B5=8B=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=EF=BC=8C=E5=9B=BA=E5=AE=9A=E6=8A=80=E6=9C=AF=E7=BB=86=E8=8A=82?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 用户只需配置核心参数: - leave_countdown_sec: 离岗倒计时(默认300秒) - working_hours: 工作时间段 固定参数(使用默认值,前端不展示): - confirm_on_duty_sec: 10秒(在岗确认时间) - confirm_leave_sec: 30秒(离岗确认时间) 优点: - 简化用户配置,只需关注核心业务参数 - 技术细节参数固定,避免用户误配置 - 界面更简洁,降低学习成本 Co-Authored-By: Claude Opus 4.6 --- .../iot/vmp/aiot/service/impl/AiAlgorithmServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/genersoft/iot/vmp/aiot/service/impl/AiAlgorithmServiceImpl.java b/src/main/java/com/genersoft/iot/vmp/aiot/service/impl/AiAlgorithmServiceImpl.java index 0b5073f52..e1eaaf387 100644 --- a/src/main/java/com/genersoft/iot/vmp/aiot/service/impl/AiAlgorithmServiceImpl.java +++ b/src/main/java/com/genersoft/iot/vmp/aiot/service/impl/AiAlgorithmServiceImpl.java @@ -41,7 +41,7 @@ public class AiAlgorithmServiceImpl implements IAiAlgorithmService { // algoCode -> {algoName, targetClass, description, paramSchema} PRESET_ALGORITHMS.put("leave_post", new String[]{ "离岗检测", "person", "检测人员是否在岗,支持工作时间段配置", - "{\"confirm_on_duty_sec\":{\"type\":\"int\",\"default\":10,\"min\":1},\"confirm_leave_sec\":{\"type\":\"int\",\"default\":30,\"min\":1},\"leave_countdown_sec\":{\"type\":\"int\",\"default\":300,\"min\":0},\"working_hours\":{\"type\":\"list\",\"default\":[]}}" + "{\"leave_countdown_sec\":{\"type\":\"int\",\"default\":300,\"min\":0},\"working_hours\":{\"type\":\"list\",\"default\":[]}}" }); PRESET_ALGORITHMS.put("intrusion", new String[]{ "周界入侵检测", "person", "检测人员进入指定区域",