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
f747ab21
Commit
f747ab21
authored
Sep 24, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
授权常量
parent
a34a3577
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
1 deletions
+33
-1
AuthorizationStatusEnum.java
...n/java/com/gic/auth/constant/AuthorizationStatusEnum.java
+2
-1
UnionEnterpriseApiService.java
.../java/com/gic/auth/service/UnionEnterpriseApiService.java
+2
-0
TabSysUnionEnterpriseResourceMapper.java
.../auth/dao/mapper/TabSysUnionEnterpriseResourceMapper.java
+6
-0
UnionEnterpriseResourceService.java
.../com/gic/auth/service/UnionEnterpriseResourceService.java
+2
-0
UnionEnterrpiseResourceServiceImpl.java
...auth/service/impl/UnionEnterrpiseResourceServiceImpl.java
+5
-0
UnionEnterpriseApiServiceImpl.java
...uth/service/outer/impl/UnionEnterpriseApiServiceImpl.java
+10
-0
TabSysUnionEnterpriseResourceMapper.xml
.../resources/mapper/TabSysUnionEnterpriseResourceMapper.xml
+6
-0
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/constant/AuthorizationStatusEnum.java
View file @
f747ab21
...
...
@@ -3,7 +3,8 @@ package com.gic.auth.constant;
public
enum
AuthorizationStatusEnum
{
NORMAL
(
1
,
"授权中"
),
SUCCESS
(
2
,
"授权成功"
),
FAIL
(
3
,
"授权失败"
);
FAIL
(
3
,
"授权失败"
),
NO
(
4
,
"不授权"
);
private
Integer
code
;
private
String
message
;
...
...
gic-platform-auth-api/src/main/java/com/gic/auth/service/UnionEnterpriseApiService.java
View file @
f747ab21
...
...
@@ -15,4 +15,6 @@ public interface UnionEnterpriseApiService {
ServiceResponse
<
Page
<
UnionEnterpriseDTO
>>
pageUnionEnterprise
(
String
search
,
Integer
enterpriseId
,
Integer
pageNum
,
Integer
pageSize
,
Integer
authorizationStatus
);
ServiceResponse
<
Void
>
updateStoreAuthorizationStatus
(
int
authOrizationStatus
,
Integer
enterpriseId
,
String
...
message
);
}
gic-platform-auth-service/src/main/java/com/gic/auth/dao/mapper/TabSysUnionEnterpriseResourceMapper.java
View file @
f747ab21
...
...
@@ -57,4 +57,9 @@ public interface TabSysUnionEnterpriseResourceMapper {
List
<
TabSysUnionEnterpriseResource
>
getResource
(
@Param
(
"unionId"
)
Integer
unionId
,
@Param
(
"type"
)
int
type
);
int
delResource
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"unionId"
)
Integer
unionId
);
int
updateAuthorizationStatus
(
@Param
(
"authOrizationStatus"
)
int
authOrizationStatus
,
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"resourceType"
)
Integer
resourceType
,
@Param
(
"authOrizationMessage"
)
String
authOrizationMessage
);
}
\ No newline at end of file
gic-platform-auth-service/src/main/java/com/gic/auth/service/UnionEnterpriseResourceService.java
View file @
f747ab21
...
...
@@ -8,4 +8,6 @@ public interface UnionEnterpriseResourceService {
TabSysUnionEnterpriseResource
getByUnionIdAndType
(
Integer
unionId
,
int
type
);
int
delResource
(
Integer
unionId
,
Integer
enterpriseId
);
void
updateAuthorizationStatus
(
int
authOrizationStatus
,
Integer
enterpriseId
,
Integer
resourceType
,
String
authOrizationMessage
);
}
gic-platform-auth-service/src/main/java/com/gic/auth/service/impl/UnionEnterrpiseResourceServiceImpl.java
View file @
f747ab21
...
...
@@ -50,4 +50,9 @@ public class UnionEnterrpiseResourceServiceImpl implements UnionEnterpriseResour
public
int
delResource
(
Integer
unionId
,
Integer
enterpriseId
)
{
return
this
.
tabSysUnionEnterpriseResourceMapper
.
delResource
(
enterpriseId
,
unionId
);
}
@Override
public
void
updateAuthorizationStatus
(
int
authOrizationStatus
,
Integer
enterpriseId
,
Integer
resourceType
,
String
authOrizationMessage
)
{
this
.
tabSysUnionEnterpriseResourceMapper
.
updateAuthorizationStatus
(
authOrizationStatus
,
enterpriseId
,
resourceType
,
authOrizationMessage
);
}
}
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/UnionEnterpriseApiServiceImpl.java
View file @
f747ab21
...
...
@@ -83,6 +83,16 @@ public class UnionEnterpriseApiServiceImpl implements UnionEnterpriseApiService
return
ServiceResponse
.
success
(
PageHelperUtils
.
changePageHelperToCurrentPage
(
page
,
UnionEnterpriseDTO
.
class
));
}
@Override
public
ServiceResponse
<
Void
>
updateStoreAuthorizationStatus
(
int
authOrizationStatus
,
Integer
enterpriseId
,
String
...
message
)
{
String
authOrizationMessage
=
null
;
if
(
message
!=
null
){
authOrizationMessage
=
message
[
0
];
}
this
.
unionEnterpriseResourceService
.
updateAuthorizationStatus
(
authOrizationStatus
,
enterpriseId
,
ResourceTypeEnum
.
STORE_RESOURCE
.
getCode
(),
authOrizationMessage
);
return
null
;
}
private
int
saveResource
(
Integer
unionId
,
UnionEnterpriseDTO
enterpriseDTO
){
int
i
=
0
;
i
=
this
.
unionEnterpriseResourceService
.
saveResource
(
unionId
,
enterpriseDTO
.
getMemberCardResourceId
(),
...
...
gic-platform-auth-service/src/main/resources/mapper/TabSysUnionEnterpriseResourceMapper.xml
View file @
f747ab21
...
...
@@ -177,4 +177,9 @@
where union_id = #{unionId,jdbcType=INTEGER}
and enterprise_id= #{enterpriseId}
</update>
<update
id=
"updateAuthorizationStatus"
>
update tab_sys_union_enterprise_resource
set authorization_status=#{authOrizationStatus},authorization_time=now(),authorization_message=#{authOrizationMessage}
where enterprise_id= #{enterpriseId} and resource_type=#{resourceType} and status = 1
</update>
</mapper>
\ No newline at end of file
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