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