2021与蓝度共同重构项目,服务端
fix
zhanzhiqin
2022-07-07 7c6423cdc3f2bc89a4dd47936ed607adbede2dcd
fix
已修改1个文件
7 ■■■■■ 文件已修改
ximon-admin/src/main/java/com/sandu/ximon/admin/service/InterphoneHostService.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ximon-admin/src/main/java/com/sandu/ximon/admin/service/InterphoneHostService.java
@@ -96,12 +96,13 @@
    public boolean deleteHost(Integer id) {
        InterphoneHost byId = getById(id);
        if (byId == null) {
            throw new BusinessException("主机不存在!");
        }
        InterphoneHostSubPole one = interphoneHostSubService.getOne(Wrappers.lambdaQuery(InterphoneHostSubPole.class).eq(InterphoneHostSubPole::getHostId, id));
        if (one != null) {
            throw new BusinessException("该主机存在绑定关系,不能删除");
        }
        if (byId == null) {
            return false;
        }
        /**