feat(数据集):编辑自助数据集

This commit is contained in:
junjie
2021-05-12 15:53:53 +08:00
parent 5c26b5986d
commit ef36e73948
3 changed files with 19 additions and 6 deletions

View File

@@ -102,7 +102,7 @@ public class DataSetTableService {
int update = datasetTableMapper.updateByPrimaryKeySelective(datasetTable);
// sql 更新
if (update == 1) {
if (StringUtils.equalsIgnoreCase(datasetTable.getType(), "sql")) {
if (StringUtils.equalsIgnoreCase(datasetTable.getType(), "sql") || StringUtils.equalsIgnoreCase(datasetTable.getType(), "custom")) {
// 删除所有字段,重新抽象
dataSetTableFieldsService.deleteByTableId(datasetTable.getId());
saveTableField(datasetTable);