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
ab13be97
Commit
ab13be97
authored
Sep 29, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联合商户查询修改
parent
c86e7cbe
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
13 deletions
+19
-13
UnionEnterpriseApiService.java
.../java/com/gic/auth/service/UnionEnterpriseApiService.java
+1
-1
TabSysUnionEnterpriseResourceMapper.java
.../auth/dao/mapper/TabSysUnionEnterpriseResourceMapper.java
+4
-2
UnionEnterpriseResourceService.java
.../com/gic/auth/service/UnionEnterpriseResourceService.java
+2
-1
UnionEnterrpiseResourceServiceImpl.java
...auth/service/impl/UnionEnterrpiseResourceServiceImpl.java
+2
-1
UnionEnterpriseApiServiceImpl.java
...uth/service/outer/impl/UnionEnterpriseApiServiceImpl.java
+2
-2
TabSysUnionEnterpriseResourceMapper.xml
.../resources/mapper/TabSysUnionEnterpriseResourceMapper.xml
+8
-6
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/service/UnionEnterpriseApiService.java
View file @
ab13be97
...
...
@@ -20,5 +20,5 @@ public interface UnionEnterpriseApiService {
ServiceResponse
<
Void
>
updateStoreAuthorizationStatus
(
int
authOrizationStatus
,
Integer
enterpriseId
,
String
...
message
);
ServiceResponse
<
List
<
Long
>>
listStoreResourceByEnterpriseId
(
Integer
enterpriseId
);
ServiceResponse
<
List
<
UnionEnterpriseDTO
>>
listStoreResourceByEnterpriseId
(
Integer
enterpriseId
);
}
gic-platform-auth-service/src/main/java/com/gic/auth/dao/mapper/TabSysUnionEnterpriseResourceMapper.java
View file @
ab13be97
package
com
.
gic
.
auth
.
dao
.
mapper
;
import
com.gic.auth.dto.UnionEnterpriseDTO
;
import
com.gic.auth.entity.TabSysUnionEnterpriseResource
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -63,6 +64,6 @@ public interface TabSysUnionEnterpriseResourceMapper {
@Param
(
"resourceType"
)
Integer
resourceType
,
@Param
(
"authOrizationMessage"
)
String
authOrizationMessage
);
List
<
Long
>
listResourceByEnterpriseIdAndType
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"type"
)
int
type
);
List
<
UnionEnterpriseDTO
>
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 @
ab13be97
package
com
.
gic
.
auth
.
service
;
import
com.gic.auth.dto.UnionEnterpriseDTO
;
import
com.gic.auth.entity.TabSysUnionEnterpriseResource
;
import
java.util.List
;
...
...
@@ -13,5 +14,5 @@ public interface UnionEnterpriseResourceService {
void
updateAuthorizationStatus
(
int
authOrizationStatus
,
Integer
enterpriseId
,
Integer
resourceType
,
String
authOrizationMessage
);
List
<
Long
>
listResourceByEnterpriseIdAndType
(
Integer
enterpriseId
,
int
type
);
List
<
UnionEnterpriseDTO
>
listResourceByEnterpriseIdAndType
(
Integer
enterpriseId
,
int
type
);
}
gic-platform-auth-service/src/main/java/com/gic/auth/service/impl/UnionEnterrpiseResourceServiceImpl.java
View file @
ab13be97
...
...
@@ -2,6 +2,7 @@ package com.gic.auth.service.impl;
import
com.gic.auth.constant.AuthorizationStatusEnum
;
import
com.gic.auth.dao.mapper.TabSysUnionEnterpriseResourceMapper
;
import
com.gic.auth.dto.UnionEnterpriseDTO
;
import
com.gic.auth.entity.TabSysUnionEnterpriseResource
;
import
com.gic.auth.service.UnionEnterpriseResourceService
;
import
com.gic.enterprise.constants.Constants
;
...
...
@@ -57,7 +58,7 @@ public class UnionEnterrpiseResourceServiceImpl implements UnionEnterpriseResour
}
@Override
public
List
<
Long
>
listResourceByEnterpriseIdAndType
(
Integer
enterpriseId
,
int
type
)
{
public
List
<
UnionEnterpriseDTO
>
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 @
ab13be97
...
...
@@ -98,8 +98,8 @@ public class UnionEnterpriseApiServiceImpl implements UnionEnterpriseApiService
}
@Override
public
ServiceResponse
<
List
<
Long
>>
listStoreResourceByEnterpriseId
(
Integer
enterpriseId
)
{
List
<
Long
>
longList
=
this
.
unionEnterpriseResourceService
.
listResourceByEnterpriseIdAndType
(
enterpriseId
,
ResourceTypeEnum
.
STORE_RESOURCE
.
getCode
());
public
ServiceResponse
<
List
<
UnionEnterpriseDTO
>>
listStoreResourceByEnterpriseId
(
Integer
enterpriseId
)
{
List
<
UnionEnterpriseDTO
>
longList
=
this
.
unionEnterpriseResourceService
.
listResourceByEnterpriseIdAndType
(
enterpriseId
,
ResourceTypeEnum
.
STORE_RESOURCE
.
getCode
());
return
ServiceResponse
.
success
(
longList
);
}
...
...
gic-platform-auth-service/src/main/resources/mapper/TabSysUnionEnterpriseResourceMapper.xml
View file @
ab13be97
...
...
@@ -182,12 +182,13 @@
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
id=
"listResourceByEnterpriseIdAndType"
resultType=
"
com.gic.auth.dto.UnionEnterpriseDTO
"
>
select
resource
from tab_sys_union_enterprise_resource
where enterprise_id = #{enterpriseId,jdbcType=INTEGER}
and resource_type = #{type}
and status = 1
t1.union_enterprise_id,t2.resource
from tab_sys_union_enterprise t1,tab_sys_union_enterprise_resource t2
where t1.enterprise_id = #{enterpriseId,jdbcType=INTEGER}
and t1.union_id=t2.union_id
and t2.resource_type = #{type}
and t1.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