From f87a4f2311452f8575503ef3642455679f16b6cd Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Tue, 24 Feb 2026 17:07:16 +0800 Subject: [PATCH] =?UTF-8?q?refactor(video):=20=E7=A7=BB=E9=99=A4=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E5=8D=A0=E4=BD=8D=E7=AC=A6=E6=A3=80=E6=9F=A5=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除了模板占位符验证相关代码 - 简化了设备计数逻辑 - 移除了不必要的模板占位符列表操作 --- .../java/com/ycwl/basic/repository/VideoTaskRepository.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/com/ycwl/basic/repository/VideoTaskRepository.java b/src/main/java/com/ycwl/basic/repository/VideoTaskRepository.java index c7d4e0f5..affc4b64 100644 --- a/src/main/java/com/ycwl/basic/repository/VideoTaskRepository.java +++ b/src/main/java/com/ycwl/basic/repository/VideoTaskRepository.java @@ -91,17 +91,13 @@ public class VideoTaskRepository { return 1; } AtomicInteger deviceCount = new AtomicInteger(); - List templatePlaceholder = templateRepository.getTemplatePlaceholder(task.getTemplateId()); paramJson.entrySet().stream() .filter(entry -> StringUtils.isNumeric(entry.getKey())) .forEach(entry -> { List jsonArray = JacksonUtil.parseArray(JacksonUtil.toJSONString(entry.getValue()), Object.class); if (jsonArray != null && !jsonArray.isEmpty()) { for (Object ignored : jsonArray) { - if (templatePlaceholder.contains(entry.getKey())) { - deviceCount.getAndIncrement(); - templatePlaceholder.remove(entry.getKey()); - } + deviceCount.getAndIncrement(); } } });