@@ -226,7 +226,10 @@ public class RoleServiceImpl implements RoleService {
roleMenu.setStatus(1);
menus.add(roleMenu);
});
- roleMenuMapper.batchInsert(menus);
+ if(menus.size()>0){
+ roleMenuMapper.batchInsert(menus);
+ }
+
return 0;
}