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
4a7aad75
Commit
4a7aad75
authored
Sep 27, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
授权常量
parent
91f7b4d1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
0 deletions
+33
-0
UnionEnterpriseApiService.java
.../java/com/gic/auth/service/UnionEnterpriseApiService.java
+4
-0
TabSysUnionEnterpriseResourceMapper.java
.../auth/dao/mapper/TabSysUnionEnterpriseResourceMapper.java
+4
-0
UnionEnterpriseResourceService.java
.../com/gic/auth/service/UnionEnterpriseResourceService.java
+4
-0
UnionEnterrpiseResourceServiceImpl.java
...auth/service/impl/UnionEnterrpiseResourceServiceImpl.java
+5
-0
UnionEnterpriseApiServiceImpl.java
...uth/service/outer/impl/UnionEnterpriseApiServiceImpl.java
+7
-0
TabSysUnionEnterpriseResourceMapper.xml
.../resources/mapper/TabSysUnionEnterpriseResourceMapper.xml
+9
-0
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/service/UnionEnterpriseApiService.java
View file @
4a7aad75
...
...
@@ -4,6 +4,8 @@ import com.gic.api.base.commons.Page;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.auth.dto.UnionEnterpriseDTO
;
import
java.util.List
;
public
interface
UnionEnterpriseApiService
{
ServiceResponse
<
Integer
>
saveUnionEnterprise
(
UnionEnterpriseDTO
enterpriseDTO
);
...
...
@@ -17,4 +19,6 @@ public interface UnionEnterpriseApiService {
Integer
pageSize
,
Integer
authorizationStatus
);
ServiceResponse
<
Void
>
updateStoreAuthorizationStatus
(
int
authOrizationStatus
,
Integer
enterpriseId
,
String
...
message
);
ServiceResponse
<
List
<
Long
>>
listStoreResourceByEnterpriseId
(
Integer
enterpriseId
);
}
gic-platform-auth-service/src/main/java/com/gic/auth/dao/mapper/TabSysUnionEnterpriseResourceMapper.java
View file @
4a7aad75
...
...
@@ -62,4 +62,7 @@ public interface TabSysUnionEnterpriseResourceMapper {
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"resourceType"
)
Integer
resourceType
,
@Param
(
"authOrizationMessage"
)
String
authOrizationMessage
);
List
<
Long
>
listResourceByEnterpriseIdAndType
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"type"
)
int
type
);
}
\ No newline at end of file
gic-platform-auth-service/src/main/java/com/gic/auth/service/UnionEnterpriseResourceService.java
View file @
4a7aad75
...
...
@@ -2,6 +2,8 @@ package com.gic.auth.service;
import
com.gic.auth.entity.TabSysUnionEnterpriseResource
;
import
java.util.List
;
public
interface
UnionEnterpriseResourceService
{
int
saveResource
(
Integer
unionId
,
Long
resourceId
,
int
type
,
Integer
enterpriseId
);
...
...
@@ -10,4 +12,6 @@ public interface UnionEnterpriseResourceService {
int
delResource
(
Integer
unionId
,
Integer
enterpriseId
);
void
updateAuthorizationStatus
(
int
authOrizationStatus
,
Integer
enterpriseId
,
Integer
resourceType
,
String
authOrizationMessage
);
List
<
Long
>
listResourceByEnterpriseIdAndType
(
Integer
enterpriseId
,
int
type
);
}
gic-platform-auth-service/src/main/java/com/gic/auth/service/impl/UnionEnterrpiseResourceServiceImpl.java
View file @
4a7aad75
...
...
@@ -55,4 +55,9 @@ public class UnionEnterrpiseResourceServiceImpl implements UnionEnterpriseResour
public
void
updateAuthorizationStatus
(
int
authOrizationStatus
,
Integer
enterpriseId
,
Integer
resourceType
,
String
authOrizationMessage
)
{
this
.
tabSysUnionEnterpriseResourceMapper
.
updateAuthorizationStatus
(
authOrizationStatus
,
enterpriseId
,
resourceType
,
authOrizationMessage
);
}
@Override
public
List
<
Long
>
listResourceByEnterpriseIdAndType
(
Integer
enterpriseId
,
int
type
)
{
return
this
.
tabSysUnionEnterpriseResourceMapper
.
listResourceByEnterpriseIdAndType
(
enterpriseId
,
type
);
}
}
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/UnionEnterpriseApiServiceImpl.java
View file @
4a7aad75
...
...
@@ -20,6 +20,7 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Date
;
import
java.util.List
;
@Service
(
"unionEnterpriseApiService"
)
public
class
UnionEnterpriseApiServiceImpl
implements
UnionEnterpriseApiService
{
...
...
@@ -96,6 +97,12 @@ public class UnionEnterpriseApiServiceImpl implements UnionEnterpriseApiService
return
null
;
}
@Override
public
ServiceResponse
<
List
<
Long
>>
listStoreResourceByEnterpriseId
(
Integer
enterpriseId
)
{
List
<
Long
>
longList
=
this
.
unionEnterpriseResourceService
.
listResourceByEnterpriseIdAndType
(
enterpriseId
,
ResourceTypeEnum
.
STORE_RESOURCE
.
getCode
());
return
ServiceResponse
.
success
(
longList
);
}
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 @
4a7aad75
...
...
@@ -182,4 +182,12 @@
set authorization_status=#{authOrizationStatus},authorization_time=now(),authorization_message=#{authOrizationMessage}
where enterprise_id= #{enterpriseId} and resource_type=#{resourceType} and status = 1
</update>
<select
id=
"listResourceByEnterpriseIdAndType"
resultType=
"java.lang.Long"
>
select
resource
from tab_sys_union_enterprise_resource
where enterprise_id = #{enterpriseId,jdbcType=INTEGER}
and resource_type = #{type}
and status = 1
</select>
</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