Browse Source

算法卡包修改业务逻辑

李进 1 năm trước cách đây
mục cha
commit
cad0e24f2a

+ 1 - 1
device-api-service/src/main/java/com/xy/service/DeviceInfoServiceImpl.java

@@ -778,7 +778,7 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
     @Override
     public R<List<DeviceInfoDto.Vo>> list(DeviceInfoDto.ListDto dto) {
         List<DeviceInfo> list = list(new LambdaQueryWrapper<DeviceInfo>()
-                .eq(DeviceInfo::getFreezeStatus, dto.getFreezeStatus())
+                .eq(Emptys.check(dto.getFreezeStatus()), DeviceInfo::getFreezeStatus, dto.getFreezeStatus())
                 .in(CollUtil.isNotEmpty(dto.getDeviceIds()), DeviceInfo::getDeviceId, dto.getDeviceIds())
                 .eq(Emptys.check(dto.getMercId()), DeviceInfo::getMercId, dto.getMercId())
         );