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
c749c365
Commit
c749c365
authored
Oct 09, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
cc10c8bc
cb0a9ff7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
5 deletions
+25
-5
AuditorServiceImpl.java
...in/java/com/gic/auth/service/impl/AuditorServiceImpl.java
+18
-0
UnionEnterpriseApiServiceImpl.java
...uth/service/outer/impl/UnionEnterpriseApiServiceImpl.java
+1
-1
dubbo-gic-platform-auth-service.xml
...ce/src/main/resources/dubbo-gic-platform-auth-service.xml
+3
-1
TabAuditorAuditedGroupRelMapper.xml
...main/resources/mapper/TabAuditorAuditedGroupRelMapper.xml
+3
-0
TabAuditorMapper.xml
...th-service/src/main/resources/mapper/TabAuditorMapper.xml
+0
-3
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/service/impl/AuditorServiceImpl.java
View file @
c749c365
package
com
.
gic
.
auth
.
service
.
impl
;
import
com.gic.auth.dao.mapper.TabAuditorAuditedGroupRelMapper
;
import
com.gic.auth.dao.mapper.TabAuditorMapper
;
import
com.gic.auth.dto.AuditorAuditedGroupRelDTO
;
import
com.gic.auth.dto.AuditorDTO
;
import
com.gic.auth.entity.TabAuditor
;
import
com.gic.auth.entity.TabAuditorAuditedGroupRel
;
import
com.gic.auth.qo.AuditorListQO
;
import
com.gic.auth.service.AuditorService
;
import
com.gic.commons.util.GlobalInfo
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageHelper
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
*
...
...
@@ -25,6 +30,8 @@ public class AuditorServiceImpl implements AuditorService {
@Autowired
private
TabAuditorMapper
tabAuditorMapper
;
@Autowired
private
TabAuditorAuditedGroupRelMapper
auditorAuditedGroupRelMapper
;
@Override
public
boolean
validAuditorNameIsRepeat
(
Integer
enterpriseId
,
String
auditorName
,
Integer
auditorId
)
{
...
...
@@ -99,6 +106,17 @@ public class AuditorServiceImpl implements AuditorService {
@Override
public
Page
<
TabAuditor
>
pageAuditor
(
AuditorListQO
auditorListQO
)
{
if
(
auditorListQO
.
getAuditedGroupId
()
!=
null
)
{
AuditorAuditedGroupRelDTO
auditedGroupRelDTO
=
new
AuditorAuditedGroupRelDTO
();
auditedGroupRelDTO
.
setAuditedGroupId
(
auditorListQO
.
getAuditedGroupId
());
List
<
TabAuditorAuditedGroupRel
>
relList
=
auditorAuditedGroupRelMapper
.
listRel
(
auditedGroupRelDTO
);
if
(
CollectionUtils
.
isEmpty
(
relList
))
{
return
new
Page
<>();
}
else
{
List
<
Integer
>
auditorIdList
=
relList
.
stream
().
map
(
TabAuditorAuditedGroupRel:
:
getAuditorId
).
collect
(
Collectors
.
toList
());
auditorListQO
.
setAuditorIdList
(
auditorIdList
);
}
}
PageHelper
.
startPage
(
auditorListQO
.
getCurrentPage
(),
auditorListQO
.
getPageSize
());
return
tabAuditorMapper
.
listAuditor
(
auditorListQO
);
}
...
...
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/UnionEnterpriseApiServiceImpl.java
View file @
c749c365
...
...
@@ -91,7 +91,7 @@ public class UnionEnterpriseApiServiceImpl implements UnionEnterpriseApiService
@Override
public
ServiceResponse
<
Void
>
updateStoreAuthorizationStatus
(
int
authOrizationStatus
,
Integer
enterpriseId
,
String
...
message
)
{
String
authOrizationMessage
=
null
;
if
(
message
!=
null
){
if
(
message
!=
null
&&
message
.
length
!=
0
){
authOrizationMessage
=
message
[
0
];
}
this
.
unionEnterpriseResourceService
.
updateAuthorizationStatus
(
authOrizationStatus
,
enterpriseId
,
ResourceTypeEnum
.
STORE_RESOURCE
.
getCode
(),
authOrizationMessage
);
...
...
gic-platform-auth-service/src/main/resources/dubbo-gic-platform-auth-service.xml
View file @
c749c365
...
...
@@ -39,5 +39,7 @@
<dubbo:reference
interface=
"com.gic.wechat.business.api.service.fwh.WeixinBaseFunService"
id=
"weixinBaseFunService"
timeout=
"6000"
/>
<!--会员模块-->
<dubbo:reference
interface=
"com.gic.member.api.service.ServiceUserApiService"
id=
"serviceUserApiService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.store.service.StoreAuthorizationApiService"
id=
"storeAuthorizationApiService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.store.service.StoreAuthorizationApiService"
id=
"storeAuthorizationApiService"
timeout=
"6000"
>
<dubbo:method
name=
"authStore"
async=
"true"
/>
</dubbo:reference>
</beans>
gic-platform-auth-service/src/main/resources/mapper/TabAuditorAuditedGroupRelMapper.xml
View file @
c749c365
...
...
@@ -174,6 +174,9 @@
<if
test=
"auditorId != null "
>
and auditor_id = #{auditorId}
</if>
<if
test=
"auditedGroupId != null "
>
and audited_group_id = #{auditedGroupId}
</if>
<if
test=
"null != auditorIdList"
>
and auditor_id in
<foreach
collection=
"auditorIdList"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
...
...
gic-platform-auth-service/src/main/resources/mapper/TabAuditorMapper.xml
View file @
c749c365
...
...
@@ -189,9 +189,6 @@
<if
test=
"auditorName != null and auditorName != '' "
>
and auditor_name like concat('%', #{auditorName}, '%')
</if>
<if
test=
"auditedGroupId != null "
>
and audited_group_id = #{auditedGroupId}
</if>
<if
test=
"isUse != null "
>
and is_use = #{isUse}
</if>
...
...
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