Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
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-platform-auth
Commits
73045d5d
Commit
73045d5d
authored
Jul 28, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
Developer See merge request
!19
parents
3b33e42e
2dcd2993
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
4 deletions
+43
-4
AuditorApiService.java
...src/main/java/com/gic/auth/service/AuditorApiService.java
+11
-0
AuditorApiServiceImpl.java
...om/gic/auth/service/outer/impl/AuditorApiServiceImpl.java
+23
-0
ResourceApiServiceImpl.java
...m/gic/auth/service/outer/impl/ResourceApiServiceImpl.java
+9
-4
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/service/AuditorApiService.java
View file @
73045d5d
...
@@ -107,6 +107,17 @@ public interface AuditorApiService {
...
@@ -107,6 +107,17 @@ public interface AuditorApiService {
* @throws
* @throws
*/
*/
ServiceResponse
<
List
<
AuditorDTO
>>
listAuditorByProject
(
String
projectItemCode
,
Integer
userId
,
Integer
enterpriseId
);
ServiceResponse
<
List
<
AuditorDTO
>>
listAuditorByProject
(
String
projectItemCode
,
Integer
userId
,
Integer
enterpriseId
);
/**
* @Title: listAuditorByProject
* @Description:
* @author zhiwj
* @param projectItemCode
* @param enterpriseId
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.auth.dto.AuditorDTO>>
* @throws
*/
ServiceResponse
<
List
<
AuditorDTO
>>
listAuditorByProject
(
String
projectItemCode
,
Integer
enterpriseId
);
/**
/**
* 通过openid查询审核员
* 通过openid查询审核员
...
...
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/AuditorApiServiceImpl.java
View file @
73045d5d
...
@@ -276,6 +276,29 @@ public class AuditorApiServiceImpl implements AuditorApiService {
...
@@ -276,6 +276,29 @@ public class AuditorApiServiceImpl implements AuditorApiService {
}
}
@Override
@Override
public
ServiceResponse
<
List
<
AuditorDTO
>>
listAuditorByProject
(
String
projectItemCode
,
Integer
enterpriseId
)
{
ServiceResponse
<
ProjectItemDTO
>
projectItemResponse
=
this
.
projectItemApiService
.
getByProjectItemCode
(
projectItemCode
);
if
(!
projectItemResponse
.
isSuccess
())
{
return
EnterpriseServiceResponse
.
failure
(
ErrorCode
.
NOTEXISTS
);
}
Integer
projectItemId
=
projectItemResponse
.
getResult
().
getProjectItemId
();
// 找到审批项对应的审核员
List
<
Integer
>
projectAuditorIds
=
auditorProjectItemRelService
.
listAuditorIdByProjectItemId
(
enterpriseId
,
projectItemId
);
if
(
CollectionUtils
.
isNotEmpty
(
projectAuditorIds
))
{
AuditorListQO
listQO
=
new
AuditorListQO
();
listQO
.
setEnterpriseId
(
enterpriseId
);
listQO
.
setIsUse
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
listQO
.
setAuditorIdList
(
projectAuditorIds
);
List
<
TabAuditor
>
auditorList
=
this
.
auditorService
.
listAuditor
(
listQO
);
if
(
CollectionUtils
.
isNotEmpty
(
auditorList
))
{
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityListByJSON
(
AuditorDTO
.
class
,
auditorList
));
}
}
AuditorDTO
adminAuditor
=
this
.
getAdminAuditor
(
enterpriseId
);
return
ServiceResponse
.
success
(
Collections
.
singletonList
(
adminAuditor
));
}
@Override
public
ServiceResponse
<
AuditorDTO
>
getAuditorByOpenid
(
String
openid
)
{
public
ServiceResponse
<
AuditorDTO
>
getAuditorByOpenid
(
String
openid
)
{
TabAuditor
auditor
=
this
.
auditorService
.
getAuditorByOpenid
(
openid
);
TabAuditor
auditor
=
this
.
auditorService
.
getAuditorByOpenid
(
openid
);
if
(
auditor
!=
null
)
{
if
(
auditor
!=
null
)
{
...
...
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/ResourceApiServiceImpl.java
View file @
73045d5d
...
@@ -237,9 +237,9 @@ public class ResourceApiServiceImpl implements ResourceApiService {
...
@@ -237,9 +237,9 @@ public class ResourceApiServiceImpl implements ResourceApiService {
}
}
if
(
user
.
getSuperAdmin
()
==
1
)
{
if
(
user
.
getSuperAdmin
()
==
1
)
{
List
<
OwnerMemberCardDTO
>
memberCardList
=
memberCardApiService
.
getAll
(
user
.
getEnterpriseId
()).
getResult
();
List
<
OwnerMemberCardDTO
>
memberCardList
=
memberCardApiService
.
getAll
ContainDel
(
user
.
getEnterpriseId
()).
getResult
();
List
<
AppletsConfigSimpleOutputDTO
>
appletList
=
appletsConfigApiService
.
list
ValidAppletConfigAppId
(
user
.
getEnterpriseId
()).
getResult
();
List
<
AppletsConfigSimpleOutputDTO
>
appletList
=
appletsConfigApiService
.
list
AppletConfigAppIdContainDel
(
user
.
getEnterpriseId
()).
getResult
();
List
<
ServiceConfigSimpleOutputDTO
>
serviceList
=
serviceConfigApiService
.
list
ValidServiceConfigAppId
(
user
.
getEnterpriseId
()).
getResult
();
List
<
ServiceConfigSimpleOutputDTO
>
serviceList
=
serviceConfigApiService
.
list
ServiceConfigAppIdContainDel
(
user
.
getEnterpriseId
()).
getResult
();
ChannelResourceDTO
channelResourceDTO
=
new
ChannelResourceDTO
();
ChannelResourceDTO
channelResourceDTO
=
new
ChannelResourceDTO
();
channelResourceDTO
.
setAppletConfigIdList
(
Optional
.
ofNullable
(
appletList
).
orElse
(
Collections
.
emptyList
()).
stream
().
map
(
AppletsConfigSimpleOutputDTO:
:
getAppletConfigId
).
collect
(
Collectors
.
toList
()));
channelResourceDTO
.
setAppletConfigIdList
(
Optional
.
ofNullable
(
appletList
).
orElse
(
Collections
.
emptyList
()).
stream
().
map
(
AppletsConfigSimpleOutputDTO:
:
getAppletConfigId
).
collect
(
Collectors
.
toList
()));
...
@@ -359,6 +359,11 @@ public class ResourceApiServiceImpl implements ResourceApiService {
...
@@ -359,6 +359,11 @@ public class ResourceApiServiceImpl implements ResourceApiService {
UserResourceDTO
userResourceDTO
=
resourceDTOList
.
get
(
0
);
UserResourceDTO
userResourceDTO
=
resourceDTOList
.
get
(
0
);
TabSysResource
resource
=
this
.
resourceService
.
getResource
(
userResourceDTO
.
getResourceId
());
TabSysResource
resource
=
this
.
resourceService
.
getResource
(
userResourceDTO
.
getResourceId
());
CrowdWidgetDTO
widgetDTO
=
crowdWidgetApiService
.
getScreenWidgetInfo
(
resource
.
getUserResource
(),
resource
.
getEnterpriseId
()).
getResult
();
CrowdWidgetDTO
widgetDTO
=
crowdWidgetApiService
.
getScreenWidgetInfo
(
resource
.
getUserResource
(),
resource
.
getEnterpriseId
()).
getResult
();
return
EnterpriseServiceResponse
.
success
(
StringUtils
.
isNotBlank
(
widgetDTO
.
getSearchParams
())
?
resource
.
getUserResource
()
:
null
);
if
(
StringUtils
.
isBlank
(
widgetDTO
.
getSearchParams
()))
{
return
EnterpriseServiceResponse
.
success
();
}
else
{
return
EnterpriseServiceResponse
.
success
(
StringUtils
.
equals
(
widgetDTO
.
getSearchParams
(),
"[{\"type\":\"\",\"list\":[]}]"
)
?
-
1
:
resource
.
getUserResource
());
}
}
}
}
}
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