Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
c3ce7061
Commit
c3ce7061
authored
Dec 19, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-customer-management' into dev
parents
eb334b67
fd50cc09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
AppUserRelationBiz.java
...github/wxiaoqi/security/admin/biz/AppUserRelationBiz.java
+9
-3
AppPermissionService.java
...aoqi/security/admin/rpc/service/AppPermissionService.java
+14
-0
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserRelationBiz.java
View file @
c3ce7061
...
@@ -247,9 +247,15 @@ public class AppUserRelationBiz extends BaseBiz<AppUserRelationMapper, AppUserRe
...
@@ -247,9 +247,15 @@ public class AppUserRelationBiz extends BaseBiz<AppUserRelationMapper, AppUserRe
*/
*/
@Cache
(
key
=
"user:relation{1}"
)
@Cache
(
key
=
"user:relation{1}"
)
public
AppUserRelation
getRelationByUserId
(
Integer
userId
)
{
public
AppUserRelation
getRelationByUserId
(
Integer
userId
)
{
AppUserRelation
relation
=
new
AppUserRelation
();
/* AppUserRelation relation = new AppUserRelation();
relation
.
setUserId
(
userId
);
relation.setUserId(userId);*/
return
selectOne
(
relation
);
Example
example
=
new
Example
(
AppUserRelation
.
class
);
example
.
createCriteria
().
andEqualTo
(
"userId"
,
userId
);
List
<
AppUserRelation
>
list
=
selectByExample
(
example
);
if
(
list
.
size
()>
0
){
return
list
.
get
(
0
);
}
return
null
;
}
}
//获取有效的上线
//获取有效的上线
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rpc/service/AppPermissionService.java
View file @
c3ce7061
...
@@ -44,6 +44,7 @@ import org.springframework.transaction.annotation.Transactional;
...
@@ -44,6 +44,7 @@ import org.springframework.transaction.annotation.Transactional;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
tk.mybatis.mapper.entity.Example
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.*
;
import
java.util.*
;
...
@@ -323,6 +324,7 @@ public class AppPermissionService {
...
@@ -323,6 +324,7 @@ public class AppPermissionService {
parentId
=
appUserDetailBiz
.
getUserByCode
(
code
);
parentId
=
appUserDetailBiz
.
getUserByCode
(
code
);
}
}
if
(
parentId
!=
null
&&
parentId
>
0
){
if
(
parentId
!=
null
&&
parentId
>
0
){
rsUserDetail
.
setSource
(
1
);
relationBiz
.
bindRelation
(
userid
,
parentId
,
1
);
relationBiz
.
bindRelation
(
userid
,
parentId
,
1
);
if
(
StringUtils
.
isNotBlank
(
activityCode
)){
if
(
StringUtils
.
isNotBlank
(
activityCode
)){
rsUserDetail
.
setInviterAccount
(
parentId
);
rsUserDetail
.
setInviterAccount
(
parentId
);
...
@@ -390,6 +392,18 @@ public class AppPermissionService {
...
@@ -390,6 +392,18 @@ public class AppPermissionService {
}
}
}
}
/*public void test(){
Example example=new Example(AppUserLogin.class);
example.createCriteria().andEqualTo("imUserid",0);
List<AppUserLogin> list=appUserLoginBiz.selectByExample(example);
for (AppUserLogin userLogin:list){
}
}*/
private
void
sendQueue
(
String
username
,
String
password
,
String
headimgurl
,
String
nickname
,
String
mobilecode
,
String
openId
,
String
unionid
,
Integer
type
,
String
code
,
String
activityCode
,
Integer
userid
,
Integer
sign
)
{
private
void
sendQueue
(
String
username
,
String
password
,
String
headimgurl
,
String
nickname
,
String
mobilecode
,
String
openId
,
String
unionid
,
Integer
type
,
String
code
,
String
activityCode
,
Integer
userid
,
Integer
sign
)
{
try
{
try
{
RegisterQueueDTO
registerQueueDTO
=
new
RegisterQueueDTO
();
RegisterQueueDTO
registerQueueDTO
=
new
RegisterQueueDTO
();
...
...
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