feat(数据集): fix

This commit is contained in:
junjie 2021-03-25 18:18:44 +08:00
parent 6b51090887
commit a664a79e5f
7 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -31,7 +31,7 @@ public class DataSetTableFieldsService {
datasetTableField.setId(UUID.randomUUID().toString());
datasetTableFieldMapper.insert(datasetTableField);
} else {
datasetTableFieldMapper.updateByPrimaryKey(datasetTableField);
datasetTableFieldMapper.updateByPrimaryKeySelective(datasetTableField);
}
return datasetTableField;
}

View File

@ -62,7 +62,7 @@ public class DataSetTableService {
saveTableField(datasetTable);
}
} else {
datasetTableMapper.updateByPrimaryKeyWithBLOBs(datasetTable);
datasetTableMapper.updateByPrimaryKeySelective(datasetTable);
}
return datasetTable;
}

View File

@ -29,7 +29,7 @@ public class DataSetTableTaskLogService {
datasetTableTaskLog.setCreateTime(System.currentTimeMillis());
datasetTableTaskLogMapper.insert(datasetTableTaskLog);
} else {
datasetTableTaskLogMapper.updateByPrimaryKey(datasetTableTaskLog);
datasetTableTaskLogMapper.updateByPrimaryKeySelective(datasetTableTaskLog);
}
return datasetTableTaskLog;
}

View File

@ -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;