Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
chejia-smart-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 730b6d0f
authored
May 14, 2021
by
wnb0128
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
车家智能同步绿米屏蔽--think.wang
1 parent
8f594ca0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
src/main/java/cn/com/glsx/smart/modules/controller/UserRelationController.java
src/main/java/cn/com/glsx/smart/modules/controller/UserRelationController.java
View file @
730b6d0
...
@@ -112,7 +112,7 @@ public class UserRelationController {
...
@@ -112,7 +112,7 @@ public class UserRelationController {
request
.
setCreateTime
(
new
Date
());
request
.
setCreateTime
(
new
Date
());
Long
userId
=
userRelationService
.
insertSelective
(
request
);
Long
userId
=
userRelationService
.
insertSelective
(
request
);
if
(
userId
>
0L
){
if
(
userId
>
0L
){
userRelationService
.
syncAqaraUser
(
request
.
getPhone
(),
userId
);
//
userRelationService.syncAqaraUser(request.getPhone(), userId);
String
tuYaId
=
userRelationService
.
syncTuYaUser
(
request
.
getPhone
(),
password
,
userId
);
String
tuYaId
=
userRelationService
.
syncTuYaUser
(
request
.
getPhone
(),
password
,
userId
);
return
R
.
ok
().
data
(
tuYaId
);
return
R
.
ok
().
data
(
tuYaId
);
}
}
...
@@ -128,7 +128,7 @@ public class UserRelationController {
...
@@ -128,7 +128,7 @@ public class UserRelationController {
List
<
SmartUserChannel
>
list
=
user
.
getChannelList
();
List
<
SmartUserChannel
>
list
=
user
.
getChannelList
();
String
tuYaId
;
String
tuYaId
;
if
(
CollectionUtils
.
isEmpty
(
list
)){
if
(
CollectionUtils
.
isEmpty
(
list
)){
userRelationService
.
syncAqaraUser
(
user
.
getPhone
(),
user
.
getId
());
//
userRelationService.syncAqaraUser(user.getPhone(), user.getId());
tuYaId
=
userRelationService
tuYaId
=
userRelationService
.
syncTuYaUser
(
user
.
getPhone
(),
user
.
getPassword
(),
user
.
getId
());
.
syncTuYaUser
(
user
.
getPhone
(),
user
.
getPassword
(),
user
.
getId
());
return
tuYaId
;
return
tuYaId
;
...
@@ -140,9 +140,9 @@ public class UserRelationController {
...
@@ -140,9 +140,9 @@ public class UserRelationController {
tuYaId
=
userRelationService
tuYaId
=
userRelationService
.
syncTuYaUser
(
user
.
getPhone
(),
user
.
getPassword
(),
user
.
getId
());
.
syncTuYaUser
(
user
.
getPhone
(),
user
.
getPassword
(),
user
.
getId
());
}
}
if
(
map
.
get
(
Constants
.
USER_CHANNEL_AQARA
)
==
null
){
//
if(map.get(Constants.USER_CHANNEL_AQARA) == null){
userRelationService
.
syncAqaraUser
(
user
.
getPhone
(),
user
.
getId
());
//
userRelationService.syncAqaraUser(user.getPhone(), user.getId());
}
//
}
}
}
return
tuYaId
;
return
tuYaId
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment