ZY
2024-08-16 57e23c353a177b9c003a2f524a2adeaf641e2e4c
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("服务器内部错误");
            }