Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-webapp-plug
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-webapp-plug
Commits
61b73321
Commit
61b73321
authored
Mar 02, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店选择器:门店域test
parent
c83204e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
18 deletions
+30
-18
StoreController.java
...ain/java/com/gic/plug/web/controller/StoreController.java
+18
-18
StoreWidgetInterfaceShareVO.java
...m/gic/plug/web/vo/widget/StoreWidgetInterfaceShareVO.java
+12
-0
No files found.
src/main/java/com/gic/plug/web/controller/StoreController.java
View file @
61b73321
...
...
@@ -99,25 +99,25 @@ public class StoreController {
List
<
StoreWidgetInterfaceShareVO
>
voList
;
if
(!
authRegionSet
.
isEmpty
())
{
voList
=
result
.
stream
().
filter
(
e
->
authRegionSet
.
contains
(
e
.
getRegionId
()
+
""
)).
map
(
e
->
{
StoreWidgetInterfaceShareVO
vo
=
new
StoreWidgetInterfaceShareVO
();
vo
.
setLabel
(
e
.
getRegionName
()).
setValue
(
e
.
getRegionId
().
toString
())
;
if
(!
Objects
.
equals
(
e
.
getFromEnterpriseId
(),
e
.
getEnterpriseId
()))
{
vo
.
setEnterpriseName
(
enterpriseMap
.
get
(
e
.
getFromEnterpriseId
()))
;
voList
=
result
.
stream
().
filter
(
e
->
{
if
(!
authRegionSet
.
isEmpty
())
{
if
(
authRegionSet
.
contains
(
e
.
getRegionId
()
+
""
))
{
return
true
;
}
else
{
return
false
;
}
return
vo
;
}).
collect
(
Collectors
.
toList
())
;
}
else
{
voList
=
result
.
stream
(
).
map
(
e
->
{
StoreWidgetInterfaceShareVO
vo
=
new
StoreWidgetInterfaceShareVO
();
vo
.
setLabel
(
e
.
getRegionName
()).
setValue
(
e
.
getRegionId
().
toString
());
if
(!
Objects
.
equals
(
e
.
getFromEnterpriseId
(),
e
.
getEnterpriseId
()))
{
vo
.
setEnterpriseName
(
enterpriseMap
.
get
(
e
.
getFromEnterpriseId
()));
}
return
vo
;
}).
collect
(
Collectors
.
toList
())
;
}
}
else
{
return
true
;
}
}
).
map
(
e
->
{
StoreWidgetInterfaceShareVO
vo
=
new
StoreWidgetInterfaceShareVO
();
vo
.
setLabel
(
e
.
getRegionName
()).
setValue
(
e
.
getRegionId
().
toString
());
vo
.
setKey
(
"com009"
);
if
(!
Objects
.
equals
(
e
.
getFromEnterpriseId
(),
e
.
getEnterpriseId
()))
{
vo
.
setEnterpriseName
(
enterpriseMap
.
get
(
e
.
getFromEnterpriseId
()));
}
return
vo
;
}
).
collect
(
Collectors
.
toList
());
return
RestResponse
.
success
(
voList
);
}
else
{
...
...
src/main/java/com/gic/plug/web/vo/widget/StoreWidgetInterfaceShareVO.java
View file @
61b73321
...
...
@@ -26,6 +26,8 @@ public class StoreWidgetInterfaceShareVO implements Serializable{
*/
private
String
enterpriseName
;
private
String
key
;
public
String
getValue
()
{
return
value
;
}
...
...
@@ -53,12 +55,22 @@ public class StoreWidgetInterfaceShareVO implements Serializable{
return
this
;
}
public
String
getKey
()
{
return
key
;
}
public
StoreWidgetInterfaceShareVO
setKey
(
String
key
)
{
this
.
key
=
key
;
return
this
;
}
@Override
public
String
toString
()
{
return
"StoreWidgetInterfaceShareVO{"
+
"value='"
+
value
+
'\''
+
", label='"
+
label
+
'\''
+
", enterpriseName='"
+
enterpriseName
+
'\''
+
", key='"
+
key
+
'\''
+
'}'
;
}
}
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