fix(data): 修复数据清理参数系统类型为空时的查询异常
- 添加系统类型参数非空校验 - 避免空值导致数据库查询错误 - 保持原有数据源条件判断逻辑
This commit is contained in:
@@ -34,7 +34,9 @@ public class PqReasonableRangeServiceImpl extends ServiceImpl<PqReasonableRangeM
|
|||||||
public List<PqReasonableRangeDto> getReasonableRangeList(DataCleanParam param) {
|
public List<PqReasonableRangeDto> getReasonableRangeList(DataCleanParam param) {
|
||||||
List<PqReasonableRangeDto> result = new ArrayList<>();
|
List<PqReasonableRangeDto> result = new ArrayList<>();
|
||||||
LambdaQueryWrapper<PqReasonableRange> queryWrapper = new LambdaQueryWrapper<>();
|
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())){
|
if(StrUtil.isNotBlank(param.getDataSource())){
|
||||||
queryWrapper.eq(PqReasonableRange::getDataSource,param.getDataSource());
|
queryWrapper.eq(PqReasonableRange::getDataSource,param.getDataSource());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user