优化日志提示
This commit is contained in:
parent
545188be69
commit
9b6b837840
|
|
@ -39,7 +39,7 @@ public class EdFileInfoController {
|
||||||
return edFileInfoService.createFolder(createFolderDTO, DataOwnEnum.COMMON.code);
|
return edFileInfoService.createFolder(createFolderDTO, DataOwnEnum.COMMON.code);
|
||||||
}
|
}
|
||||||
|
|
||||||
@UserOperation(value = "作废文件夹", modelName = UserOperationModuleEnum.DATABASE)
|
@UserOperation(value = "作废", modelName = UserOperationModuleEnum.DATABASE)
|
||||||
@RequiredPermission(value = FilePermission.DELETE)
|
@RequiredPermission(value = FilePermission.DELETE)
|
||||||
@RequestMapping("delete")
|
@RequestMapping("delete")
|
||||||
public ElectromagneticResult<?> delete(@RequestParam String id) {
|
public ElectromagneticResult<?> delete(@RequestParam String id) {
|
||||||
|
|
|
||||||
|
|
@ -222,7 +222,7 @@ public class EdFileInfoServiceImpl extends ServiceImpl<EdFileInfoMapper, EdFileI
|
||||||
.set(EdFileInfo::getEffectFlag, false)
|
.set(EdFileInfo::getEffectFlag, false)
|
||||||
.set(EdFileInfo::getAllDeleted, true)
|
.set(EdFileInfo::getAllDeleted, true)
|
||||||
.eq(EdFileInfo::getFileId, fileInfo.getFileId()));
|
.eq(EdFileInfo::getFileId, fileInfo.getFileId()));
|
||||||
UserThreadLocal.setSuccessInfo(fileInfo.getParentId(), id, "作废目录 {} 成功", fileInfo.getFileName());
|
UserThreadLocal.setSuccessInfo(fileInfo.getParentId(), id, "作废文件 {}.{} 成功", fileInfo.getFileName(), fileInfo.getFileType());
|
||||||
return ElectromagneticResultUtil.success(true);
|
return ElectromagneticResultUtil.success(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue