mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 04:27:39 +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> names;
|
||||||
|
|
||||||
|
private List<String> bizNames;
|
||||||
|
|
||||||
private List<String> fieldsDepend;
|
private List<String> fieldsDepend;
|
||||||
|
|
||||||
private Integer isTag;
|
private Integer isTag;
|
||||||
|
|||||||
@@ -54,6 +54,12 @@ public class ModelRepositoryImpl implements ModelRepository {
|
|||||||
if (!CollectionUtils.isEmpty(modelFilter.getModelIds())) {
|
if (!CollectionUtils.isEmpty(modelFilter.getModelIds())) {
|
||||||
wrapper.lambda().in(ModelDO::getId, 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()) {
|
if (modelFilter.getIncludesDetail() != null && !modelFilter.getIncludesDetail()) {
|
||||||
wrapper.select(ModelDO.class, modelDO -> !modelDO.getColumn().equals("model_detail"));
|
wrapper.select(ModelDO.class, modelDO -> !modelDO.getColumn().equals("model_detail"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user