forked from github/dataease
feat(数据集): fix
This commit is contained in:
parent
6b51090887
commit
a664a79e5f
@ -33,7 +33,7 @@ public class ChartGroupService {
|
||||
chartGroup.setCreateTime(System.currentTimeMillis());
|
||||
chartGroupMapper.insert(chartGroup);
|
||||
} else {
|
||||
chartGroupMapper.updateByPrimaryKey(chartGroup);
|
||||
chartGroupMapper.updateByPrimaryKeySelective(chartGroup);
|
||||
}
|
||||
ChartGroupDTO ChartGroupDTO = new ChartGroupDTO();
|
||||
BeanUtils.copyBean(ChartGroupDTO, chartGroup);
|
||||
|
@ -45,7 +45,7 @@ public class ChartViewService {
|
||||
public ChartViewWithBLOBs save(ChartViewWithBLOBs chartView) {
|
||||
long timestamp = System.currentTimeMillis();
|
||||
chartView.setUpdateTime(timestamp);
|
||||
int i = chartViewMapper.updateByPrimaryKeyWithBLOBs(chartView);
|
||||
int i = chartViewMapper.updateByPrimaryKeySelective(chartView);
|
||||
if (i == 0) {
|
||||
chartView.setId(UUID.randomUUID().toString());
|
||||
chartView.setCreateTime(timestamp);
|
||||
|
@ -35,7 +35,7 @@ public class DataSetGroupService {
|
||||
datasetGroup.setCreateTime(System.currentTimeMillis());
|
||||
datasetGroupMapper.insert(datasetGroup);
|
||||
} else {
|
||||
datasetGroupMapper.updateByPrimaryKey(datasetGroup);
|
||||
datasetGroupMapper.updateByPrimaryKeySelective(datasetGroup);
|
||||
}
|
||||
DataSetGroupDTO dataSetGroupDTO = new DataSetGroupDTO();
|
||||
BeanUtils.copyBean(dataSetGroupDTO, datasetGroup);
|
||||
|
@ -31,7 +31,7 @@ public class DataSetTableFieldsService {
|
||||
datasetTableField.setId(UUID.randomUUID().toString());
|
||||
datasetTableFieldMapper.insert(datasetTableField);
|
||||
} else {
|
||||
datasetTableFieldMapper.updateByPrimaryKey(datasetTableField);
|
||||
datasetTableFieldMapper.updateByPrimaryKeySelective(datasetTableField);
|
||||
}
|
||||
return datasetTableField;
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ public class DataSetTableService {
|
||||
saveTableField(datasetTable);
|
||||
}
|
||||
} else {
|
||||
datasetTableMapper.updateByPrimaryKeyWithBLOBs(datasetTable);
|
||||
datasetTableMapper.updateByPrimaryKeySelective(datasetTable);
|
||||
}
|
||||
return datasetTable;
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ public class DataSetTableTaskLogService {
|
||||
datasetTableTaskLog.setCreateTime(System.currentTimeMillis());
|
||||
datasetTableTaskLogMapper.insert(datasetTableTaskLog);
|
||||
} else {
|
||||
datasetTableTaskLogMapper.updateByPrimaryKey(datasetTableTaskLog);
|
||||
datasetTableTaskLogMapper.updateByPrimaryKeySelective(datasetTableTaskLog);
|
||||
}
|
||||
return datasetTableTaskLog;
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ public class DataSetTableTaskService {
|
||||
datasetTableTask.setCreateTime(System.currentTimeMillis());
|
||||
datasetTableTaskMapper.insert(datasetTableTask);
|
||||
} else {
|
||||
datasetTableTaskMapper.updateByPrimaryKey(datasetTableTask);
|
||||
datasetTableTaskMapper.updateByPrimaryKeySelective(datasetTableTask);
|
||||
}
|
||||
scheduleService.addSchedule(datasetTableTask);
|
||||
return datasetTableTask;
|
||||
|
Loading…
Reference in New Issue
Block a user