| | |
| | | Integer id = form.getId(); |
| | | //查询型号是否被使用,如果被使用则无法删除 |
| | | QueryWrapper<OrganizationUnitAlarm> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.select("id"); |
| | | queryWrapper.eq("is_delete", Constants.NOT_DELETE); |
| | | queryWrapper.eq("version_id", id); |
| | | List<OrganizationUnitAlarm> organizationUnitAlarms = organizationUnitAlarmMapper.selectList(queryWrapper); |
| | |
| | | } |
| | | //刷新deviceInfo缓存 |
| | | CacheUtils.refreshDeviceAlarmInfo(); |
| | | CacheUtils.refreshSpecialDeviceAlarmInfo(); |
| | | //封装返回结果 |
| | | dto.setCode(ResponseCodeEnum.SUCCESS.getCode()); |
| | | dto.setMsg(ResponseCodeEnum.SUCCESS.getMsg()); |
| | |
| | | return dto; |
| | | } |
| | | |
| | | |
| | | } |
| | | |