|
|
@ -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(); |
|
|
|
} |
|
|
|
|
|
|
|