|
@@ -10,10 +10,11 @@ import java.util.Base64;
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
-import static com.xjrsoft.module.hikvision.util.ApiUtil.doPost;
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
public class FaceImportUtil {
|
|
public class FaceImportUtil {
|
|
|
private static FaceImportMapper faceImportMapper;
|
|
private static FaceImportMapper faceImportMapper;
|
|
|
|
|
+ private static ApiUtil apiUtil;
|
|
|
|
|
|
|
|
public static String ImportTeacherFace(Long id) {
|
|
public static String ImportTeacherFace(Long id) {
|
|
|
JsonObject paramJson = new JsonObject();
|
|
JsonObject paramJson = new JsonObject();
|
|
@@ -24,7 +25,7 @@ public class FaceImportUtil {
|
|
|
querys.put("tagId", "frs");
|
|
querys.put("tagId", "frs");
|
|
|
|
|
|
|
|
String apiPath = "/api/resource/v1/face/single/add";
|
|
String apiPath = "/api/resource/v1/face/single/add";
|
|
|
- String response = doPost(apiPath, String.valueOf(paramJson), querys);
|
|
|
|
|
|
|
+ String response = apiUtil.doPost(apiPath, String.valueOf(paramJson), querys);
|
|
|
|
|
|
|
|
return response;
|
|
return response;
|
|
|
}
|
|
}
|
|
@@ -38,7 +39,7 @@ public class FaceImportUtil {
|
|
|
querys.put("tagId", "frs");
|
|
querys.put("tagId", "frs");
|
|
|
|
|
|
|
|
String apiPath = "/api/resource/v1/face/single/add";
|
|
String apiPath = "/api/resource/v1/face/single/add";
|
|
|
- String response = doPost(apiPath, String.valueOf(paramJson), querys);
|
|
|
|
|
|
|
+ String response = apiUtil.doPost(apiPath, String.valueOf(paramJson), querys);
|
|
|
|
|
|
|
|
return response;
|
|
return response;
|
|
|
}
|
|
}
|