Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-support-rlwx
Project
Project
Details
Activity
Releases
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
rl
hls-support-rlwx
Commits
77091585
Commit
77091585
authored
Dec 14, 2022
by
胡建龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/uat' into uat
parents
d7617a23
fbe8bb2f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
8 deletions
+53
-8
SignUserInfoHclc.java
...ain/java/com/hand/app/esignHclc/dto/SignUserInfoHclc.java
+20
-0
SignUserInfoHclcHis.java
.../java/com/hand/app/esignHclc/dto/SignUserInfoHclcHis.java
+19
-0
SignInfoHclcServiceImpl.java
...d/app/esignHclc/service/impl/SignInfoHclcServiceImpl.java
+14
-8
No files found.
core/src/main/java/com/hand/app/esignHclc/dto/SignUserInfoHclc.java
View file @
77091585
...
...
@@ -58,6 +58,10 @@ public class SignUserInfoHclc extends BaseDTO {
private
String
managerAuthFlag
;
// 管理员授权状态
private
String
openIdNew
;
private
String
openIdBak
;
@Transient
private
String
attachmentId
;
//身份证附件id
...
...
@@ -408,4 +412,20 @@ public class SignUserInfoHclc extends BaseDTO {
public
void
setOldOpenId
(
String
oldOpenId
)
{
this
.
oldOpenId
=
oldOpenId
;
}
public
String
getOpenIdBak
()
{
return
openIdBak
;
}
public
void
setOpenIdBak
(
String
openIdBak
)
{
this
.
openIdBak
=
openIdBak
;
}
public
String
getOpenIdNew
()
{
return
openIdNew
;
}
public
void
setOpenIdNew
(
String
openIdNew
)
{
this
.
openIdNew
=
openIdNew
;
}
}
core/src/main/java/com/hand/app/esignHclc/dto/SignUserInfoHclcHis.java
View file @
77091585
...
...
@@ -120,6 +120,10 @@ public class SignUserInfoHclcHis extends BaseDTO {
@Transient
private
Long
orgAttachmentId
;
private
String
openIdNew
;
private
String
openIdBak
;
public
void
setHisId
(
Long
hisId
)
{
this
.
hisId
=
hisId
;
...
...
@@ -329,4 +333,19 @@ public class SignUserInfoHclcHis extends BaseDTO {
return
authFlag
;
}
public
String
getOpenIdNew
()
{
return
openIdNew
;
}
public
void
setOpenIdNew
(
String
openIdNew
)
{
this
.
openIdNew
=
openIdNew
;
}
public
String
getOpenIdBak
()
{
return
openIdBak
;
}
public
void
setOpenIdBak
(
String
openIdBak
)
{
this
.
openIdBak
=
openIdBak
;
}
}
core/src/main/java/com/hand/app/esignHclc/service/impl/SignInfoHclcServiceImpl.java
View file @
77091585
...
...
@@ -751,9 +751,9 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i
//身份证ocr认证
SignHclcUtils
signHclcUtils
=
new
SignHclcUtils
();
if
(
"app_file_id_card"
.
equalsIgnoreCase
(
attachmentInfo
.
getSourceType
()))
{
//
json = signHclcUtils.idcard(bytes);
String
img
=
Base64
.
encodeBase64String
(
bytes
);
json
=
this
.
idcard
(
iRequest
,
img
);
json
=
signHclcUtils
.
idcard
(
bytes
);
//
String img = Base64.encodeBase64String(bytes);
//
json = this.idcard(iRequest, img);
}
else
if
(
"app_file_id_bank"
.
equalsIgnoreCase
(
attachmentInfo
.
getSourceType
()))
{
json
=
signHclcUtils
.
bankcard
(
bytes
);
// img = Base64.encodeBase64String(bytes);
...
...
@@ -1304,7 +1304,7 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i
//创建内部用户返回的天印签章系统的用户id
result
.
put
(
"accountId"
,
accountId
);
//用户的唯一标识可以为客户业务系统内唯一标识
result
.
put
(
"uniqueId"
,
signInfoHclc
.
getOpenId
());
result
.
put
(
"uniqueId"
,
Objects
.
nonNull
(
signInfoHclc
.
getOpenIdBak
())
?
signInfoHclc
.
getOpenIdBak
()
:
signInfoHclc
.
getOpenId
());
JSONObject
json
=
new
JSONObject
(
result
);
String
param
=
json
.
toString
();
...
...
@@ -1417,12 +1417,12 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i
//用户类型是个人时
if
(
signInfoHclc
.
getCtitype
().
compareTo
(
1L
)
==
0
)
{
json1
.
put
(
"accountId"
,
signInfoHclc
.
getAccountId
());
json1
.
put
(
"uniqueId"
,
signInfoHclc
.
getOpenId
().
replace
(
"personHclc"
,
""
));
json1
.
put
(
"uniqueId"
,
Objects
.
nonNull
(
signInfoHclc
.
getOpenIdBak
())
?
signInfoHclc
.
getOpenIdBak
()
:
signInfoHclc
.
getOpenId
().
replace
(
"personHclc"
,
""
));
//用户类型是机构时
}
else
{
json1
.
put
(
"accountId"
,
signInfoHclc
.
getAgentAccountId
());
json1
.
put
(
"authorizationOrganizeId"
,
signInfoHclc
.
getAccountId
());
json1
.
put
(
"uniqueId"
,
signInfoHclc
.
getOpenId
());
json1
.
put
(
"uniqueId"
,
Objects
.
nonNull
(
signInfoHclc
.
getOpenIdBak
())
?
signInfoHclc
.
getOpenIdBak
()
:
signInfoHclc
.
getOpenId
());
}
//获取需要发送微信通知的签署人
...
...
@@ -1575,8 +1575,14 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i
// } else {
//根据uniqueId获取用户信息
SignUserInfoHclc
signInfoHclc
=
new
SignUserInfoHclc
();
signInfoHclc
.
setOpenId
(
signUrl
.
getString
(
"uniqueId"
));
signInfoHclc
=
this
.
selectByPrimaryKey
(
requestContext
,
signInfoHclc
);
signInfoHclc
.
setOpenIdBak
(
signUrl
.
getString
(
"uniqueId"
));
List
<
SignUserInfoHclc
>
signUserInfoHclcs
=
signInfoHclcMapper
.
select
(
signInfoHclc
);
if
(
Objects
.
nonNull
(
signUserInfoHclcs
)
&&
signUserInfoHclcs
.
size
()
>
0
)
{
signInfoHclc
=
signUserInfoHclcs
.
get
(
0
);
}
else
{
signInfoHclc
.
setOpenId
(
signUrl
.
getString
(
"uniqueId"
));
signInfoHclc
=
this
.
selectByPrimaryKey
(
requestContext
,
signInfoHclc
);
}
if
(
signInfoHclc
.
getCtitype
().
compareTo
(
2L
)
==
0
&&
!
signUrl
.
getString
(
"signUrl"
).
contains
(
"organizeId"
))
{
SignUserInfoHclc
signInfoHclcP
=
new
SignUserInfoHclc
();
...
...
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