Explorar o código

相机树开发

gao.qiang hai 2 meses
pai
achega
b745a8b295

+ 1 - 1
hazard-admin/src/main/java/com/ozs/web/controller/accountmanagment/BaseCameraManagementController.java

@@ -1120,7 +1120,7 @@ public class BaseCameraManagementController extends BaseController {
         List<DeviceStateResp> isDisable = deviceStateRespList.stream().filter(f -> f.getIsDisable().equals("2")).collect(Collectors.toList());
         map.put("isDisable", isDisable.size());
         LambdaQueryWrapper<BaseDeviceDynamicManagement> queryWrapper = new LambdaQueryWrapper<>();
-        List<DeviceStateResp> electricity = deviceStateRespList.stream().filter(f -> f.getElectricity()==10).collect(Collectors.toList());
+        List<DeviceStateResp> electricity = deviceStateRespList.stream().filter(f -> f.getElectricity()<=10).collect(Collectors.toList());
         map.put("electricity", electricity.size());
         map.put("count", isDisable.size() + electricity.size());
         map.put("readCount", isDisable.size()+electricity.size());