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

feat(数据集): fix

上级 6b510908
......@@ -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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论