| | |
| | | public List getCameraIdleTimeList(String cameraId) {
|
| | | LinkedList<String> timeList = new LinkedList();
|
| | | List<Map> usedPeriods = this.getTaskUsedCameraPeriods(cameraId);
|
| | | //事件段为空,则全天作为一个时间段
|
| | | if (usedPeriods.size() == 0) {
|
| | | timeList.add("00:00:00");
|
| | | timeList.add("23:59:59");
|
| | | }else{
|
| | | for (Map p :
|
| | | usedPeriods) {
|
| | | timeList.add((String) p.get("start_time"));
|
| | |
| | | } else {
|
| | | timeList.addLast("23:59:59");
|
| | | }
|
| | | //事件段为空,则全天作为一个时间段
|
| | | if (timeList.size() == 0) {
|
| | | timeList.add("00:00:00");
|
| | | timeList.add("23:59:59");
|
| | | }
|
| | |
|
| | |
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | return timeList;
|
| | | }
|