|
|
|
@ -104,7 +104,7 @@ public class PermissionDataRuleSchemaController { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@OperationLog(type = SysOperationLogType.DELETE) |
|
|
|
@OperationLog(type = SysOperationLogType.DELETE) |
|
|
|
@PostMapping("/delete") |
|
|
|
@PostMapping("/delete") |
|
|
|
public ResponseResult<?> delete(@RequestBody Long id) { |
|
|
|
public ResponseResult<?> delete(@MyRequestBody Long id) { |
|
|
|
if (MyCommonUtil.existBlankArgument(id)) { |
|
|
|
if (MyCommonUtil.existBlankArgument(id)) { |
|
|
|
return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); |
|
|
|
return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -140,10 +140,11 @@ public class PermissionDataRuleSchemaController { |
|
|
|
if (pageParam != null) { |
|
|
|
if (pageParam != null) { |
|
|
|
PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); |
|
|
|
PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); |
|
|
|
} |
|
|
|
} |
|
|
|
List<PermissionDataRuleSchema> list = service.getListByFilter( |
|
|
|
if (filter == null){ |
|
|
|
filter, MyOrderParam.buildOrderBy(orderParam, PermissionDataRuleSchema.class)); |
|
|
|
filter = new PermissionDataRuleSchema(); |
|
|
|
return ResponseResult.success(MyPageUtil.makeResponseData( |
|
|
|
} |
|
|
|
list, PermissionDataRuleSchema.INSTANCE)); |
|
|
|
List<PermissionDataRuleSchema> list = service.getListByFilter(filter, MyOrderParam.buildOrderBy(orderParam, PermissionDataRuleSchema.class)); |
|
|
|
|
|
|
|
return ResponseResult.success(MyPageUtil.makeResponseData(list, PermissionDataRuleSchema.INSTANCE)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// ========== 根据 formId 查询启用的规则(运行时用) ==========
|
|
|
|
// ========== 根据 formId 查询启用的规则(运行时用) ==========
|
|
|
|
|