[fix][headless]Fix getModelList filter issue.

This commit is contained in:
jerryjzhang
2025-01-04 22:23:55 +08:00
parent 6af345044a
commit 7b46ef64fd
2 changed files with 8 additions and 0 deletions

View File

@@ -34,6 +34,8 @@ public class MetaFilter {
private List<String> names;
private List<String> bizNames;
private List<String> fieldsDepend;
private Integer isTag;

View File

@@ -54,6 +54,12 @@ public class ModelRepositoryImpl implements ModelRepository {
if (!CollectionUtils.isEmpty(modelFilter.getModelIds())) {
wrapper.lambda().in(ModelDO::getId, modelFilter.getModelIds());
}
if (!CollectionUtils.isEmpty(modelFilter.getNames())) {
wrapper.lambda().in(ModelDO::getName, modelFilter.getNames());
}
if (!CollectionUtils.isEmpty(modelFilter.getBizNames())) {
wrapper.lambda().in(ModelDO::getBizName, modelFilter.getBizNames());
}
if (modelFilter.getIncludesDetail() != null && !modelFilter.getIncludesDetail()) {
wrapper.select(ModelDO.class, modelDO -> !modelDO.getColumn().equals("model_detail"));
}