private void insertDashboardRelation(Long dashboardId, List<Long> chartIds) {
        if (Objects.isNull(dashboardId) || CollectionUtils.isEmpty(chartIds)) {
            return;
        }
        chartIds.forEach(chartId -> {
            DashboardChartRelationDO relationDO = new DashboardChartRelationDO();
            relationDO.setGmtCreate(LocalDateTime.now());
            relationDO.setGmtModified(LocalDateTime.now());
            relationDO.setDashboardId(dashboardId);
            relationDO.setChartId(chartId);
            getMapper1().insert(relationDO);
        });
    }
insert dashboard relation

@param dashboardId
@param chartIds
chat2db-server/chat2db-server-domain/chat2db-server-domain-core/src/main/java/ai/chat2db/server/domain/core/impl/DashboardServiceImpl.java