| | |
| | | return ywThresholdMapper.deleteYwThresholdById(id); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 判断视频阈值是否满足下发条件 |
| | | * |
| | | * @param list |
| | | */ |
| | | @Override |
| | | public void videoCheck(List list) { |
| | | |
| | |
| | | T thresholdAutoValue = parseThreshold(ywThreshold.getValue(), value.getClass()); |
| | | //比较大小,加入到对应待处理集合 |
| | | if (compareType.compare(v, thresholdAutoValue)) { |
| | | //自动下发工单 |
| | | workOrderList.add(result); |
| | | } else if (compareType.compare(v, thresholdValue)) { |
| | | //进入工单代下发 |
| | | distributeList.add(result); |
| | | } |
| | | }, |
| | | () -> log.error("{} 为空: {}", thresholds.get(key).getName(), result) |
| | | ); |
| | | |
| | | |
| | | } |
| | | |
| | | private <T extends Comparable<T>> T parseThreshold(String thresholdStr, Class<?> type) { |