Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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-store
Commits
b3d26685
Commit
b3d26685
authored
Jun 15, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新建门店状态策略属性条件排序-代码优化
parent
02e8c11b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
StoreStrategyController.java
...com/gic/store/web/controller/StoreStrategyController.java
+6
-8
No files found.
gic-store-web/src/main/java/com/gic/store/web/controller/StoreStrategyController.java
View file @
b3d26685
...
...
@@ -67,14 +67,12 @@ public class StoreStrategyController {
.
listStoreFieldByRegionId
(
regionId
);
if
(
storeFieldDTOServiceResponse
.
isSuccess
())
{
List
<
StoreFieldDTO
>
storeFieldDTOList
=
storeFieldDTOServiceResponse
.
getResult
();
for
(
StoreFieldDTO
storeFieldDTO
:
storeFieldDTOList
)
{
int
storeFieldType
=
storeFieldDTO
.
getStoreFieldType
();
boolean
isRadioOrCheck
=
storeFieldType
==
StoreFieldTypeEnum
.
RADIO
.
getCode
()
||
storeFieldType
==
StoreFieldTypeEnum
.
CHECK
.
getCode
();
if
(
isRadioOrCheck
)
{
result
.
put
(
storeFieldDTO
.
getStoreFieldId
().
toString
(),
storeFieldDTO
.
getStoreFieldName
());
}
}
storeFieldDTOList
.
stream
()
.
filter
(
e
->
e
!=
null
)
.
filter
(
e
->
e
.
getStoreFieldType
().
intValue
()
==
StoreFieldTypeEnum
.
RADIO
.
getCode
()
||
e
.
getStoreFieldType
().
intValue
()
==
StoreFieldTypeEnum
.
CHECK
.
getCode
())
.
forEach
(
e
->
result
.
put
(
e
.
getStoreFieldId
().
toString
(),
e
.
getStoreFieldName
()));
}
return
RestResponse
.
success
(
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