mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 03:58:14 +00:00
[fix][headless]Fix getModelList filter issue.
This commit is contained in:
@@ -34,6 +34,8 @@ public class MetaFilter {
|
||||
|
||||
private List<String> names;
|
||||
|
||||
private List<String> bizNames;
|
||||
|
||||
private List<String> fieldsDepend;
|
||||
|
||||
private Integer isTag;
|
||||
|
||||
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user