From 4cde4aa90d5923ff7de546788677f23f7afebe50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LAPTOP-S9HJSOEB=5C=E6=98=8A=E5=A4=A9?= Date: Mon, 23 Dec 2024 10:20:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=8F=E8=A1=8C=E8=87=AA=E5=8A=A8=E5=BC=80?= =?UTF-8?q?=E7=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/main/java/com/zhehekeji/web/service/PlcService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/main/java/com/zhehekeji/web/service/PlcService.java b/web/src/main/java/com/zhehekeji/web/service/PlcService.java index 657040c..8182386 100644 --- a/web/src/main/java/com/zhehekeji/web/service/PlcService.java +++ b/web/src/main/java/com/zhehekeji/web/service/PlcService.java @@ -328,6 +328,10 @@ public class PlcService { */ public void action(PlcCmdInfo plcCmdInfo, Integer times, String code) throws InterruptedException { Street street = streetService.getStreetByPlcId(plcCmdInfo.getPlcId()); + List lightSources = lightSourceMapper.selectList(new QueryWrapper().eq("street_id",street.getId())); + lightSources.forEach(lightSource -> { + lightSourceService.controllerLightSource(lightSource,1); + }); if (street == null) { log.error("street not found ,plcId :{}", plcCmdInfo.getPlcId()); return;