| | |
| | | faces.add(face); |
| | | } |
| | | //请求省厅数据 |
| | | |
| | | |
| | | }else { |
| | | log.error("调用海康全量数据api失败"); |
| | | } |
| | | |
| | | } |
| | | |
| | | //------------获取省厅数据 |
| | | List<HkResultInfo> provincialList = new ArrayList<>(); |
| | | |
| | | //获取省厅人脸数据 |
| | | if (faceLabelId != null){ |
| | | log.error("faceLabelId:{}",faceLabelId); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | }else { |
| | | log.error("faceLabelId:为空不执行获得省厅数据"); |
| | | } |
| | | //获取省厅车辆数据 |
| | | //获取省厅车辆数据v. |
| | | if (carLabelId != null){ |
| | | log.error("carLabelId:{}",carLabelId); |
| | | param.setLabelId(carLabelId); |
| | |
| | | cars.add(car); |
| | | faces.add(face); |
| | | } |
| | | |
| | | log.error("打印插入数据cars:{}",cars); |
| | | log.error("打印插入数据faces:{}",faces); |
| | | //存放成绩到mysql,如果存在则替换不存在就新增。 |
| | | if (!CollectionUtils.isEmpty(cars)) carService.saveOrUpdateBatch(cars); |
| | | if (!CollectionUtils.isEmpty(faces)) faceService.saveOrUpdateBatch(faces); |
| | |
| | | car.setVehicleInformationCollectionAccuracy(new BigDecimal("1")); |
| | | //TODO:没找到考核项 联网卡口设备目录一致率 |
| | | car.setDeviceDirectoryConsistent(new BigDecimal("1")); |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //解析数据 |
| | | private <T> List<T> getDataList(JSONObject jsonObject, Class<T> resultClass, String message) { |