mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 20:25:12 +00:00
[fix][headless] The output on the front-end dimension page is abnormal after the model management is modified (#2048)
This commit is contained in:
@@ -300,6 +300,15 @@ public class ModelConverter {
|
||||
private static ModelDetail updateModelDetail(ModelReq modelReq) {
|
||||
ModelDetail modelDetail = new ModelDetail();
|
||||
List<Measure> measures = modelReq.getModelDetail().getMeasures();
|
||||
List<Dimension> dimensions = modelReq.getModelDetail().getDimensions();
|
||||
if (!CollectionUtils.isEmpty(dimensions)) {
|
||||
for (Dimension dimension : dimensions) {
|
||||
if (StringUtils.isNotBlank(dimension.getBizName())
|
||||
&& StringUtils.isBlank(dimension.getExpr())) {
|
||||
dimension.setExpr(dimension.getBizName());
|
||||
}
|
||||
}
|
||||
}
|
||||
if (measures == null) {
|
||||
measures = Lists.newArrayList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user