Skip to content

Commit

Permalink
fix: 事务注解和异步注解不可同时使用
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizzercn committed Apr 22, 2019
1 parent d5c329f commit 63d1375
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,13 @@ public List<String> getPermissionNameList(Sys_role role) {
}

@Aop(TransAop.READ_COMMITTED)
@Async
public void del(String roleid) {
this.dao().clear("sys_user_role", Cnd.where("roleId", "=", roleid));
this.dao().clear("sys_role_menu", Cnd.where("roleId", "=", roleid));
this.delete(roleid);
}

@Aop(TransAop.READ_COMMITTED)
@Async
public void del(String[] roleids) {
this.dao().clear("sys_user_role", Cnd.where("roleId", "in", roleids));
this.dao().clear("sys_role_menu", Cnd.where("roleId", "in", roleids));
Expand All @@ -106,7 +104,6 @@ public void del(String[] roleids) {
* @param roleId
*/
@Aop(TransAop.READ_COMMITTED)
@Async
public void saveMenu(String[] menuIds, String roleId) {
this.clear("sys_role_menu", Cnd.where("roleId", "=", roleId));
for (String s : menuIds) {
Expand Down

0 comments on commit 63d1375

Please sign in to comment.