mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
@@ -32,6 +32,9 @@ public class CoreOptRecentManage {
|
||||
}
|
||||
|
||||
public void saveOpt(Long resourceId, String resourceName, int resourceType, int optType) {
|
||||
if (AuthUtils.getUser() == null) {
|
||||
return;
|
||||
}
|
||||
Long uid = AuthUtils.getUser().getUserId();
|
||||
QueryWrapper<CoreOptRecent> updateWrapper = new QueryWrapper<>();
|
||||
if (resourceId != null) {
|
||||
|
||||
@@ -103,4 +103,7 @@ public interface ExtDataVisualizationMapper {
|
||||
|
||||
@Select("select status from data_visualization_info where id = #{dvId}")
|
||||
Integer findDvInfoStats(@Param("dvId") Long dvId);
|
||||
|
||||
@Select("select id from data_visualization_info where pid = -1")
|
||||
List<Long> findCopyResource();
|
||||
}
|
||||
|
||||
@@ -101,6 +101,14 @@ public class CoreVisualizationManage {
|
||||
return TreeUtils.mergeTree(nodes, BusiNodeVO.class, false);
|
||||
}
|
||||
|
||||
public void dataVisualizationInit() {
|
||||
List<Long> resourceIds= extDataVisualizationMapper.findCopyResource();
|
||||
if (CollectionUtils.isNotEmpty(resourceIds)) {
|
||||
resourceIds.forEach(this::delete);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@XpackInteract(value = "visualizationResourceTree", before = false)
|
||||
public void delete(Long id) {
|
||||
DataVisualizationInfo info = mapper.selectById(id);
|
||||
|
||||
Reference in New Issue
Block a user