Browse Source

异常设备统计添加筛选逻辑

develop
zhaoxianglong 8 months ago
parent
commit
7271f0f08b
  1. 1
      zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java

1
zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java

@ -384,6 +384,7 @@ public class DcDeviceServiceImpl extends ServiceImpl<DcDeviceMapper, DcDevice> i
public Long statisticalAnomalyDevice() {
LambdaQueryWrapper<DcDevice> lambdaQueryWrapper = new LambdaQueryWrapper<>();
lambdaQueryWrapper.eq(DcDevice::getDeviceState, 0).or().isNull(DcDevice::getDeviceState);
lambdaQueryWrapper.eq(DcDevice::getUseState,1);
return (long) list(lambdaQueryWrapper).size();
}

Loading…
Cancel
Save