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
f2409fc0
Commit
f2409fc0
authored
Dec 10, 2021
by
李健华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同时判断两个索引
parent
ffcb0ccb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
OauthLoginInfoServiceImpl.java
...oup/xyqb/service/user/impl/OauthLoginInfoServiceImpl.java
+3
-1
No files found.
src/main/java/cn/quantgroup/xyqb/service/user/impl/OauthLoginInfoServiceImpl.java
View file @
f2409fc0
...
@@ -50,10 +50,12 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService {
...
@@ -50,10 +50,12 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService {
String
phoneNo
=
user
.
getPhoneNo
();
String
phoneNo
=
user
.
getPhoneNo
();
Long
userId
=
user
.
getId
();
Long
userId
=
user
.
getId
();
ProductLoginEntity
findProductLoginEntity
=
productLoginRepository
.
findByInstitutionIdAndProductIdAndExtensionAccountId
(
institutionId
,
productId
,
userId
);
ProductLoginEntity
findProductLoginEntity
=
productLoginRepository
.
findByInstitutionIdAndProductIdAndExtensionAccountId
(
institutionId
,
productId
,
userId
);
ProductLoginEntity
findProductLoginByPhoneEntity
=
productLoginRepository
.
findFirstByInstitutionIdAndProductIdAndPhoneNo
(
institutionId
,
productId
,
phoneNo
);
log
.
info
(
"=findProductLoginEntity -> {}"
,
JSON
.
toJSONString
(
findProductLoginEntity
));
log
.
info
(
"=findProductLoginEntity -> {}"
,
JSON
.
toJSONString
(
findProductLoginEntity
));
log
.
info
(
"=findProductLoginPhoneEntity -> {}"
,
JSON
.
toJSONString
(
findProductLoginByPhoneEntity
));
long
uuid
=
0L
;
long
uuid
=
0L
;
// 如果找不到该用户就创建
// 如果找不到该用户就创建
if
(
findProductLoginEntity
==
null
)
{
if
(
findProductLoginEntity
==
null
&&
findProductLoginByPhoneEntity
==
null
)
{
// 添加用户到产品登录表
// 添加用户到产品登录表
long
customerId
=
atomicSequencer
.
nextId
();
long
customerId
=
atomicSequencer
.
nextId
();
// long id = session.nextId();
// long id = session.nextId();
...
...
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