From ea1649d981d831ecc12a0a1730eeb26eeffd611a Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Mon, 7 Jul 2025 13:45:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=BA=E8=83=BD=E5=87=BA=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E7=A7=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/kitchen/service/impl/KitchenDeviceInfoServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/kitchen/service/impl/KitchenDeviceInfoServiceImpl.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/kitchen/service/impl/KitchenDeviceInfoServiceImpl.java index e8d6179..6c039ce 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/kitchen/service/impl/KitchenDeviceInfoServiceImpl.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/kitchen/service/impl/KitchenDeviceInfoServiceImpl.java @@ -263,7 +263,7 @@ public class KitchenDeviceInfoServiceImpl extends ServiceImpl deviceType() { Map deviceMap = DeviceTypeEnum.toMap(); - String [] stringArray = new String[]{"摄像头","门禁","留样秤","留样柜","温湿度传感器","烟雾检测传感器","水表","电表","智能称重货架","智能厨余秤"}; + String [] stringArray = new String[]{"摄像头","门禁","留样秤","留样柜","温湿度传感器","烟雾检测传感器","水表","电表","智能出入库秤"}; // 将 stringArray 转为 Set 便于快速查找 Set validValues = new HashSet<>(Arrays.asList(stringArray)); // 使用 Stream 过滤,只保留 value 存在于 validValues 中的条目