|
@@ -18,7 +18,9 @@ import org.springframework.stereotype.Service;
|
18
|
18
|
import org.springframework.transaction.annotation.Transactional;
|
19
|
19
|
import org.springframework.web.multipart.MultipartFile;
|
20
|
20
|
import java.io.IOException;
|
|
21
|
+import java.util.ArrayList;
|
21
|
22
|
import java.util.Date;
|
|
23
|
+import java.util.List;
|
22
|
24
|
|
23
|
25
|
@Service("faceServicel")
|
24
|
26
|
@Transactional
|
|
@@ -129,7 +131,6 @@ public class FaceServicelimpl implements FaceServiceI {
|
129
|
131
|
|
130
|
132
|
/*推送海康*/
|
131
|
133
|
String data=HKOpenApi.HKpersonGroupId(uploadFile, user.getHkUserId(), user.getHkPersonNo(), user.getUserName(), user.getHkCardNo());
|
132
|
|
-
|
133
|
134
|
/*boolean isA为true进行添加,为false进行修改*/
|
134
|
135
|
if (0 == type && 1 == faceNum) {
|
135
|
136
|
if (null == data) {
|
|
@@ -142,6 +143,13 @@ public class FaceServicelimpl implements FaceServiceI {
|
142
|
143
|
}
|
143
|
144
|
responseBean.addSuccess("操作成功");
|
144
|
145
|
HKOpenApi.downloadFaceAndFingerInfos(String.valueOf(user.getHkUserId()));
|
|
146
|
+ //可视对讲时 指定人员人脸权限下载
|
|
147
|
+ List<Integer> userIdList= new ArrayList<>();
|
|
148
|
+ userIdList.add(user.getHkUserId());
|
|
149
|
+ //临时设备编号
|
|
150
|
+ List<String> visualList= new ArrayList<>();
|
|
151
|
+ visualList.add("10000000151");
|
|
152
|
+ HKOpenApi.visualIntercom("e2a3606295f34bc5b336734f4894d708",1,userIdList,visualList);
|
145
|
153
|
}else {
|
146
|
154
|
responseBean.addError("请录入正确图片");
|
147
|
155
|
}
|
|
@@ -149,7 +157,6 @@ public class FaceServicelimpl implements FaceServiceI {
|
149
|
157
|
e.printStackTrace();
|
150
|
158
|
log.error("海康人脸推送失敗! {}",e);
|
151
|
159
|
throw new RuntimeException("海康人脸推送失敗!");
|
152
|
|
- //下发
|
153
|
160
|
}
|
154
|
161
|
return responseBean;
|
155
|
162
|
}
|