mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 13:47:09 +00:00
(improvement)(Headless) fix JSON error (#841)
This commit is contained in:
@@ -14,7 +14,7 @@ public class DataSetModelConfig {
|
||||
|
||||
private Long id;
|
||||
|
||||
private boolean includesAll;
|
||||
private Boolean includesAll = false;
|
||||
|
||||
private List<Long> metrics = Lists.newArrayList();
|
||||
|
||||
|
||||
@@ -1,20 +1,16 @@
|
||||
package com.tencent.supersonic.headless.api.pojo.request;
|
||||
|
||||
import com.tencent.supersonic.common.pojo.DateConf;
|
||||
import com.tencent.supersonic.headless.api.pojo.SchemaElementType;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class ItemValueReq {
|
||||
|
||||
private SchemaElementType type;
|
||||
|
||||
@NotNull
|
||||
private Long itemId;
|
||||
private Long id;
|
||||
|
||||
private DateConf dateConf;
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ public class DataSetResp extends SchemaItem {
|
||||
}
|
||||
|
||||
public List<Long> getAllIncludeAllModels() {
|
||||
return getDataSetModelConfigs().stream().filter(DataSetModelConfig::isIncludesAll)
|
||||
return getDataSetModelConfigs().stream().filter(DataSetModelConfig::getIncludesAll)
|
||||
.map(DataSetModelConfig::getId)
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user