@Override
    public DataResult<Operation> find(Long id) {
        OperationSavedDO operationSavedDO = getMapper().selectById(id);
        List<Long> dataSourceIds = Lists.newArrayList(operationSavedDO.getDataSourceId());
        Map<Long, DataSource> dataSourceMap = getDataSourceInfo(dataSourceIds);
        Operation operation = operationConverter.do2dto(operationSavedDO);
        operation.setDataSourceName(dataSourceMap.containsKey(operation.getDataSourceId()) ? dataSourceMap.get(
            operation.getDataSourceId()).getAlias() : null);
        return DataResult.of(operation);
    }
@author moji
@version UserSavedDdlCoreServiceImpl.java, v 0.1 September 25, 2022 15:50 moji Exp $
@date 2022/09/25
chat2db-server/chat2db-server-domain/chat2db-server-domain-core/src/main/java/ai/chat2db/server/domain/core/impl/OperationServiceImpl.java