From 68dd3d7c2ac640db7e82c04aeb897725f3183379 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期六, 02 八月 2025 07:51:24 +0800 Subject: [PATCH] 1 --- src/main/java/com/zy/asrs/task/ShuttleChargePowerScheduler.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/ShuttleChargePowerScheduler.java b/src/main/java/com/zy/asrs/task/ShuttleChargePowerScheduler.java index 51de897..0e4fd26 100644 --- a/src/main/java/com/zy/asrs/task/ShuttleChargePowerScheduler.java +++ b/src/main/java/com/zy/asrs/task/ShuttleChargePowerScheduler.java @@ -106,9 +106,10 @@ return false; } - BasShuttle basShuttle = shuttleList.get(0); - basShuttle.setChargeLine(timedChargePowerLine); - basShuttleService.updateById(basShuttle); + for (BasShuttle basShuttle : shuttleList) { + basShuttle.setChargeLine(timedChargePowerLine); + basShuttleService.updateById(basShuttle); + } redisUtil.set("timedCharge", shuttleList.size()); return true; -- Gitblit v1.9.1