Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-data-cloud
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-data-cloud
Commits
390448d9
Commit
390448d9
authored
Jul 16, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
观云台小程序
parent
86393a57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletions
+32
-1
StoreWidgetController.java
...a/com/gic/cloud/web/controller/StoreWidgetController.java
+32
-1
No files found.
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/StoreWidgetController.java
View file @
390448d9
...
...
@@ -29,6 +29,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.Set
;
...
...
@@ -192,7 +193,7 @@ public class StoreWidgetController {
List
<
StoreTypeVo
>
storeTypeVos
=
this
.
listRegion
(
enterpriseId
,
null
);
return
RestResponse
.
success
(
storeTypeVos
);
}
}
else
{
//门店标签
}
else
if
(
type
==
4
)
{
//门店标签
List
<
StoreTagDTO
>
result
=
this
.
storeTagApiService
.
listByEnterprise
(
enterpriseId
).
getResult
();
List
<
StoreTypeVo
>
list
=
new
ArrayList
<>();
if
(
CollectionUtils
.
isNotEmpty
(
result
)){
...
...
@@ -204,6 +205,36 @@ public class StoreWidgetController {
}
}
return
RestResponse
.
success
(
list
);
}
else
{
List
<
StoreTypeVo
>
list
=
new
ArrayList
<>();
if
(
storeColumnSet
!=
null
){
Set
<
Integer
>
status
=
storeColumnSet
.
getStatus
();
if
(
CollectionUtils
.
isEmpty
(
status
)){
return
RestResponse
.
success
();
}
else
{
Iterator
<
Integer
>
iterator
=
status
.
iterator
();
while
(
iterator
.
hasNext
()){
StoreTypeVo
storeTypeVo
=
new
StoreTypeVo
();
storeTypeVo
.
setId
(
iterator
.
next
()+
""
);
if
(
iterator
.
next
()
==
1
){
storeTypeVo
.
setName
(
"启用"
);
}
else
{
storeTypeVo
.
setName
(
"不启用"
);
}
list
.
add
(
storeTypeVo
);
}
}
}
else
{
StoreTypeVo
storeTypeVo
=
new
StoreTypeVo
();
storeTypeVo
.
setId
(
"1"
);
storeTypeVo
.
setName
(
"启用"
);
list
.
add
(
storeTypeVo
);
StoreTypeVo
storeTypeVo1
=
new
StoreTypeVo
();
storeTypeVo1
.
setId
(
"2"
);
storeTypeVo1
.
setName
(
"不启用"
);
list
.
add
(
storeTypeVo1
);
}
return
RestResponse
.
success
(
list
);
}
}
...
...
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