Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-data-cloud
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-data-cloud
Commits
464e1ec6
Commit
464e1ec6
authored
Jul 28, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据人查询功能模块
parent
b5f6961f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
FunctionApiService.java
...c/main/java/com/gic/cloud/service/FunctionApiService.java
+2
-0
FunctionApiServiceImpl.java
.../gic/cloud/service/outer/impl/FunctionApiServiceImpl.java
+10
-0
No files found.
gic-data-cloud-api/src/main/java/com/gic/cloud/service/FunctionApiService.java
View file @
464e1ec6
...
...
@@ -26,4 +26,6 @@ public interface FunctionApiService {
ServiceResponse
<
List
<
FunctionDTO
>>
listFunction
(
Integer
enterpriseId
,
String
functionName
);
ServiceResponse
<
FunctionDTO
>
getFunction
(
Integer
functionId
);
ServiceResponse
<
FunctionDTO
>
getFunctionByUserId
(
Integer
userId
);
}
gic-data-cloud-service/src/main/java/com/gic/cloud/service/outer/impl/FunctionApiServiceImpl.java
View file @
464e1ec6
...
...
@@ -6,6 +6,7 @@ import com.gic.cloud.constants.FunctionEnum;
import
com.gic.cloud.dto.FunctionDTO
;
import
com.gic.cloud.dto.UserDTO
;
import
com.gic.cloud.entity.TabSysFunction
;
import
com.gic.cloud.entity.TabSysUser
;
import
com.gic.cloud.service.FunctionApiService
;
import
com.gic.cloud.service.FunctionService
;
import
com.gic.cloud.service.UserService
;
...
...
@@ -90,6 +91,15 @@ public class FunctionApiServiceImpl implements FunctionApiService{
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityNew
(
FunctionDTO
.
class
,
functionService
.
getFunction
(
functionId
)));
}
@Override
public
ServiceResponse
<
FunctionDTO
>
getFunctionByUserId
(
Integer
userId
)
{
TabSysUser
user
=
userService
.
getUser
(
userId
);
if
(
user
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"用户不存在"
);
}
return
getFunction
(
user
.
getFunctionAuthId
());
}
private
ServiceResponse
<
Void
>
validParam
(
FunctionDTO
dto
)
{
if
(
dto
.
getFunctionId
()
!=
null
)
{
TabSysFunction
record
=
functionService
.
getFunction
(
dto
.
getFunctionId
());
...
...
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