Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
training-project
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
training-project
Commits
dc6fcba3
Commit
dc6fcba3
authored
Jan 16, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
咨询查询所有
parent
d1e38e9d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
cloud-training-project-api/src/main/java/com/yizhi/training/application/feign/LeaveWordClient.java
+1
-1
cloud-training-project-service/src/main/java/com/yizhi/training/application/controller/LeaveWordController.java
+2
-2
cloud-training-project-service/src/main/java/com/yizhi/training/application/service/LeaveWordService.java
+1
-1
cloud-training-project-service/src/main/java/com/yizhi/training/application/service/impl/LeaveWordServiceImpl.java
+2
-3
No files found.
cloud-training-project-api/src/main/java/com/yizhi/training/application/feign/LeaveWordClient.java
View file @
dc6fcba3
...
@@ -36,5 +36,5 @@ public interface LeaveWordClient {
...
@@ -36,5 +36,5 @@ public interface LeaveWordClient {
@GetMapping
(
"/manage/leaveWord/getAuthzUserGroup"
)
@GetMapping
(
"/manage/leaveWord/getAuthzUserGroup"
)
public
AuthzUserGroupVo
getAuthzUserGroup
();
public
AuthzUserGroupVo
getAuthzUserGroup
(
@RequestParam
(
name
=
"userId"
)
Long
userId
);
}
}
cloud-training-project-service/src/main/java/com/yizhi/training/application/controller/LeaveWordController.java
View file @
dc6fcba3
...
@@ -37,8 +37,8 @@ public class LeaveWordController {
...
@@ -37,8 +37,8 @@ public class LeaveWordController {
}
}
@GetMapping
(
"/getAuthzUserGroup"
)
@GetMapping
(
"/getAuthzUserGroup"
)
public
AuthzUserGroupVo
getAuthzUserGroup
(){
public
AuthzUserGroupVo
getAuthzUserGroup
(
@RequestParam
(
name
=
"userId"
)
Long
userId
){
return
leaveWordService
.
getAuthzUserGroup
();
return
leaveWordService
.
getAuthzUserGroup
(
userId
);
}
}
@GetMapping
(
"/updateState"
)
@GetMapping
(
"/updateState"
)
public
boolean
updateState
(
@RequestParam
(
"id"
)
Long
id
,
@RequestParam
(
"state"
)
Integer
state
){
public
boolean
updateState
(
@RequestParam
(
"id"
)
Long
id
,
@RequestParam
(
"state"
)
Integer
state
){
...
...
cloud-training-project-service/src/main/java/com/yizhi/training/application/service/LeaveWordService.java
View file @
dc6fcba3
...
@@ -17,7 +17,7 @@ public interface LeaveWordService extends IService<LeaveWord> {
...
@@ -17,7 +17,7 @@ public interface LeaveWordService extends IService<LeaveWord> {
Page
<
LeaveWordVo
>
page
(
LeaveWordParamVo
paramVo
);
Page
<
LeaveWordVo
>
page
(
LeaveWordParamVo
paramVo
);
boolean
save
(
LeaveWordVo
leaveWordVo
);
boolean
save
(
LeaveWordVo
leaveWordVo
);
LeaveWordVo
getById
(
Long
id
);
LeaveWordVo
getById
(
Long
id
);
AuthzUserGroupVo
getAuthzUserGroup
();
AuthzUserGroupVo
getAuthzUserGroup
(
Long
userId
);
boolean
updateState
(
Long
id
,
Integer
state
);
boolean
updateState
(
Long
id
,
Integer
state
);
boolean
removeById
(
Long
id
);
boolean
removeById
(
Long
id
);
}
}
cloud-training-project-service/src/main/java/com/yizhi/training/application/service/impl/LeaveWordServiceImpl.java
View file @
dc6fcba3
...
@@ -121,9 +121,8 @@ public class LeaveWordServiceImpl extends ServiceImpl<LeaveWordMapper, LeaveWord
...
@@ -121,9 +121,8 @@ public class LeaveWordServiceImpl extends ServiceImpl<LeaveWordMapper, LeaveWord
}
}
@Override
@Override
public
AuthzUserGroupVo
getAuthzUserGroup
(){
public
AuthzUserGroupVo
getAuthzUserGroup
(
Long
userId
){
RequestContext
context
=
ContextHolder
.
get
();
return
this
.
baseMapper
.
getUserGroupByUser
(
userId
);
return
this
.
baseMapper
.
getUserGroupByUser
(
context
.
getAccountId
());
}
}
@Override
@Override
...
...
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