Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
658380d0
Commit
658380d0
authored
Jul 24, 2023
by
唐峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注册登录合同重复签署问题
parent
b0fbece8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
LoginReq.java
...n/java/cn/quantgroup/xyqb/controller/req/v2/LoginReq.java
+1
-1
BlackHoleRegisteredEventListener.java
...antgroup/xyqb/event/BlackHoleRegisteredEventListener.java
+8
-7
UserTagLoginEventListener.java
...a/cn/quantgroup/xyqb/event/UserTagLoginEventListener.java
+1
-1
No files found.
src/main/java/cn/quantgroup/xyqb/controller/req/v2/LoginReq.java
View file @
658380d0
...
...
@@ -16,7 +16,7 @@ public class LoginReq {
private
boolean
attachInfo
;
/**
* 0:
h5,1:web,2:app
* 0:
app 1:h5,2:web,
* @see ClientType
*/
@NotNull
...
...
src/main/java/cn/quantgroup/xyqb/event/BlackHoleRegisteredEventListener.java
View file @
658380d0
...
...
@@ -58,30 +58,31 @@ public class BlackHoleRegisteredEventListener implements ApplicationListener<Reg
if
(
lock
.
lock
())
{
//补签合同,如果需要补签 BlackHoleRegisteredEventListener 签署注册和隐私协议
//此处补签,对于合同中心,可能会重新签署,后续待合同中心处理并发问题或者重复签署逻辑
Thread
.
sleep
(
2000
);
//
Thread.sleep(2000);
JSONArray
array
=
new
JSONArray
();
//
JSONArray array = new JSONArray();
templates
.
forEach
(
templateId
->
{
JSONObject
json
=
new
JSONObject
();
if
(
templateId
==
8
||
templateId
==
280
)
{
JSONObject
fields
=
new
JSONObject
();
fields
.
put
(
"phoneNo"
,
user
.
getPhoneNo
());
fields
.
put
(
"genarateDateStr"
,
dateStr
);
fields
.
put
(
"day"
,
day
);
JSONObject
json
=
new
JSONObject
();
json
.
put
(
"userId"
,
user
.
getId
());
json
.
put
(
"mustReal"
,
false
);
json
.
put
(
"templateId"
,
templateId
);
json
.
put
(
"fields"
,
fields
);
array
.
add
(
json
);
//
array.add(json);
}
else
{
JSONObject
json
=
new
JSONObject
();
json
.
put
(
"userId"
,
user
.
getId
());
json
.
put
(
"templateId"
,
templateId
);
array
.
add
(
json
);
//
array.add(json);
}
log
.
info
(
"注册签合同事件:{},"
,
JSONObject
.
toJSONString
(
event
));
registeredNotifyBlackHoleRabbitTemplate
.
convertAndSend
(
exchange
,
routingKey
,
array
.
toString
());
json
.
toString
());
});
}
}
catch
(
Exception
e
)
{
...
...
src/main/java/cn/quantgroup/xyqb/event/UserTagLoginEventListener.java
View file @
658380d0
...
...
@@ -66,7 +66,7 @@ public class UserTagLoginEventListener implements ApplicationListener<UserLoginE
if
(
lock
.
lock
())
{
//补签合同,如果需要补签 BlackHoleRegisteredEventListener 签署注册和隐私协议
//此处补签,对于合同中心,可能会重新签署,后续待合同中心处理并发问题或者重复签署逻辑
Thread
.
sleep
(
2000
);
//
Thread.sleep(2000);
userService
.
channelUserSignContract
(
user
,
userTag
.
getRegisteredFrom
(),
userTag
.
getTenantId
());
}
}
catch
(
Exception
e
)
{
...
...
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