Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
bdeeee4f
Commit
bdeeee4f
authored
Jul 16, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加用户类型修改
parent
ac05c629
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
317 deletions
+17
-317
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/TestController.java
...r/src/main/java/com/mortals/xhx/busiz/TestController.java
+15
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/module/hik/face/model/req/img/ImgReq.java
...com/mortals/xhx/module/hik/face/model/req/img/ImgReq.java
+1
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/hik/face/service/IHikPlanService.java
.../mortals/xhx/module/hik/face/service/IHikPlanService.java
+0
-86
attendance-performance-manager/src/main/java/com/mortals/xhx/module/hik/face/service/impl/HikFaceServiceImpl.java
.../xhx/module/hik/face/service/impl/HikFaceServiceImpl.java
+1
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/hik/face/service/impl/HikPlanServiceImpl.java
.../xhx/module/hik/face/service/impl/HikPlanServiceImpl.java
+0
-227
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/TestController.java
View file @
bdeeee4f
...
...
@@ -138,7 +138,20 @@ public class TestController {
if
(!
ObjectUtils
.
isEmpty
(
staffEntity
.
getPicUri
()))
{
ImgReq
imgReq
=
new
ImgReq
();
imgReq
.
setUrl
(
staffEntity
.
getPicUri
());
Rest
<
String
>
rest
=
faceService
.
downloadPicture
(
imgReq
);
imgReq
.
setServerIndexCode
(
staffEntity
.
getServerIndexCode
());
//Rest<String> rest = faceService.downloadPicture(imgReq);
try
{
InputStream
in
=
faceService
.
callPostImgs
(
imgReq
);
if
(!
ObjectUtils
.
isEmpty
(
in
))
{
MultipartFile
file
=
ServletUtils
.
getMultipartFile
(
in
,
"snap.jpg"
);
String
filePath
=
uploadService
.
saveFileUpload
(
file
,
"file/fileupload/snap/"
+
DateUtil
.
today
(),
null
);
staffEntity
.
setPhotoPath
(
filePath
);
updateList
.
add
(
staffEntity
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"下载出错"
);
}
/*
if (YesNoEnum.YES.getValue() == rest.getCode()) {
byte[] bytes = Base64.decode(rest.getData());
if (!org.springframework.util.ObjectUtils.isEmpty(bytes)) {
...
...
@@ -151,7 +164,7 @@ public class TestController {
}
} else {
log.info("download:{}", JSON.toJSONString(rest));
}
}
*/
}
}
if
(!
ObjectUtils
.
isEmpty
(
updateList
))
{
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/hik/face/model/req/img/ImgReq.java
View file @
bdeeee4f
...
...
@@ -5,7 +5,7 @@ import lombok.Data;
@Data
public
class
ImgReq
{
private
String
s
v
rIndexCode
;
private
String
s
erve
rIndexCode
;
private
String
picUri
;
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/hik/face/service/IHikPlanService.java
deleted
100644 → 0
View file @
ac05c629
package
com.mortals.xhx.module.hik.face.service
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.xhx.module.hik.face.model.req.plan.PlanRecognListReq
;
import
com.mortals.xhx.module.hik.face.model.req.plan.PlanRecognReq
;
import
com.mortals.xhx.module.hik.face.model.rsp.plan.PlanRecognInfo
;
import
java.util.List
;
/**
* 海康门禁接口对接类
*
* @author:
* @date: 2023/4/12 17:47
*/
public
interface
IHikPlanService
{
/**
* 查询重点识别计划
*
* @param planRecognListReq
* @return
*/
Rest
<
List
<
PlanRecognInfo
>>
findPlanRecognBlackList
(
PlanRecognListReq
planRecognListReq
);
/**
* 添加人员监视计划
*
* @param planRecognReq
* @return
*/
Rest
<
String
>
planRecognBlackAdd
(
PlanRecognReq
planRecognReq
);
/**
* 人员监视计划删除
*
* @param planRecognReq
* @return
*/
Rest
<
Boolean
>
planRecognBlackDel
(
PlanRecognReq
planRecognReq
);
/**
* 查询陌生人识别计划
*
* @param planRecognListReq
* @return
*/
Rest
<
List
<
PlanRecognInfo
>>
findPlanRecognWhiteList
(
PlanRecognListReq
planRecognListReq
);
/**
* 添加陌生人监视计划
*
* @param planRecognReq
* @return
*/
Rest
<
String
>
planRecognWhiteAdd
(
PlanRecognReq
planRecognReq
);
/**
* 更新陌生人监视计划
*
* @param planRecognReq
* @return
*/
Rest
<
Boolean
>
planRecognWhiteUpdate
(
PlanRecognReq
planRecognReq
);
/**
* 陌生人人员监视计划删除
*
* @param planRecognReq
* @return
*/
Rest
<
Boolean
>
planRecognWhiteDel
(
PlanRecognReq
planRecognReq
);
/**
* 陌生人监视计划重新下发
*
* @param planRecognReq
* @return
*/
Rest
<
Boolean
>
planRecognWhiteReStart
(
PlanRecognReq
planRecognReq
);
}
attendance-performance-manager/src/main/java/com/mortals/xhx/module/hik/face/service/impl/HikFaceServiceImpl.java
View file @
bdeeee4f
...
...
@@ -269,7 +269,7 @@ public class HikFaceServiceImpl extends AbstractHikService implements IHikFaceSe
@Override
public
InputStream
callPostImgs
(
ImgReq
imgReq
)
throws
Exception
{
ArtemisConfig
config
=
getArtemisConfig
();
String
getSecurityApi
=
ARTEMIS_PATH
+
"/api/
visitor/v1/record/pictures
"
;
String
getSecurityApi
=
ARTEMIS_PATH
+
"/api/
resource/v1/person/
"
;
path
.
put
(
protocol
,
getSecurityApi
);
//ArtemisHttpUtil.doPostStringImgArtemis(config, path, JSON.toJSONString(recognReq), null, null, "application/json");
Map
<
String
,
String
>
query
=
new
HashMap
<
String
,
String
>(
2
)
{
//get请求的head参数
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/hik/face/service/impl/HikPlanServiceImpl.java
deleted
100644 → 0
View file @
ac05c629
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment