Merge branch 'develop' of http://139.196.179.195:3000/chenxudong/electromagnetic-data-new into develop
This commit is contained in:
commit
314c93efb9
|
|
@ -23,7 +23,7 @@ public class EdTagLibraryController {
|
||||||
private FileTagRelationService fileTagRelationService;
|
private FileTagRelationService fileTagRelationService;
|
||||||
|
|
||||||
// 新建标签组
|
// 新建标签组
|
||||||
@PostMapping("/createGroup")
|
@GetMapping("/createGroup")
|
||||||
@UserOperation(value="创建了标签组", modelName = UserOperationModuleEnum.TAG)
|
@UserOperation(value="创建了标签组", modelName = UserOperationModuleEnum.TAG)
|
||||||
public ElectromagneticResult<?> createTagGroup(@RequestParam String tagName) {
|
public ElectromagneticResult<?> createTagGroup(@RequestParam String tagName) {
|
||||||
String createdBy = UserThreadLocal.getUserId();
|
String createdBy = UserThreadLocal.getUserId();
|
||||||
|
|
@ -31,7 +31,7 @@ public class EdTagLibraryController {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 在标签组下新建标签
|
// 在标签组下新建标签
|
||||||
@PostMapping("/createTag")
|
@GetMapping("/createTag")
|
||||||
@UserOperation(value="创建了标签", modelName = UserOperationModuleEnum.TAG)
|
@UserOperation(value="创建了标签", modelName = UserOperationModuleEnum.TAG)
|
||||||
public ElectromagneticResult<?> createTag(@RequestParam String parentId, @RequestParam String tagName) {
|
public ElectromagneticResult<?> createTag(@RequestParam String parentId, @RequestParam String tagName) {
|
||||||
String createdBy = UserThreadLocal.getUserId();
|
String createdBy = UserThreadLocal.getUserId();
|
||||||
|
|
@ -39,7 +39,7 @@ public class EdTagLibraryController {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 拖拽修改排序/分组
|
// 拖拽修改排序/分组
|
||||||
@PostMapping("/updateOrder")
|
@GetMapping("/updateOrder")
|
||||||
@UserOperation(value="修改了标签顺序", modelName = UserOperationModuleEnum.TAG)
|
@UserOperation(value="修改了标签顺序", modelName = UserOperationModuleEnum.TAG)
|
||||||
public ElectromagneticResult<?> updateTagOrder(@RequestParam String tagId, @RequestParam String newParentId, @RequestParam Integer newOrderBy) {
|
public ElectromagneticResult<?> updateTagOrder(@RequestParam String tagId, @RequestParam String newParentId, @RequestParam Integer newOrderBy) {
|
||||||
String updatedBy = UserThreadLocal.getUserId();
|
String updatedBy = UserThreadLocal.getUserId();
|
||||||
|
|
@ -47,7 +47,7 @@ public class EdTagLibraryController {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 发布标签
|
// 发布标签
|
||||||
@PostMapping("/batchPublish")
|
@GetMapping("/batchPublish")
|
||||||
@UserOperation(value="发布了标签组", modelName = UserOperationModuleEnum.TAG)
|
@UserOperation(value="发布了标签组", modelName = UserOperationModuleEnum.TAG)
|
||||||
public ElectromagneticResult<?> publishTag(@RequestParam List<String> tagIds) {
|
public ElectromagneticResult<?> publishTag(@RequestParam List<String> tagIds) {
|
||||||
return ElectromagneticResultUtil.success(edTagLibraryService.batchPublishTagGroups(tagIds));
|
return ElectromagneticResultUtil.success(edTagLibraryService.batchPublishTagGroups(tagIds));
|
||||||
|
|
@ -68,7 +68,7 @@ public class EdTagLibraryController {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改标签组/标签
|
// 修改标签组/标签
|
||||||
@PostMapping ("/updateTag")
|
@GetMapping ("/updateTag")
|
||||||
@UserOperation(value="修改了标签组/标签", modelName = UserOperationModuleEnum.TAG)
|
@UserOperation(value="修改了标签组/标签", modelName = UserOperationModuleEnum.TAG)
|
||||||
public ElectromagneticResult<?> updateTag(@RequestParam String tagId, @RequestParam String tagName) {
|
public ElectromagneticResult<?> updateTag(@RequestParam String tagId, @RequestParam String tagName) {
|
||||||
String updatedBy = UserThreadLocal.getUserId();
|
String updatedBy = UserThreadLocal.getUserId();
|
||||||
|
|
|
||||||
|
|
@ -17,5 +17,5 @@ public class TagListVO {
|
||||||
private Integer orderBy; // 排序字段
|
private Integer orderBy; // 排序字段
|
||||||
private Integer isPublished; // 是否已发布(0: 未发布, 1: 已发布)
|
private Integer isPublished; // 是否已发布(0: 未发布, 1: 已发布)
|
||||||
|
|
||||||
private List<EdTagLibrary> childList;
|
private List<EdTagLibrary> children;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1424,7 +1424,7 @@ public class EdFileInfoServiceImpl extends ServiceImpl<EdFileInfoMapper, EdFileI
|
||||||
// 设置权限
|
// 设置权限
|
||||||
Map<String, Boolean> permissions = (e.getIsPersonal() == 1)
|
Map<String, Boolean> permissions = (e.getIsPersonal() == 1)
|
||||||
? permissionService.getPersonalPermission()
|
? permissionService.getPersonalPermission()
|
||||||
: permissionService.getUserPermission(UserThreadLocal.getUserId(), e.getId(), false);
|
: permissionService.getUserPermission(UserThreadLocal.getUserId(), e.getId(), true);
|
||||||
e.setPermissions(permissions);
|
e.setPermissions(permissions);
|
||||||
});
|
});
|
||||||
UserThreadLocal.setSuccessInfo("", "", "查询了收藏列表");
|
UserThreadLocal.setSuccessInfo("", "", "查询了收藏列表");
|
||||||
|
|
|
||||||
|
|
@ -208,7 +208,7 @@ public class EdTagLibraryServiceImpl extends ServiceImpl<EdTagLibraryMapper, EdT
|
||||||
for (EdTagLibrary group : groups) {
|
for (EdTagLibrary group : groups) {
|
||||||
TagListVO vo = new TagListVO();
|
TagListVO vo = new TagListVO();
|
||||||
BeanUtils.copyProperties(group, vo);
|
BeanUtils.copyProperties(group, vo);
|
||||||
vo.setChildList(tagsGrouped.getOrDefault(group.getTagId(), new ArrayList<>()));
|
vo.setChildren(tagsGrouped.getOrDefault(group.getTagId(), new ArrayList<>()));
|
||||||
result.add(vo);
|
result.add(vo);
|
||||||
}
|
}
|
||||||
UserThreadLocal.setSuccessInfo("", "", "获取了标签数据");
|
UserThreadLocal.setSuccessInfo("", "", "获取了标签数据");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue