| | |
| | | |
| | | int count = roleLayerService.insert(entity); |
| | | if (count > 0) { |
| | | permsService.clearLayerCache(); |
| | | permsService.clearPermsCache(); |
| | | } |
| | | |
| | | return success(count); |
| | |
| | | |
| | | int count = roleLayerService.inserts(list); |
| | | if (count > 0) { |
| | | permsService.clearLayerCache(); |
| | | permsService.clearPermsCache(); |
| | | } |
| | | |
| | | return success(count); |
| | |
| | | try { |
| | | int count = roleLayerService.delete(id); |
| | | if (count > 0) { |
| | | permsService.clearLayerCache(); |
| | | permsService.clearPermsCache(); |
| | | } |
| | | |
| | | return success(count); |
| | |
| | | |
| | | int count = roleLayerService.deletes(ids); |
| | | if (count > 0) { |
| | | permsService.clearLayerCache(); |
| | | permsService.clearPermsCache(); |
| | | } |
| | | |
| | | return success(count); |
| | |
| | | |
| | | int count = roleLayerService.update(entity); |
| | | if (count > 0) { |
| | | permsService.clearLayerCache(); |
| | | permsService.clearPermsCache(); |
| | | } |
| | | |
| | | return success(count); |
| | |
| | | |
| | | int count = roleLayerService.updates(list); |
| | | if (count > 0) { |
| | | permsService.clearLayerCache(); |
| | | permsService.clearPermsCache(); |
| | | } |
| | | |
| | | return success(count); |