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