| | |
| | | queryWrapper.eq("mac", device.getMac()).eq("is_delete", Constants.NOT_DELETE); |
| | | |
| | | QueryWrapper<SpecialDevice> specialDeviceQueryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("mac", device.getMac()).eq("is_delete", Constants.NOT_DELETE); |
| | | |
| | | specialDeviceQueryWrapper.eq("mac", device.getMac()).eq("is_delete", Constants.NOT_DELETE); |
| | | if (deviceService.getOne(queryWrapper) != null || specialDeviceService.getOne(specialDeviceQueryWrapper) != null) { |
| | | return ResultMessage.fail(ResponseCodeEnum.MAC_IS_EXIST.getCode(), ResponseCodeEnum.MAC_IS_EXIST.getMsg()); |
| | | } |
| | |
| | | <id column="id" property="id" /> |
| | | <result column="name" property="name" /> |
| | | <result column="mac" property="mac" /> |
| | | <result column="guid" property="guid" /> |
| | | <result column="operate_ids" property="operateIds" /> |
| | | <result column="organization_id" property="organizationId" /> |
| | | <result column="device_version_id" property="deviceVersionId" /> |