Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
80d875f1
Commit
80d875f1
authored
Oct 16, 2023
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改同步用户
parent
33480e11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
PlatformModifyPasswordistener.java
...ule/jxiop/biz/listener/PlatformModifyPasswordistener.java
+7
-12
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/listener/PlatformModifyPasswordistener.java
View file @
80d875f1
...
...
@@ -57,20 +57,15 @@ public class PlatformModifyPasswordistener {
personAccountFed
.
setSecondaryPassword
((
String
)
jsonObject
.
get
(
"rePassword"
));
personAccountFedMapper
.
updateById
(
personAccountFed
);
}
//发消息通知集成方修改
Map
<
String
,
Object
>
data
=
new
HashMap
<>();
FeignClientResult
<
AgencyUserModel
>
amosUser
=
Privilege
.
agencyUserClient
.
queryByUserId
(
personAccount
.
getPuserId
());
AgencyUserModel
user
=
new
AgencyUserModel
();
if
(!
ObjectUtils
.
isEmpty
(
amosUser
))
{
if
(
amosUser
.
getStatus
()
==
200
)
{
user
=
amosUser
.
getResult
();
}
else
{
throw
new
RuntimeException
(
amosUser
.
getMessage
());
}
if
(
personAccount
!=
null
)
{
Map
<
String
,
Object
>
data
=
new
HashMap
<>();
data
.
put
(
"SEQUENCE_NBR"
,
jsonObject
.
get
(
"sequenceNbr"
));
ProduceMsg
produceMsg
=
new
ProduceMsg
(
data
,
"UPDATE"
,
personAccount
.
getPuserId
());
querueProduce
.
produceMsg
(
JSON
.
toJSONString
(
produceMsg
));
}
data
.
put
(
"SEQUENCE_NBR"
,
user
.
getSequenceNbr
());
ProduceMsg
produceMsg
=
new
ProduceMsg
(
data
,
"UPDATE"
,
personAccount
.
getPuserId
());
querueProduce
.
produceMsg
(
JSON
.
toJSONString
(
produceMsg
));
message
.
acknowledge
();
log
.
info
(
"--------------------消息消费成功 {}"
,
jsonObject
);
}
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