智能出入库秤

This commit is contained in:
sxu 2025-07-07 13:45:28 +08:00
parent 7a6de485a3
commit ea1649d981
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ public class KitchenDeviceInfoServiceImpl extends ServiceImpl<KitchenDeviceInfoM
@Override
public Map<Integer, String> deviceType() {
Map<Integer, String> deviceMap = DeviceTypeEnum.toMap();
String [] stringArray = new String[]{"摄像头","门禁","留样秤","留样柜","温湿度传感器","烟雾检测传感器","水表","电表","智能称重货架","智能厨余"};
String [] stringArray = new String[]{"摄像头","门禁","留样秤","留样柜","温湿度传感器","烟雾检测传感器","水表","电表","智能出入库"};
// stringArray 转为 Set 便于快速查找
Set<String> validValues = new HashSet<>(Arrays.asList(stringArray));
// 使用 Stream 过滤只保留 value 存在于 validValues 中的条目