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
63fce641
Commit
63fce641
authored
Jan 14, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资源组-门店选择器资源添加字段
parent
9bbd48c9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
StoreResourceDTO.java
...-api/src/main/java/com/gic/auth/dto/StoreResourceDTO.java
+15
-0
ResourceApiService.java
...rc/main/java/com/gic/auth/service/ResourceApiService.java
+1
-0
StoreResourceData.java
...a/com/gic/auth/utils/resourcegroup/StoreResourceData.java
+1
-0
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/dto/StoreResourceDTO.java
View file @
63fce641
...
...
@@ -17,6 +17,11 @@ public class StoreResourceDTO implements Serializable {
*/
private
Integer
type
;
/**
* 门店选择器ID
*/
private
Integer
storeResourceId
;
public
List
<
Integer
>
getStoreIdList
()
{
return
storeIdList
;
}
...
...
@@ -33,11 +38,21 @@ public class StoreResourceDTO implements Serializable {
this
.
type
=
type
;
}
public
Integer
getStoreResourceId
()
{
return
storeResourceId
;
}
public
StoreResourceDTO
setStoreResourceId
(
Integer
storeResourceId
)
{
this
.
storeResourceId
=
storeResourceId
;
return
this
;
}
@Override
public
String
toString
()
{
return
"StoreResourceDTO{"
+
"storeIdList="
+
storeIdList
+
", type="
+
type
+
", storeResourceId="
+
storeResourceId
+
'}'
;
}
}
gic-platform-auth-api/src/main/java/com/gic/auth/service/ResourceApiService.java
View file @
63fce641
...
...
@@ -50,6 +50,7 @@ public interface ResourceApiService {
/**
* 查询资源详情
* todo 前端对齐之后,要切换最新的接口 resourceGroupApiService
* @Title: getResource
* @Description:
* @author zhiwj
...
...
gic-platform-auth-service/src/main/java/com/gic/auth/utils/resourcegroup/StoreResourceData.java
View file @
63fce641
...
...
@@ -28,6 +28,7 @@ public class StoreResourceData implements IResourceGroupData{
if
(
storeResource
==
null
)
{
return
(
T
)
defaultResource
;
}
defaultResource
.
setStoreResourceId
(
storeResource
.
intValue
());
List
<
Integer
>
result
=
storeWidgetApiService
.
listStoreIdByStoreWidgetId
(
resourceGroup
.
getEnterpriseId
(),
storeResource
.
intValue
()).
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
result
))
{
defaultResource
.
setStoreIdList
(
result
);
...
...
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