Merge pull request #12831 from dataease/pr@dev-v2@fix_sync_resource

fix(X-Pack): 首次导入许可证同步游离资源过滤掉复制未保存的可视化资源
This commit is contained in:
fit2cloud-chenyw 2024-10-22 17:26:12 +08:00 committed by GitHub
commit c8c12928f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,7 @@ public interface ResourceMonitorMapper {
@Select("select count(id) from core_dataset_group")
int datasetCount();
@Select("select count(id) from data_visualization_info where delete_flag = 0")
@Select("select count(id) from data_visualization_info where delete_flag = 0 and pid != -1")
int vCount();
@Select("select id, name, pid, type, status from core_datasource")
@ -27,7 +27,7 @@ public interface ResourceMonitorMapper {
@Select("select id, name, pid, node_type from core_dataset_group")
List<DatasetFreeResource> queryFreeDataset();
@Select("select id, name, pid, node_type, type from data_visualization_info where delete_flag = 0")
@Select("select id, name, pid, node_type, type from data_visualization_info where delete_flag = 0 and pid != -1")
List<VisualFreeResource> queryFreeVusial();
@Delete("delete from core_datasource")