Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张云鹏
/
uc-consumer
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
befd31ce
...
befd31ce611ff902153f87842e60323947b43f33
authored
2022-05-30 23:17:42 +0800
by
xianghan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.update
1 parent
2bf41a44
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
src/main/java/com/topdraw/business/process/service/impl/UserOperationServiceImpl.java
src/main/java/com/topdraw/business/process/service/impl/UserOperationServiceImpl.java
View file @
befd31c
...
...
@@ -258,6 +258,16 @@ public class UserOperationServiceImpl implements UserOperationService {
}
}
else
{
String
memberCode
=
userWeixinDTO
.
getMemberCode
();
if
(
StringUtils
.
isNotBlank
(
memberCode
))
{
Member
member
=
new
Member
();
member
.
setCode
(
memberCode
);
MemberDTO
memberDTO1
=
this
.
memberService
.
create
(
member
);
userWeixinDTO
.
setMemberId
(
memberDTO1
.
getId
());
}
}
userWeixinDTO
.
setId
(
_userWeixinDTO
.
getId
());
this
.
updateWeixin
(
_userWeixinDTO
,
userWeixinDTO
);
...
...
@@ -341,7 +351,7 @@ public class UserOperationServiceImpl implements UserOperationService {
UserWeixinDTO
userWeixinDTO1
=
this
.
userWeixinService
.
findFirstByUnionId
(
unionid
);
// 有其他账号
if
(
Objects
.
nonNull
(
userWeixinDTO1
))
{
if
(
Objects
.
nonNull
(
userWeixinDTO1
.
getId
()
))
{
Long
memberId
=
userWeixinDTO1
.
getMemberId
();
if
(
Objects
.
nonNull
(
memberId
))
{
...
...
@@ -374,7 +384,7 @@ public class UserOperationServiceImpl implements UserOperationService {
UserWeixinDTO
userWeixinDTO1
=
this
.
userWeixinService
.
findFirstByUnionId
(
unionid
);
// 有其他账号
if
(
Objects
.
nonNull
(
userWeixinDTO1
))
{
if
(
Objects
.
nonNull
(
userWeixinDTO1
.
getId
()
))
{
Long
memberId
=
userWeixinDTO1
.
getMemberId
();
if
(
Objects
.
nonNull
(
memberId
))
{
...
...
@@ -394,6 +404,15 @@ public class UserOperationServiceImpl implements UserOperationService {
userWeixinDTO
.
setMemberId
(
_memberDTO1
.
getId
());
}
}
else
{
MemberDTO
memberDTO1
=
memberAndWeixinUserDTO
.
getMemberDTO
();
Member
member
=
new
Member
();
BeanUtils
.
copyProperties
(
memberDTO1
,
member
);
member
.
setId
(
null
);
MemberDTO
_memberDTO1
=
this
.
memberService
.
create
(
member
);
userWeixinDTO
.
setMemberId
(
_memberDTO1
.
getId
());
}
this
.
createWeixin
(
userWeixinDTO
);
...
...
Please
register
or
sign in
to post a comment