mirror of
https://github.com/dataease/dataease.git
synced 2026-06-13 01:01:20 +08:00
feat(视图): 视图编辑保存,横纵维度指标,EChart展示
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package io.dataease.controller.chart;
|
||||
|
||||
import io.dataease.base.domain.ChartGroup;
|
||||
import io.dataease.base.domain.DatasetGroup;
|
||||
import io.dataease.controller.request.chart.ChartGroupRequest;
|
||||
import io.dataease.dto.chart.ChartGroupDTO;
|
||||
import io.dataease.service.chart.ChartGroupService;
|
||||
@@ -29,4 +30,9 @@ public class ChartGroupController {
|
||||
public void tree(@PathVariable String id) {
|
||||
chartGroupService.delete(id);
|
||||
}
|
||||
|
||||
@PostMapping("/getScene/{id}")
|
||||
public ChartGroup getScene(@PathVariable String id) {
|
||||
return chartGroupService.getScene(id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,4 +33,9 @@ public class DataSetGroupController {
|
||||
public void tree(@PathVariable String id) {
|
||||
dataSetGroupService.delete(id);
|
||||
}
|
||||
|
||||
@PostMapping("/getScene/{id}")
|
||||
public DatasetGroup getScene(@PathVariable String id) {
|
||||
return dataSetGroupService.getScene(id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,6 +47,10 @@ public class ChartGroupService {
|
||||
chartGroupMapper.deleteByExample(ChartGroupExample);
|
||||
}
|
||||
|
||||
public ChartGroup getScene(String id) {
|
||||
return chartGroupMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
public List<ChartGroupDTO> tree(ChartGroupRequest ChartGroup) {
|
||||
ChartGroupExample ChartGroupExample = new ChartGroupExample();
|
||||
ChartGroupExample.Criteria criteria = ChartGroupExample.createCriteria();
|
||||
|
||||
@@ -58,6 +58,10 @@ public class DataSetGroupService {
|
||||
}).map(DatasetGroup::getId).collect(Collectors.toList()));
|
||||
}
|
||||
|
||||
public DatasetGroup getScene(String id) {
|
||||
return datasetGroupMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
public void deleteTableAndField(List<String> sceneIds) {
|
||||
for (String sceneId : sceneIds) {
|
||||
DataSetTableRequest dataSetTableRequest = new DataSetTableRequest();
|
||||
|
||||
Reference in New Issue
Block a user