Junjie
2024-09-13 a1a7c03eae40f4b0344fce652e1a240cf5283624
zy-asrs-wms/src/main/java/com/zy/asrs/wms/system/controller/RoleController.java
@@ -105,6 +105,10 @@
    @Transactional
    public R remove(@PathVariable Long[] ids) {
        for (Long roleId : ids) {
            if (roleId == 1) {
                throw new CoolException("超级管理员禁止删除");
            }
            if (!roleService.removeById(roleId)) {
                throw new CoolException("服务器内部错误");
            }