| | |
| | | /** |
| | | * 编辑一键求助主机 日志记录结束 |
| | | */ |
| | | List<InterphoneHost> list = list(Wrappers.lambdaQuery(InterphoneHost.class).eq(InterphoneHost::getHostMac, interphoneHostParam.getHostMac())); |
| | | if (list.size() > 0) { |
| | | list.forEach( |
| | | host -> { |
| | | if (!host.getHostId().equals(id)) { |
| | | throw new BusinessException("请检查设备mac是否重复"); |
| | | } |
| | | } |
| | | ); |
| | | } |
| | | boolean b = updateById(interphoneHost); |
| | | List<InterphoneHost> list = list(Wrappers.lambdaQuery(InterphoneHost.class).eq(InterphoneHost::getHostMac, interphoneHostParam.getHostMac())); |
| | | if (list.size() > 1) { |
| | | throw new BusinessException("请检查设备mac是否重复"); |
| | | } |
| | | return b; |
| | | } |
| | | |