提交 a664a79e authored 作者: junjie's avatar junjie

feat(数据集): fix

上级 6b510908
...@@ -33,7 +33,7 @@ public class ChartGroupService { ...@@ -33,7 +33,7 @@ public class ChartGroupService {
chartGroup.setCreateTime(System.currentTimeMillis()); chartGroup.setCreateTime(System.currentTimeMillis());
chartGroupMapper.insert(chartGroup); chartGroupMapper.insert(chartGroup);
} else { } else {
chartGroupMapper.updateByPrimaryKey(chartGroup); chartGroupMapper.updateByPrimaryKeySelective(chartGroup);
} }
ChartGroupDTO ChartGroupDTO = new ChartGroupDTO(); ChartGroupDTO ChartGroupDTO = new ChartGroupDTO();
BeanUtils.copyBean(ChartGroupDTO, chartGroup); BeanUtils.copyBean(ChartGroupDTO, chartGroup);
......
...@@ -45,7 +45,7 @@ public class ChartViewService { ...@@ -45,7 +45,7 @@ public class ChartViewService {
public ChartViewWithBLOBs save(ChartViewWithBLOBs chartView) { public ChartViewWithBLOBs save(ChartViewWithBLOBs chartView) {
long timestamp = System.currentTimeMillis(); long timestamp = System.currentTimeMillis();
chartView.setUpdateTime(timestamp); chartView.setUpdateTime(timestamp);
int i = chartViewMapper.updateByPrimaryKeyWithBLOBs(chartView); int i = chartViewMapper.updateByPrimaryKeySelective(chartView);
if (i == 0) { if (i == 0) {
chartView.setId(UUID.randomUUID().toString()); chartView.setId(UUID.randomUUID().toString());
chartView.setCreateTime(timestamp); chartView.setCreateTime(timestamp);
......
...@@ -35,7 +35,7 @@ public class DataSetGroupService { ...@@ -35,7 +35,7 @@ public class DataSetGroupService {
datasetGroup.setCreateTime(System.currentTimeMillis()); datasetGroup.setCreateTime(System.currentTimeMillis());
datasetGroupMapper.insert(datasetGroup); datasetGroupMapper.insert(datasetGroup);
} else { } else {
datasetGroupMapper.updateByPrimaryKey(datasetGroup); datasetGroupMapper.updateByPrimaryKeySelective(datasetGroup);
} }
DataSetGroupDTO dataSetGroupDTO = new DataSetGroupDTO(); DataSetGroupDTO dataSetGroupDTO = new DataSetGroupDTO();
BeanUtils.copyBean(dataSetGroupDTO, datasetGroup); BeanUtils.copyBean(dataSetGroupDTO, datasetGroup);
......
...@@ -31,7 +31,7 @@ public class DataSetTableFieldsService { ...@@ -31,7 +31,7 @@ public class DataSetTableFieldsService {
datasetTableField.setId(UUID.randomUUID().toString()); datasetTableField.setId(UUID.randomUUID().toString());
datasetTableFieldMapper.insert(datasetTableField); datasetTableFieldMapper.insert(datasetTableField);
} else { } else {
datasetTableFieldMapper.updateByPrimaryKey(datasetTableField); datasetTableFieldMapper.updateByPrimaryKeySelective(datasetTableField);
} }
return datasetTableField; return datasetTableField;
} }
......
...@@ -62,7 +62,7 @@ public class DataSetTableService { ...@@ -62,7 +62,7 @@ public class DataSetTableService {
saveTableField(datasetTable); saveTableField(datasetTable);
} }
} else { } else {
datasetTableMapper.updateByPrimaryKeyWithBLOBs(datasetTable); datasetTableMapper.updateByPrimaryKeySelective(datasetTable);
} }
return datasetTable; return datasetTable;
} }
......
...@@ -29,7 +29,7 @@ public class DataSetTableTaskLogService { ...@@ -29,7 +29,7 @@ public class DataSetTableTaskLogService {
datasetTableTaskLog.setCreateTime(System.currentTimeMillis()); datasetTableTaskLog.setCreateTime(System.currentTimeMillis());
datasetTableTaskLogMapper.insert(datasetTableTaskLog); datasetTableTaskLogMapper.insert(datasetTableTaskLog);
} else { } else {
datasetTableTaskLogMapper.updateByPrimaryKey(datasetTableTaskLog); datasetTableTaskLogMapper.updateByPrimaryKeySelective(datasetTableTaskLog);
} }
return datasetTableTaskLog; return datasetTableTaskLog;
} }
......
...@@ -39,7 +39,7 @@ public class DataSetTableTaskService { ...@@ -39,7 +39,7 @@ public class DataSetTableTaskService {
datasetTableTask.setCreateTime(System.currentTimeMillis()); datasetTableTask.setCreateTime(System.currentTimeMillis());
datasetTableTaskMapper.insert(datasetTableTask); datasetTableTaskMapper.insert(datasetTableTask);
} else { } else {
datasetTableTaskMapper.updateByPrimaryKey(datasetTableTask); datasetTableTaskMapper.updateByPrimaryKeySelective(datasetTableTask);
} }
scheduleService.addSchedule(datasetTableTask); scheduleService.addSchedule(datasetTableTask);
return datasetTableTask; return datasetTableTask;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论