|  |  |  | 
|---|
|  |  |  | @ApiOperation("选择相机数据") | 
|---|
|  |  |  | public List options(ArdCameras ardCameras) { | 
|---|
|  |  |  | List<ArdCameras> list = ardCamerasService.findOptions(ardCameras); | 
|---|
|  |  |  | System.out.println("list:"+list.size()); | 
|---|
|  |  |  | List options = new ArrayList(); | 
|---|
|  |  |  | for (ArdCameras item : list) { | 
|---|
|  |  |  | Map option = new HashMap(); | 
|---|
|  |  |  | option.put("value", item.getId()); | 
|---|
|  |  |  | option.put("label", item.getName()); | 
|---|
|  |  |  | option.put("channel", item.getChanNo()); | 
|---|
|  |  |  | option.put("channelList", item.getChannelList()); | 
|---|
|  |  |  | List timeList = ardVideoInspectTaskService.getCameraIdleTimeList(item.getId()); | 
|---|
|  |  |  | option.put("idleTimeList", timeList);//空闲时间段 | 
|---|
|  |  |  | options.add(option); | 
|---|