Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hubin
long-tern-care-service
Commits
3d8380ee
Commit
3d8380ee
authored
Nov 11, 2024
by
18310373984@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传标准照迁移到app项目
parent
050a3873
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
FaceService.java
...n/java/com/hungraim/ltc/facelocation/api/FaceService.java
+2
-3
SrvOrganEmpServiceImpl.java
...com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
+3
-1
SrvOrganEmpVo.java
.../java/com/hungraim/ltc/pojo/vo/disable/SrvOrganEmpVo.java
+2
-0
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/facelocation/api/FaceService.java
View file @
3d8380ee
package
com
.
hungraim
.
ltc
.
facelocation
.
api
;
import
com.hungraim.ltc.pojo.
entity.serviceManage.ChSrvOrganEmp
;
import
com.hungraim.ltc.pojo.
vo.disable.SrvOrganEmpVo
;
import
com.hungraim.ltc.util.Result
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
...
@@ -10,8 +10,7 @@ import org.springframework.web.bind.annotation.RequestParam;
@FeignClient
(
value
=
"CH-SERVICE"
,
url
=
"${feign.client.appurl}"
)
public
interface
FaceService
{
@PostMapping
(
"/face/addFace"
)
Result
addFace
(
@RequestBody
ChSrvOrganEmp
chSrvOrganEmp
,
@RequestParam
(
"filePath"
)
String
filePath
,
Result
addFace
(
@RequestBody
SrvOrganEmpVo
srvOrganEmpVo
,
@RequestParam
(
"userId"
)
Integer
userId
);
}
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
View file @
3d8380ee
...
...
@@ -232,7 +232,9 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
chFndAttach
=
attachFeignService
.
selectAttachById
(
chFndAttach
.
getAttachId
()).
getData
();
}
log
.
info
(
"filePath2:"
+
chFndAttach
.
getFilePath
());
Result
addResult
=
faceService
.
addFace
(
srvOrganEmpVo
,
chFndAttach
.
getFilePath
(),
userId
);
String
filebase64
=
faceAuthUtil
.
imageToBase64
(
chFndAttach
.
getFilePath
());
srvOrganEmpVo
.
setFilepathBase64
(
filebase64
);
//照片转换为base64格式
Result
addResult
=
faceService
.
addFace
(
srvOrganEmpVo
,
userId
);
log
.
info
(
"调用新增人脸接口返回信息:"
+
addResult
);
if
(
StrUtil
.
equals
(
addResult
.
getCode
(),
"0000"
))
{
//返回成功
attachFeignService
.
updateAttachs
(
attachPhotoUpdateVo
);
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/disable/SrvOrganEmpVo.java
View file @
3d8380ee
...
...
@@ -21,4 +21,6 @@ public class SrvOrganEmpVo extends ChSrvOrganEmp {
//标准照片
private
List
<
ChFndAttach
>
photoList
;
private
String
filepathBase64
;
}
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