fix(data): 修复数据清理参数系统类型为空时的查询异常

- 添加系统类型参数非空校验
- 避免空值导致数据库查询错误
- 保持原有数据源条件判断逻辑
This commit is contained in:
xy
2026-05-21 19:48:08 +08:00
parent 221007b367
commit c02acfca4f

View File

@@ -34,7 +34,9 @@ public class PqReasonableRangeServiceImpl extends ServiceImpl<PqReasonableRangeM
public List<PqReasonableRangeDto> getReasonableRangeList(DataCleanParam param) {
List<PqReasonableRangeDto> result = new ArrayList<>();
LambdaQueryWrapper<PqReasonableRange> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(PqReasonableRange::getBelongingSystem,param.getSystemType());
if (StrUtil.isNotBlank(param.getSystemType())) {
queryWrapper.eq(PqReasonableRange::getBelongingSystem,param.getSystemType());
}
if(StrUtil.isNotBlank(param.getDataSource())){
queryWrapper.eq(PqReasonableRange::getDataSource,param.getDataSource());
}