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