| | |
| | | @ApiOperation(value = "小程序获取设备") |
| | | public ResultMessage selectDevice(@RequestParam @ApiParam(value = "organizationId",name = "组织ID") Integer organizationId){ |
| | | List<Device> organizationDevice = deviceService.getOrganizationDevice(organizationId); |
| | | if (ObjectUtils.isEmpty(organizationDevice)){ |
| | | return ResultMessage.fail(ResponseCodeEnum.TARGET_IS_NULL.getCode(), ResponseCodeEnum.TARGET_IS_NULL.getMsg()); |
| | | } |
| | | return ResultMessage.ok(organizationDevice); |
| | | return ResultMessage.ok(ObjectUtils.isEmpty(organizationDevice)?null:organizationDevice); |
| | | } |
| | | |
| | | @GetMapping("fuzzySearch") |