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
e0ffb129
Commit
e0ffb129
authored
Dec 09, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店查询接口
parent
a83b4a2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
StoreDictApiServiceImpl.java
...gic/store/service/outer/impl/StoreDictApiServiceImpl.java
+9
-11
No files found.
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreDictApiServiceImpl.java
View file @
e0ffb129
...
...
@@ -153,19 +153,17 @@ public class StoreDictApiServiceImpl implements StoreDictApiService {
if
(
listStoreField
.
isSuccess
()){
List
<
StoreFieldDTO
>
list
=
listStoreField
.
getResult
();
List
<
String
>
listSelect
=
this
.
storeDictService
.
listStoreField
(
enterpriseId
);
if
(
CollectionUtils
.
isNotEmpty
(
listSelect
)){
for
(
StoreFieldDTO
tabStoreField
:
list
){
StoreDictDTO
storeDictDTO
=
new
StoreDictDTO
();
storeDictDTO
.
setKey
(
tabStoreField
.
getStoreFieldName
());
storeDictDTO
.
setValue
(
tabStoreField
.
getStoreFieldId
()+
""
);
storeDictDTO
.
setOwnType
(
tabStoreField
.
getOwnType
());
for
(
String
s
:
listSelect
){
if
(
tabStoreField
.
getStoreFieldId
().
intValue
()
==
Integer
.
valueOf
(
s
).
intValue
()){
storeDictDTO
.
setChecked
(
1
);
}
for
(
StoreFieldDTO
tabStoreField
:
list
){
StoreDictDTO
storeDictDTO
=
new
StoreDictDTO
();
storeDictDTO
.
setKey
(
tabStoreField
.
getStoreFieldName
());
storeDictDTO
.
setValue
(
tabStoreField
.
getStoreFieldId
()+
""
);
storeDictDTO
.
setOwnType
(
tabStoreField
.
getOwnType
());
for
(
String
s
:
listSelect
){
if
(
tabStoreField
.
getStoreFieldId
().
intValue
()
==
Integer
.
valueOf
(
s
).
intValue
()){
storeDictDTO
.
setChecked
(
1
);
}
result
.
add
(
storeDictDTO
);
}
result
.
add
(
storeDictDTO
);
}
}
return
ServiceResponse
.
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