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
6348562a
Commit
6348562a
authored
Dec 30, 2019
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加商户id
parent
613a97fd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
9 deletions
+14
-9
TabAuditedGroupUserRelMapper.xml
...rc/main/resources/mapper/TabAuditedGroupUserRelMapper.xml
+7
-2
TabAuditorMapper.xml
...th-service/src/main/resources/mapper/TabAuditorMapper.xml
+5
-2
ResourceController.java
.../java/com/gic/auth/web/controller/ResourceController.java
+1
-1
UnionEnterpriseController.java
...om/gic/auth/web/controller/UnionEnterpriseController.java
+1
-4
No files found.
gic-platform-auth-service/src/main/resources/mapper/TabAuditedGroupUserRelMapper.xml
View file @
6348562a
...
...
@@ -173,7 +173,7 @@
select
<include
refid=
"Base_Column_List"
/>
from tab_audited_group_user_rel
where status = 1
<where>
<if
test=
"auditedGroupId != null "
>
and audited_group_id = #{auditedGroupId}
</if>
...
...
@@ -183,17 +183,21 @@
#{item}
</foreach>
</if>
and status = 1
</where>
</select>
<select
id=
"listAuditedGroupByUserId"
resultType=
"java.lang.Integer"
>
select
audited_group_id
from tab_audited_group_user_rel
where status = 1
<where>
<if
test=
"enterpriseId != null "
>
and enterprise_id = #{enterpriseId}
</if>
<if
test=
"userId != null "
>
and user_id = #{userId}
</if>
and status = 1
</where>
</select>
</mapper>
\ No newline at end of file
gic-platform-auth-service/src/main/resources/mapper/TabAuditorMapper.xml
View file @
6348562a
...
...
@@ -206,10 +206,12 @@
select
<include
refid=
"Base_Column_List"
/>
from tab_auditor
where status = 1
and is_use = 1
<where>
<if
test=
"openid != null and openid != '' "
>
and openid = #{openid}
</if>
and is_use = 1
and status = 1
</where>
</select>
</mapper>
\ No newline at end of file
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/ResourceController.java
View file @
6348562a
...
...
@@ -192,7 +192,7 @@ public class ResourceController {
SmsSignResourceDTO
smsSignResourceDTO
=
JSON
.
parseObject
(
dto
.
getSmsSignResourceJson
(),
SmsSignResourceDTO
.
class
);
vo
.
setSmsResourceJSON
(
smsSignResourceDTO
);
}
ServiceResponse
<
GoodsRightsSelectorDTO
>
goodsResponse
=
this
.
goodsRightsSelectorApiService
.
getGoodsRightsSelector
(
response
.
getResult
().
getGoodsResourceId
());
ServiceResponse
<
GoodsRightsSelectorDTO
>
goodsResponse
=
this
.
goodsRightsSelectorApiService
.
getGoodsRightsSelector
(
response
.
getResult
().
getGoodsResourceId
()
,
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
()
);
if
(
goodsResponse
.
isSuccess
()){
if
(
goodsResponse
.
getResult
()
!=
null
){
vo
.
setGoodsResouce
(
EntityUtil
.
changeEntityByJSON
(
GoodsResouceVO
.
class
,
goodsResponse
.
getResult
()));
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/UnionEnterpriseController.java
View file @
6348562a
...
...
@@ -3,7 +3,6 @@ package com.gic.auth.web.controller;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.auth.constant.ResourceTypeEnum
;
import
com.gic.auth.dto.AuthCodeDTO
;
import
com.gic.auth.dto.UnionEnterpriseDTO
;
import
com.gic.auth.dto.UnionEnterpriseResourceDTO
;
import
com.gic.auth.dto.UserDTO
;
...
...
@@ -11,7 +10,6 @@ import com.gic.auth.service.AuthCodeApiService;
import
com.gic.auth.service.UnionEnterpriseApiService
;
import
com.gic.auth.service.UserApiService
;
import
com.gic.auth.web.qo.PageQO
;
import
com.gic.auth.web.qo.StoreResouceQO
;
import
com.gic.auth.web.qo.UnionEnterpriseQO
;
import
com.gic.auth.web.vo.GoodsResouceVO
;
import
com.gic.auth.web.vo.StoreResouceVO
;
...
...
@@ -32,7 +30,6 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.Date
;
import
java.util.List
;
@RestController
...
...
@@ -104,7 +101,7 @@ public class UnionEnterpriseController {
vo
.
setStoreResouce
(
storeResouceVO
);
}
}
ServiceResponse
<
GoodsRightsSelectorDTO
>
goodsResponse
=
this
.
goodsRightsSelectorApiService
.
getGoodsRightsSelector
(
response
.
getResult
().
getGoodsResourceId
());
ServiceResponse
<
GoodsRightsSelectorDTO
>
goodsResponse
=
this
.
goodsRightsSelectorApiService
.
getGoodsRightsSelector
(
response
.
getResult
().
getGoodsResourceId
()
,
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
()
);
if
(
goodsResponse
.
isSuccess
()){
if
(
goodsResponse
.
getResult
()
!=
null
){
vo
.
setGoodsResouce
(
EntityUtil
.
changeEntityByJSON
(
GoodsResouceVO
.
class
,
goodsResponse
.
getResult
()));
...
...
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