Merge pull request #8298 from dataease/pr@dev-v2@fix_sync_community_resource

fix: 首次上传license同步社区版资源包含已删除的业务资源
This commit is contained in:
fit2cloud-chenyw 2024-03-04 14:37:37 +08:00 committed by GitHub
commit 775b5a4620
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")
@Select("select count(id) from data_visualization_info where delete_flag = 0")
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")
@Select("select id, name, pid, node_type, type from data_visualization_info where delete_flag = 0")
List<VisualFreeResource> queryFreeVusial();
@Delete("delete from core_datasource")