|  |  | 
 |  |  | import com.moral.api.util.LogUtils; | 
 |  |  | import com.moral.constant.Constants; | 
 |  |  | import com.moral.constant.ResponseCodeEnum; | 
 |  |  | import com.moral.util.TokenUtils; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.stereotype.Service; | 
 |  |  | import org.springframework.transaction.annotation.Transactional; | 
 |  |  | 
 |  |  |     @Autowired(required = false) | 
 |  |  |     private ManageRoleMapper manageRoleMapper; | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     LogUtils logUtils; | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     @Transactional | 
 |  |  | 
 |  |  |                 manageRoleMenuMapper.insertBatch(mapList); | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         //注销token | 
 |  |  |         TokenUtils.destoryToken(id); | 
 |  |  |         List<ManageMenu> manageMenusNew = manageMenuMapper.getManageMenuByRoleId(id); | 
 |  |  |         List manageMenuOldList = new ArrayList(); | 
 |  |  |         List manageMenuNewList = new ArrayList(); | 
 |  |  | 
 |  |  |             manageMenuNewList.add("空"); | 
 |  |  |         } | 
 |  |  |         content = content+"菜单:"+manageMenuOldList+"->"+manageMenuNewList+";"; | 
 |  |  |         logUtils.saveOperationForManage(request,content,Constants.UPDATE_OPERATE_TYPE); | 
 |  |  |         LogUtils.saveOperationForManage(request,content,Constants.UPDATE_OPERATE_TYPE); | 
 |  |  |         resultMap.put("code",ResponseCodeEnum.SUCCESS.getCode()); | 
 |  |  |         resultMap.put("msg",ResponseCodeEnum.SUCCESS.getMsg()); | 
 |  |  |         return resultMap; |