文件记录分类-修改分类树权限,修改文件记录权限验证
This commit is contained in:
@@ -17,6 +17,8 @@ public class RecordConstants {
|
|||||||
public static final String ROLE = "角色";
|
public static final String ROLE = "角色";
|
||||||
/** 部门 */
|
/** 部门 */
|
||||||
public static final String DEPT = "部门";
|
public static final String DEPT = "部门";
|
||||||
|
/** admin */
|
||||||
|
public static final String ADMIN = "admin";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.zt.plat.module.qms.resource.record.controller.admin.recordcategory.vo;
|
package com.zt.plat.module.qms.resource.record.controller.admin.recordcategory.vo;
|
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
@@ -34,6 +35,9 @@ public class RecordCategoryPageReqVO extends PageParam {
|
|||||||
@Schema(description = "排序号")
|
@Schema(description = "排序号")
|
||||||
private Integer sortNo;
|
private Integer sortNo;
|
||||||
|
|
||||||
|
@Schema(description = "其他配置")
|
||||||
|
private String customConfig;
|
||||||
|
|
||||||
@Schema(description = "数据来源,手工录入、手工归档、自动采集")
|
@Schema(description = "数据来源,手工录入、手工归档、自动采集")
|
||||||
private String dataSource;
|
private String dataSource;
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,10 @@ public class RecordCategoryRespVO {
|
|||||||
@ExcelProperty("排序号")
|
@ExcelProperty("排序号")
|
||||||
private Integer sortNo;
|
private Integer sortNo;
|
||||||
|
|
||||||
|
@Schema(description = "其他配置")
|
||||||
|
@ExcelProperty("其他配置")
|
||||||
|
private String customConfig;
|
||||||
|
|
||||||
@Schema(description = "数据来源,手工录入、手工归档、自动采集")
|
@Schema(description = "数据来源,手工录入、手工归档、自动采集")
|
||||||
@ExcelProperty("数据来源,手工录入、手工归档、自动采集")
|
@ExcelProperty("数据来源,手工录入、手工归档、自动采集")
|
||||||
private String dataSource;
|
private String dataSource;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.zt.plat.module.qms.resource.record.controller.admin.recordcategory.vo;
|
package com.zt.plat.module.qms.resource.record.controller.admin.recordcategory.vo;
|
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
@@ -34,6 +35,10 @@ public class RecordCategorySaveReqVO {
|
|||||||
@NotNull(message = "排序号不能为空")
|
@NotNull(message = "排序号不能为空")
|
||||||
private Integer sortNo;
|
private Integer sortNo;
|
||||||
|
|
||||||
|
@Schema(description = "其他配置")
|
||||||
|
@ExcelProperty("其他配置")
|
||||||
|
private String customConfig;
|
||||||
|
|
||||||
@Schema(description = "数据来源,手工录入、手工归档、自动采集")
|
@Schema(description = "数据来源,手工录入、手工归档、自动采集")
|
||||||
private String dataSource;
|
private String dataSource;
|
||||||
|
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ public class RecordPermissionPageReqVO extends PageParam {
|
|||||||
@Schema(description = "记录类型", example = "1")
|
@Schema(description = "记录类型", example = "1")
|
||||||
private String sourceType;
|
private String sourceType;
|
||||||
|
|
||||||
@Schema(description = "记录分类ID", example = "1")
|
// @Schema(description = "记录分类ID", example = "1")
|
||||||
private Long categoryId;
|
// private Long categoryId;
|
||||||
|
|
||||||
@Schema(description = "记录id", example = "1104")
|
@Schema(description = "记录id", example = "1104")
|
||||||
private Long sourceId;
|
private Long sourceId;
|
||||||
|
|||||||
@@ -25,9 +25,9 @@ public class RecordPermissionRespVO {
|
|||||||
@ExcelProperty("记录类型")
|
@ExcelProperty("记录类型")
|
||||||
private String sourceType;
|
private String sourceType;
|
||||||
|
|
||||||
@Schema(description = "记录分类ID", example = "1")
|
// @Schema(description = "记录分类ID", example = "1")
|
||||||
@ExcelProperty("记录分类ID")
|
// @ExcelProperty("记录分类ID")
|
||||||
private Long categoryId;
|
// private Long categoryId;
|
||||||
|
|
||||||
@Schema(description = "记录id", example = "1104")
|
@Schema(description = "记录id", example = "1104")
|
||||||
@ExcelProperty("记录id")
|
@ExcelProperty("记录id")
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ public class RecordPermissionSaveReqVO {
|
|||||||
@Schema(description = "记录类型", example = "1")
|
@Schema(description = "记录类型", example = "1")
|
||||||
private String sourceType;
|
private String sourceType;
|
||||||
|
|
||||||
@Schema(description = "记录分类ID", example = "1")
|
// @Schema(description = "记录分类ID", example = "1")
|
||||||
private Long categoryId;
|
// private Long categoryId;
|
||||||
|
|
||||||
@Schema(description = "记录id", example = "1104")
|
@Schema(description = "记录id", example = "1104")
|
||||||
private Long sourceId;
|
private Long sourceId;
|
||||||
|
|||||||
@@ -111,11 +111,19 @@ public class RecordRecordController extends AbstractFileUploadController impleme
|
|||||||
return success(vo);
|
return success(vo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/justRecordPermission")
|
||||||
|
@Operation(summary = "判断当前文件的权限")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
|
//@PreAuthorize("@ss.hasPermission('qms:record-record:query')")
|
||||||
|
public CommonResult<String> justRecordPermission(@RequestParam("id") Long id) {
|
||||||
|
return recordRecordService.justRecordPermission(id);
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@Operation(summary = "获得文件、模板、记录分页")
|
@Operation(summary = "获得文件、模板、记录分页")
|
||||||
//@PreAuthorize("@ss.hasPermission('qms:record-record:query')")
|
//@PreAuthorize("@ss.hasPermission('qms:record-record:query')")
|
||||||
public CommonResult<PageResult<RecordRecordRespVO>> getRecordRecordPage(@Valid RecordRecordPageReqVO pageReqVO) {
|
public CommonResult<PageResult<RecordRecordRespVO>> getRecordRecordPage(@Valid RecordRecordPageReqVO pageReqVO) {
|
||||||
PageResult<RecordRecordDO> pageResult = new PageResult<>();
|
PageResult<RecordRecordDO> pageResult;
|
||||||
Integer isQueryHistory = pageReqVO.getIsQueryHistory();
|
Integer isQueryHistory = pageReqVO.getIsQueryHistory();
|
||||||
if (isQueryHistory != null && isQueryHistory == 1) { // 查询历史分页
|
if (isQueryHistory != null && isQueryHistory == 1) { // 查询历史分页
|
||||||
pageResult=recordRecordService.getRecordHistoryPage(pageReqVO);
|
pageResult=recordRecordService.getRecordHistoryPage(pageReqVO);
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ public interface RecordPermissionMapper extends BaseMapperX<RecordPermissionDO>
|
|||||||
default PageResult<RecordPermissionDO> selectPage(RecordPermissionPageReqVO reqVO) {
|
default PageResult<RecordPermissionDO> selectPage(RecordPermissionPageReqVO reqVO) {
|
||||||
return selectPage(reqVO, new LambdaQueryWrapperX<RecordPermissionDO>()
|
return selectPage(reqVO, new LambdaQueryWrapperX<RecordPermissionDO>()
|
||||||
.eqIfPresent(RecordPermissionDO::getParentId, reqVO.getParentId())
|
.eqIfPresent(RecordPermissionDO::getParentId, reqVO.getParentId())
|
||||||
.eqIfPresent(RecordPermissionDO::getCategoryId, reqVO.getCategoryId())
|
// .eqIfPresent(RecordPermissionDO::getCategoryId, reqVO.getCategoryId())
|
||||||
.eqIfPresent(RecordPermissionDO::getSourceType, reqVO.getSourceType())
|
.eqIfPresent(RecordPermissionDO::getSourceType, reqVO.getSourceType())
|
||||||
.eqIfPresent(RecordPermissionDO::getSourceId, reqVO.getSourceId())
|
.eqIfPresent(RecordPermissionDO::getSourceId, reqVO.getSourceId())
|
||||||
.eqIfPresent(RecordPermissionDO::getTargetType, reqVO.getTargetType())
|
.eqIfPresent(RecordPermissionDO::getTargetType, reqVO.getTargetType())
|
||||||
|
|||||||
@@ -67,6 +67,11 @@ public class RecordCategoryDO extends BusinessBaseDO {
|
|||||||
@TableField("SRT_NO")
|
@TableField("SRT_NO")
|
||||||
private Integer sortNo;
|
private Integer sortNo;
|
||||||
/**
|
/**
|
||||||
|
* 自定义配置
|
||||||
|
*/
|
||||||
|
@TableField("CST_CFG")
|
||||||
|
private Integer customConfig;
|
||||||
|
/**
|
||||||
* 数据来源,手工录入、手工归档、自动采集
|
* 数据来源,手工录入、手工归档、自动采集
|
||||||
*/
|
*/
|
||||||
@TableField("DAT_SRC")
|
@TableField("DAT_SRC")
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user